PageSourceSearch

https://staatstheater-augsburg.de/assets/index-DCc5aoCU.js

js staatstheater-augsburg.de collected 2026-09-24 19:59:53 UTC 1,713,533 bytes, 2,381 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Mapbox-W_696MrO.js","assets/Mapbox-Dj0xWB7e.css","assets/Pflege-D5Q2VTYH.js","assets/nchan-provider-BfIYjqTB.js","assets/Pflege-Dzt9gOZs.css"])))=>i.map(i=>d[i]);
2function _mergeNamespaces(o,n){for(var c=0;c<n.length;c++){const d=n[c];if(typeof d!="string"&&!Array.isArray(d)){for(const h in d)if(h!=="default"&&!(h in o)){const m=Object.getOwnPropertyDescriptor(d,h);m&&Object.defineProperty(o,h,m.get?m:{enumerable:!0,get:()=>d[h]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const h of document.querySelectorAll('link[rel="modulepreload"]'))d(h);new MutationObserver(h=>{for(const m of h)if(m.type==="childList")for(const p of m.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&d(p)}).observe(document,{childList:!0,subtree:!0});function c(h){const m={};return h.integrity&&(m.integrity=h.integrity),h.referrerPolicy&&(m.referrerPolicy=h.referrerPolicy),h.crossOrigin==="use-credentials"?m.credentials="include":h.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function d(h){if(h.ep)return;h.ep=!0;const m=c(h);fetch(h.href,m)}})();const DEV=!1;var is_array=Array.isArray,index_of=Array.prototype.indexOf,includes=Array.prototype.includes,array_from=Array.from,define_property=Object.defineProperty,get_descriptor=Object.getOwnPropertyDescriptor,get_descriptors=Object.getOwnPropertyDescriptors,object_prototype=Object.prototype,array_prototype=Array.prototype,get_prototype_of=Object.getPrototypeOf,is_extensible=Object.isExtensible;function is_function(o){return typeof o=="function"}const noop=()=>{};function is_promise(o){return typeof o?.then=="function"}function run(o){return o()}function run_all(o){for(var n=0;n<o.length;n++)o[n]()}function deferred(){var o,n,c=new Promise((d,h)=>{o=d,n=h});return{promise:c,resolve:o,reject:n}}function fallback(o,n,c=!1){return o===void 0?c?n():n:o}function to_array(o,n){if(Array.isArray(o))return o;if(!(Symbol.iterator in o))return Array.from(o);const c=[];for(const d of o)if(c.push(d),c.length===n)break;return c}const DERIVED=2,EFFECT=4,RENDER_EFFECT=8,MANAGED_EFFECT=1<<24,BLOCK_EFFECT=16,BRANCH_EFFECT=32,ROOT_EFFECT=64,BOUNDARY_EFFECT=128,CONNECTED=512,CLEAN=1024,DIRTY=2048,MAYBE_DIRTY=4096,INERT=8192,DESTROYED=16384,REACTION_RAN=32768,DESTROYING=1<<25,EFFECT_TRANSPARENT=65536,EAGER_EFFECT=1<<17,HEAD_EFFECT=1<<18,EFFECT_PRESERVED=1<<19,USER_EFFECT=1<<20,EFFECT_OFFSCREEN=1<<25,WAS_MARKED=65536,REACTION_IS_UPDATING=1<<21,ASYNC=1<<22,ERROR_VALUE=1<<23,STATE_SYMBOL=Symbol("$state"),LEGACY_PROPS=Symbol("legacy props"),LOADING_ATTR_SYMBOL=Symbol(""),STALE_REACTION=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},IS_XHTML=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),DOCUMENT_FRAGMENT_NODE=11;
2function invalid_default_snippet(){throw new Error("https://svelte.dev/e/invalid_default_snippet")}function lifecycle_outside_component(o){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function async_derived_orphan(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function each_key_duplicate(o,n,c){throw new Error("https://svelte.dev/e/each_key_duplicate")}function effect_in_teardown(o){throw new Error("https://svelte.dev/e/effect_in_teardown")}function effect_in_unowned_derived(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function effect_orphan(o){throw new Error("https://svelte.dev/e/effect_orphan")}function effect_update_depth_exceeded(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function lifecycle_legacy_only(o){throw new Error("https://svelte.dev/e/lifecycle_legacy_only")}function props_invalid_value(o){throw new Error("https://svelte.dev/e/props_invalid_value")}function state_descriptors_fixed(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function state_prototype_fixed(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function state_unsafe_mutation(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function svelte_boundary_reset_onerror(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const EACH_ITEM_REACTIVE=1,EACH_INDEX_REACTIVE=2,EACH_IS_CONTROLLED=4,EACH_IS_ANIMATED=8,EACH_ITEM_IMMUTABLE=16,PROPS_IS_IMMUTABLE=1,PROPS_IS_RUNES=2,PROPS_IS_UPDATED=4,PROPS_IS_BINDABLE=8,PROPS_IS_LAZY_INITIAL=16,TRANSITION_IN=1,TRANSITION_OUT=2,TRANSITION_GLOBAL=4,TEMPLATE_FRAGMENT=1,TEMPLATE_USE_IMPORT_NODE=2,UNINITIALIZED=Symbol(),NAMESPACE_HTML="http://www.w3.org/1999/xhtml",NAMESPACE_SVG="http://www.w3.org/2000/svg",NAMESPACE_MATHML="http://www.w3.org/1998/Math/MathML",ATTACHMENT_KEY="@attach";function select_multiple_invalid_value(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function svelte_boundary_reset_noop(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function equals(o){return o===this.v}function safe_not_equal(o,n){return o!=o?n==n:o!==n||o!==null&&typeof o=="object"||typeof o=="function"}function safe_equals(o){return!safe_not_equal(o,this.v)}let legacy_mode_flag=!1,tracing_mode_flag=!1;function enable_legacy_mode_flag(){legacy_mode_flag=!0}let component_context=null;function set_component_context(o){component_context=o}function getContext(o){return get_or_init_context_map().get(o)}function setContext(o,n){return get_or_init_context_map().set(o,n),n}function push(o,n=!1,c){component_context={p:component_context,i:!1,c:null,e:null,s:o,x:null,r:active_effect,l:legacy_mode_flag&&!n?{s:null,u:null,$:[]}:null}}function pop(o){var n=component_context,c=n.e;if(c!==null){n.e=null;for(var d of c)create_user_effect(d)}return n.i=!0,component_context=n.p,{}}function is_runes(){return!legacy_mode_flag||component_context!==null&&component_context.l===null}function get_or_init_context_map(o){return component_context===null&&lifecycle_outside_component(),component_context.c??=new Map(get_parent_context(component_context)||void 0)}function get_parent_context(o){let n=o.p;for(;n!==null;){const c=n.c;if(c!==null)return c;n=n.p}return null}let micro_tasks=[];function run_micro_tasks(){var o=micro_tasks;micro_tasks=[],run_all(o)}function queue_micro_task(o){if(micro_tasks.length===0&&!is_flushing_sync){var n=micro_tasks;queueMicrotask(()=>{n===micro_tasks&&run_micro_tasks()})}micro_tasks.push(o)}function flush_tasks(){for(;micro_tasks.length>0;)run_micro_tasks()}function handle_error(o){var n=active_effect;if(n===null)return active_reaction.f|=ERROR_VALUE,o;if((n.f&REACTION_RAN)===0&&(n.f&EFFECT)===0)throw o;invoke_error_boundary(o,n)}function invoke_error_boundary(o,n){for(;n!==null;){if((n.f&BOUNDARY_EFFECT)!==0){if((n.f&REACTION_RAN)===0)throw o;try{n.b.error(o);return}catch(c){o=c}}n=n.parent}throw o}const STATUS_MASK=-7169;function set_signal_status(o,n){o.f=o.f&STATUS_MASK|n}function update_derived_status(o){(o.f&CONNECTED)!==0||o.deps===null?set_signal_status(o,CLEAN):set_signal_status(o,MAYBE_DIRTY)}function clear_marked(o){if(o!==null)for(const n of o)(n.f&DERIVED)===0||(n.f&WAS_MARKED)===0||(n.f^=WAS_MARKED,clear_marked(n.deps))}function defer_effect(o,n,c){(o.f&DIRTY)!==0?n.add(o):(o.f&MAYBE_DIRTY)!==0&&c.add(o),clear_marked(o.deps),set_signal_status(o,CLEAN)}function subscribe_to_store(o,n,c){if(o==null)return n(void 0),noop;const d=untrack(()=>o.subscribe(n,c));return d.unsubscribe?()=>d.unsubscribe():d}const subscriber_queue=[];function writable(o,n=noop){let c=null;const d=new Set;function h(w){if(safe_not_equal(o,w)&&(o=w,c)){const z=!subscriber_queue.length;for(const A of d)A[1](),subscriber_queue.push(A,o);if(z){for(let A=0;A<subscriber_queue.length;A+=2)subscriber_queue[A][0](subscriber_queue[A+1]);subscriber_queue.length=0}}}function m(w){h(w(o))}function p(w,z=noop){const A=[w,z];
2return d.add(A),d.size===1&&(c=n(h,m)||noop),w(o),()=>{d.delete(A),d.size===0&&c&&(c(),c=null)}}return{set:h,update:m,subscribe:p}}function get$1(o){let n;return subscribe_to_store(o,c=>n=c)(),n}let is_store_binding=!1,IS_UNMOUNTED=Symbol();function store_get(o,n,c){const d=c[n]??={store:null,source:mutable_source(void 0),unsubscribe:noop};if(d.store!==o&&!(IS_UNMOUNTED in c))if(d.unsubscribe(),d.store=o??null,o==null)d.source.v=void 0,d.unsubscribe=noop;else{var h=!0;d.unsubscribe=subscribe_to_store(o,m=>{h?d.source.v=m:set(d.source,m)}),h=!1}return o&&IS_UNMOUNTED in c?get$1(o):get(d.source)}function setup_stores(){const o={};function n(){teardown(()=>{for(var c in o)o[c].unsubscribe();define_property(o,IS_UNMOUNTED,{enumerable:!1,value:!0})})}return[o,n]}function capture_store_binding(o){var n=is_store_binding;try{return is_store_binding=!1,[o(),is_store_binding]}finally{is_store_binding=n}}const batches=new Set;let current_batch=null,batch_values=null,last_scheduled_effect=null,is_flushing_sync=!1,is_processing=!1,collected_effects=null,legacy_updates=null;var flush_count=0;let uid=1;class Batch{id=uid++;current=new Map;previous=new Map;#e=new Set;#l=new Set;#t=0;#o=0;#r=null;#n=[];#i=new Set;#a=new Set;#s=new Map;is_fork=!1;#u=!1;#c(){return this.is_fork||this.#o>0}skip_effect(n){this.#s.has(n)||this.#s.set(n,{d:[],m:[]})}unskip_effect(n){var c=this.#s.get(n);if(c){this.#s.delete(n);for(var d of c.d)set_signal_status(d,DIRTY),this.schedule(d);for(d of c.m)set_signal_status(d,MAYBE_DIRTY),this.schedule(d)}}#f(){flush_count++>1e3&&infinite_loop_guard();const n=this.#n;this.#n=[],this.apply();var c=collected_effects=[],d=[],h=legacy_updates=[];for(const w of n)this.#h(w,c,d);if(current_batch=null,h.length>0){var m=Batch.ensure();for(const w of h)m.schedule(w)}if(collected_effects=null,legacy_updates=null,this.#c()){this.#p(d),this.#p(c);for(const[w,z]of this.#s)reset_branch(w,z)}else{this.#i.clear(),this.#a.clear();for(const w of this.#e)w(this);this.#e.clear(),flush_queued_effects(d),flush_queued_effects(c),this.#t===0&&this.#d(),this.#r?.resolve()}var p=current_batch;if(this.#n.length>0){const w=p??=this;w.#n.push(...this.#n.filter(z=>!w.#n.includes(z)))}p!==null&&(batches.add(p),p.#f())}#h(n,c,d){n.f^=CLEAN;for(var h=n.first;h!==null;){var m=h.f,p=(m&(BRANCH_EFFECT|ROOT_EFFECT))!==0,w=p&&(m&CLEAN)!==0,z=w||(m&INERT)!==0||this.#s.has(h);if(!z&&h.fn!==null){p?h.f^=CLEAN:(m&EFFECT)!==0?c.push(h):is_dirty(h)&&((m&BLOCK_EFFECT)!==0&&this.#a.add(h),update_effect(h));var A=h.first;if(A!==null){h=A;continue}}for(;h!==null;){var y=h.next;if(y!==null){h=y;break}h=h.parent}}}#p(n){for(var c=0;c<n.length;c+=1)defer_effect(n[c],this.#i,this.#a)}capture(n,c){c!==UNINITIALIZED&&!this.previous.has(n)&&this.previous.set(n,c),(n.f&ERROR_VALUE)===0&&(this.current.set(n,n.v),batch_values?.set(n,n.v))}activate(){current_batch=this}deactivate(){current_batch=null,batch_values=null}flush(){try{if(is_processing=!0,current_batch=this,!this.#c()){for(const n of this.#i)this.#a.delete(n),set_signal_status(n,DIRTY),this.schedule(n);for(const n of this.#a)set_signal_status(n,MAYBE_DIRTY),this.schedule(n)}this.#f()}finally{flush_count=0,last_scheduled_effect=null,collected_effects=null,legacy_updates=null,is_processing=!1,current_batch=null,batch_values=null,old_values.clear()}}discard(){for(const n of this.#l)n(this);this.#l.clear()}#d(){if(batches.size>1){this.previous.clear();var n=current_batch,c=batch_values,d=!0;for(const h of batches){if(h===this){d=!1;continue}const m=[];for(const[w,z]of this.current){if(h.current.has(w))if(d&&z!==h.current.get(w))h.current.set(w,z);else continue;m.push(w)}if(m.length===0)continue;const p=[...h.current.keys()].filter(w=>!this.current.has(w));if(p.length>0){h.activate();const w=new Set,z=new Map;for(const A of m)mark_effects(A,p,w,z);if(h.#n.length>0){h.apply();for(const A of h.#n)h.#h(A,[],[])}h.deactivate()}}current_batch=n,batch_values=c}this.#s.clear(),batches.delete(this)}increment(n){this.#t+=1,n&&(this.#o+=1)}decrement(n,c){this.#t-=1,n&&(this.#o-=1),!(this.#u||c)&&(this.#u=!0,queue_micro_task(()=>{this.#u=!1,this.flush()}))}oncommit(n){this.#e.add(n)}ondiscard(n){this.#l.add(n)}settled(){return(this.#r??=deferred()).promise}static ensure(){if(current_batch===null){const n=current_batch=new Batch;is_processing||(batches.add(current_batch),is_flushing_sync||queue_micro_task(()=>{current_batch===n&&n.flush()}))}return current_batch}apply(){}schedule(n){if(last_scheduled_effect=n,n.b?.is_pending&&(n.f&(EFFECT|RENDER_EFFECT|MANAGED_EFFECT))!==0&&(n.f&REACTION_RAN)===0){n.b.defer_effect(n);return}for(var c=n;c.parent!==null;){c=c.parent;var d=c.f;if(collected_effects!==null&&c===active_effect&&(active_reaction===null||(active_reaction.f&DERIVED)===0))return;if((d&(ROOT_EFFECT|BRANCH_EFFECT))!==0){if((d&CLEAN)===0)return;c.f^=CLEAN}}this.#n.push(c)}}function flushSync(o){var n=is_flushing_sync;is_flushing_sync=!0;try{for(var c;;){if(flush_tasks(),current_batch===null)return c;current_batch.flush()}}finally{is_flushing_sync=n}}function infinite_loop_guard(){try{effect_update_depth_exceeded()}catch(o){invoke_error_boundary(o,last_scheduled_effect)}}let eager_block_effects=null;function flush_queued_effects(o){var n=o.length;if(n!==0){for(var c=0;c<n;){var d=o[c++];
2if((d.f&(DESTROYED|INERT))===0&&is_dirty(d)&&(eager_block_effects=new Set,update_effect(d),d.deps===null&&d.first===null&&d.nodes===null&&d.teardown===null&&d.ac===null&&unlink_effect(d),eager_block_effects?.size>0)){old_values.clear();for(const h of eager_block_effects){if((h.f&(DESTROYED|INERT))!==0)continue;const m=[h];let p=h.parent;for(;p!==null;)eager_block_effects.has(p)&&(eager_block_effects.delete(p),m.push(p)),p=p.parent;for(let w=m.length-1;w>=0;w--){const z=m[w];(z.f&(DESTROYED|INERT))===0&&update_effect(z)}}eager_block_effects.clear()}}eager_block_effects=null}}function mark_effects(o,n,c,d){if(!c.has(o)&&(c.add(o),o.reactions!==null))for(const h of o.reactions){const m=h.f;(m&DERIVED)!==0?mark_effects(h,n,c,d):(m&(ASYNC|BLOCK_EFFECT))!==0&&(m&DIRTY)===0&&depends_on(h,n,d)&&(set_signal_status(h,DIRTY),schedule_effect(h))}}function depends_on(o,n,c){const d=c.get(o);if(d!==void 0)return d;if(o.deps!==null)for(const h of o.deps){if(includes.call(n,h))return!0;if((h.f&DERIVED)!==0&&depends_on(h,n,c))return c.set(h,!0),!0}return c.set(o,!1),!1}function schedule_effect(o){current_batch.schedule(o)}function reset_branch(o,n){if(!((o.f&BRANCH_EFFECT)!==0&&(o.f&CLEAN)!==0)){(o.f&DIRTY)!==0?n.d.push(o):(o.f&MAYBE_DIRTY)!==0&&n.m.push(o),set_signal_status(o,CLEAN);for(var c=o.first;c!==null;)reset_branch(c,n),c=c.next}}function createSubscriber(o){let n=0,c=source(0),d;return()=>{effect_tracking()&&(get(c),render_effect(()=>(n===0&&(d=untrack(()=>o(()=>increment(c)))),n+=1,()=>{queue_micro_task(()=>{n-=1,n===0&&(d?.(),d=void 0,increment(c))})})))}}var flags=EFFECT_TRANSPARENT|EFFECT_PRESERVED;function boundary(o,n,c,d){new Boundary(o,n,c,d)}class Boundary{parent;is_pending=!1;transform_error;#e;#l=null;#t;#o;#r;#n=null;#i=null;#a=null;#s=null;#u=0;#c=0;#f=!1;#h=new Set;#p=new Set;#d=null;#b=createSubscriber(()=>(this.#d=source(this.#u),()=>{this.#d=null}));constructor(n,c,d,h){this.#e=n,this.#t=c,this.#o=m=>{var p=active_effect;p.b=this,p.f|=BOUNDARY_EFFECT,d(m)},this.parent=active_effect.b,this.transform_error=h??this.parent?.transform_error??(m=>m),this.#r=block$1(()=>{this.#m()},flags)}#y(){try{this.#n=branch(()=>this.#o(this.#e))}catch(n){this.error(n)}}#x(n){const c=this.#t.failed;c&&(this.#a=branch(()=>{c(this.#e,()=>n,()=>()=>{})}))}#w(){const n=this.#t.pending;if(n){this.is_pending=!0,this.#i=branch(()=>n(this.#e));var c=current_batch;queue_micro_task(()=>{var d=this.#s=document.createDocumentFragment(),h=create_text();d.append(h),this.#n=this.#g(()=>branch(()=>this.#o(h))),this.#c===0&&(this.#e.before(d),this.#s=null,pause_effect(this.#i,()=>{this.#i=null}),this.#_(c))})}}#m(){var n=current_batch;try{if(this.is_pending=this.has_pending_snippet(),this.#c=0,this.#u=0,this.#n=branch(()=>{this.#o(this.#e)}),this.#c>0){var c=this.#s=document.createDocumentFragment();move_effect(this.#n,c);const d=this.#t.pending;this.#i=branch(()=>d(this.#e))}else this.#_(n)}catch(d){this.error(d)}}#_(n){this.is_pending=!1;for(const c of this.#h)set_signal_status(c,DIRTY),n.schedule(c);for(const c of this.#p)set_signal_status(c,MAYBE_DIRTY),n.schedule(c);this.#h.clear(),this.#p.clear()}defer_effect(n){defer_effect(n,this.#h,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#t.pending}#g(n){var c=active_effect,d=active_reaction,h=component_context;set_active_effect(this.#r),set_active_reaction(this.#r),set_component_context(this.#r.ctx);try{return Batch.ensure(),n()}catch(m){return handle_error(m),null}finally{set_active_effect(c),set_active_reaction(d),set_component_context(h)}}#v(n,c){if(!this.has_pending_snippet()){this.parent&&this.parent.#v(n,c);return}this.#c+=n,this.#c===0&&(this.#_(c),this.#i&&pause_effect(this.#i,()=>{this.#i=null}),this.#s&&(this.#e.before(this.#s),this.#s=null))}update_pending_count(n,c){this.#v(n,c),this.#u+=n,!(!this.#d||this.#f)&&(this.#f=!0,queue_micro_task(()=>{this.#f=!1,this.#d&&internal_set(this.#d,this.#u)}))}get_effect_pending(){return this.#b(),get(this.#d)}error(n){var c=this.#t.onerror;let d=this.#t.failed;if(!c&&!d)throw n;this.#n&&(destroy_effect(this.#n),this.#n=null),this.#i&&(destroy_effect(this.#i),this.#i=null),this.#a&&(destroy_effect(this.#a),this.#a=null);var h=!1,m=!1;const p=()=>
2{if(h){svelte_boundary_reset_noop();return}h=!0,m&&svelte_boundary_reset_onerror(),this.#a!==null&&pause_effect(this.#a,()=>{this.#a=null}),this.#g(()=>{this.#m()})},w=z=>{try{m=!0,c?.(z,p),m=!1}catch(A){invoke_error_boundary(A,this.#r&&this.#r.parent)}d&&(this.#a=this.#g(()=>{try{return branch(()=>{var A=active_effect;A.b=this,A.f|=BOUNDARY_EFFECT,d(this.#e,()=>z,()=>p)})}catch(A){return invoke_error_boundary(A,this.#r.parent),null}}))};queue_micro_task(()=>{var z;try{z=this.transform_error(n)}catch(A){invoke_error_boundary(A,this.#r&&this.#r.parent);return}z!==null&&typeof z=="object"&&typeof z.then=="function"?z.then(w,A=>invoke_error_boundary(A,this.#r&&this.#r.parent)):w(z)})}}function flatten(o,n,c,d){const h=is_runes()?derived:derived_safe_equal;var m=o.filter(e=>!e.settled);if(c.length===0&&m.length===0){d(n.map(h));return}var p=active_effect,w=capture(),z=m.length===1?m[0].promise:m.length>1?Promise.all(m.map(e=>e.promise)):null;function A(e){w();try{d(e)}catch(f){(p.f&DESTROYED)===0&&invoke_error_boundary(f,p)}unset_context()}if(c.length===0){z.then(()=>A(n.map(h)));return}var y=increment_pending();function s(){Promise.all(c.map(e=>async_derived(e))).then(e=>A([...n.map(h),...e])).catch(e=>invoke_error_boundary(e,p)).finally(()=>y())}z?z.then(()=>{w(),s(),unset_context()}):s()}function capture(){var o=active_effect,n=active_reaction,c=component_context,d=current_batch;return function(m=!0){set_active_effect(o),set_active_reaction(n),set_component_context(c),m&&(o.f&DESTROYED)===0&&(d?.activate(),d?.apply())}}function unset_context(o=!0){set_active_effect(null),set_active_reaction(null),set_component_context(null),o&&current_batch?.deactivate()}function increment_pending(){var o=active_effect.b,n=current_batch,c=o.is_rendered();return o.update_pending_count(1,n),n.increment(c),(d=!1)=>{o.update_pending_count(-1,n),n.decrement(c,d)}}function derived(o){var n=DERIVED|DIRTY,c=active_reaction!==null&&(active_reaction.f&DERIVED)!==0?active_reaction:null;return active_effect!==null&&(active_effect.f|=EFFECT_PRESERVED),{ctx:component_context,deps:null,effects:null,equals,f:n,fn:o,reactions:null,rv:0,v:UNINITIALIZED,wv:0,parent:c??active_effect,ac:null}}function async_derived(o,n,c){let d=active_effect;d===null&&async_derived_orphan();var h=void 0,m=source(UNINITIALIZED),p=!active_reaction,w=new Map;return async_effect(()=>{var z=active_effect,A=deferred();h=A.promise;try{Promise.resolve(o()).then(A.resolve,A.reject).finally(unset_context)}catch(f){A.reject(f),unset_context()}var y=current_batch;if(p){if((z.f&REACTION_RAN)!==0)var s=increment_pending();if(d.b.is_rendered())w.get(y)?.reject(STALE_REACTION),w.delete(y);else{for(const f of w.values())f.reject(STALE_REACTION);w.clear()}w.set(y,A)}const e=(f,g=void 0)=>{if(s){var R=g===STALE_REACTION;s(R)}if(!(g===STALE_REACTION||(z.f&DESTROYED)!==0)){if(y.activate(),g)m.f|=ERROR_VALUE,internal_set(m,g);else{(m.f&ERROR_VALUE)!==0&&(m.f^=ERROR_VALUE),internal_set(m,f);for(const[q,H]of w){if(w.delete(q),q===y)break;H.reject(STALE_REACTION)}}y.deactivate()}};A.promise.then(e,f=>e(null,f||"unknown"))}),teardown(()=>{for(const z of w.values())z.reject(STALE_REACTION)}),new Promise(z=>{function A(y){function s(){y===h?z(m):A(h)}y.then(s,s)}A(h)})}function user_derived(o){const n=derived(o);return push_reaction_value(n),n}function derived_safe_equal(o){const n=derived(o);return n.equals=safe_equals,n}function destroy_derived_effects(o){var n=o.effects;if(n!==null){o.effects=null;for(var c=0;c<n.length;c+=1)destroy_effect(n[c])}}function get_derived_parent_effect(o){for(var n=o.parent;n!==null;){if((n.f&DERIVED)===0)return(n.f&DESTROYED)===0?n:null;n=n.parent}return null}function execute_derived(o){var n,c=active_effect;set_active_effect(get_derived_parent_effect(o));try{o.f&=~WAS_MARKED,destroy_derived_effects(o),n=update_reaction(o)}finally{set_active_effect(c)}return n}function update_derived(o){var n=execute_derived(o);if(!o.equals(n)&&(o.wv=increment_write_version(),(!current_batch?.is_fork||o.deps===null)&&(o.v=n,o.deps===null))){set_signal_status(o,CLEAN);return}is_destroying_effect||(batch_values!==null?(effect_tracking()||current_batch?.is_fork)&&batch_values.set(o,n):update_derived_status(o))}function freeze_derived_effects(o){if(o.effects!==null)for(const n of o.effects)(n.teardown||n.ac)&&(n.teardown?.(),n.ac?.abort(STALE_REACTION),n.teardown=noop,n.ac=null,remove_reactions(n,0),destroy_effect_children(n))}function unfreeze_derived_effects(o){if(o.effects!==null)for(const n of o.effects)n.teardown&&update_effect(n)}let eager_effects=new Set;const old_values=new Map;let eager_effects_deferred=!1;function source(o,n){var c={f:0,v:o,reactions:null,equals,rv:0,wv:0};return c}function state(o,n){const c=source(o);return push_reaction_value(c),c}function mutable_source(o,n=!1,c=!0){const d=source(o);return n||(d.equals=safe_equals),legacy_mode_flag&&c&&component_context!==null&&component_context.l!==null&&(component_context.l.s??=[]).push(d),d}
2function set(o,n,c=!1){active_reaction!==null&&(!untracking||(active_reaction.f&EAGER_EFFECT)!==0)&&is_runes()&&(active_reaction.f&(DERIVED|BLOCK_EFFECT|ASYNC|EAGER_EFFECT))!==0&&(current_sources===null||!includes.call(current_sources,o))&&state_unsafe_mutation();let d=c?proxy(n):n;return internal_set(o,d,legacy_updates)}function internal_set(o,n,c=null){if(!o.equals(n)){var d=o.v;is_destroying_effect?old_values.set(o,n):old_values.set(o,d),o.v=n;var h=Batch.ensure();if(h.capture(o,d),(o.f&DERIVED)!==0){const m=o;(o.f&DIRTY)!==0&&execute_derived(m),update_derived_status(m)}o.wv=increment_write_version(),mark_reactions(o,DIRTY,c),is_runes()&&active_effect!==null&&(active_effect.f&CLEAN)!==0&&(active_effect.f&(BRANCH_EFFECT|ROOT_EFFECT))===0&&(untracked_writes===null?set_untracked_writes([o]):untracked_writes.push(o)),!h.is_fork&&eager_effects.size>0&&!eager_effects_deferred&&flush_eager_effects()}return n}function flush_eager_effects(){eager_effects_deferred=!1;for(const o of eager_effects)(o.f&CLEAN)!==0&&set_signal_status(o,MAYBE_DIRTY),is_dirty(o)&&update_effect(o);eager_effects.clear()}function update(o,n=1){var c=get(o),d=n===1?c++:c--;return set(o,c),d}function increment(o){set(o,o.v+1)}function mark_reactions(o,n,c){var d=o.reactions;if(d!==null)for(var h=is_runes(),m=d.length,p=0;p<m;p++){var w=d[p],z=w.f;if(!(!h&&w===active_effect)){var A=(z&DIRTY)===0;if(A&&set_signal_status(w,n),(z&DERIVED)!==0){var y=w;batch_values?.delete(y),(z&WAS_MARKED)===0&&(z&CONNECTED&&(w.f|=WAS_MARKED),mark_reactions(y,MAYBE_DIRTY,c))}else if(A){var s=w;(z&BLOCK_EFFECT)!==0&&eager_block_effects!==null&&eager_block_effects.add(s),c!==null?c.push(s):schedule_effect(s)}}}}function proxy(o){if(typeof o!="object"||o===null||STATE_SYMBOL in o)return o;const n=get_prototype_of(o);if(n!==object_prototype&&n!==array_prototype)return o;var c=new Map,d=is_array(o),h=state(0),m=update_version,p=w=>{if(update_version===m)return w();var z=active_reaction,A=update_version;set_active_reaction(null),set_update_version(m);var y=w();return set_active_reaction(z),set_update_version(A),y};return d&&c.set("length",state(o.length)),new Proxy(o,{defineProperty(w,z,A){(!("value"in A)||A.configurable===!1||A.enumerable===!1||A.writable===!1)&&state_descriptors_fixed();var y=c.get(z);return y===void 0?p(()=>{var s=state(A.value);return c.set(z,s),s}):set(y,A.value,!0),!0},deleteProperty(w,z){var A=c.get(z);if(A===void 0){if(z in w){const y=p(()=>state(UNINITIALIZED));c.set(z,y),increment(h)}}else set(A,UNINITIALIZED),increment(h);return!0},get(w,z,A){if(z===STATE_SYMBOL)return o;var y=c.get(z),s=z in w;if(y===void 0&&(!s||get_descriptor(w,z)?.writable)&&(y=p(()=>{var f=proxy(s?w[z]:UNINITIALIZED),g=state(f);return g}),c.set(z,y)),y!==void 0){var e=get(y);return e===UNINITIALIZED?void 0:e}return Reflect.get(w,z,A)},getOwnPropertyDescriptor(w,z){var A=Reflect.getOwnPropertyDescriptor(w,z);if(A&&"value"in A){var y=c.get(z);y&&(A.value=get(y))}else if(A===void 0){var s=c.get(z),e=s?.v;if(s!==void 0&&e!==UNINITIALIZED)return{enumerable:!0,configurable:!0,value:e,writable:!0}}return A},has(w,z){if(z===STATE_SYMBOL)return!0;var A=c.get(z),y=A!==void 0&&A.v!==UNINITIALIZED||Reflect.has(w,z);if(A!==void 0||active_effect!==null&&(!y||get_descriptor(w,z)?.writable)){A===void 0&&(A=p(()=>{var e=y?proxy(w[z]):UNINITIALIZED,f=state(e);return f}),c.set(z,A));var s=get(A);if(s===UNINITIALIZED)return!1}return y},set(w,z,A,y){var s=c.get(z),e=z in w;if(d&&z==="length")for(var f=A;f<s.v;f+=1){var g=c.get(f+"");g!==void 0?set(g,UNINITIALIZED):f in w&&(g=p(()=>state(UNINITIALIZED)),c.set(f+"",g))}if(s===void 0)(!e||get_descriptor(w,z)?.writable)&&(s=p(()=>state(void 0)),set(s,proxy(A)),c.set(z,s));else{e=s.v!==UNINITIALIZED;var R=p(()=>proxy(A));set(s,R)}var q=Reflect.getOwnPropertyDescriptor(w,z);if(q?.set&&q.set.call(y,A),!e){if(d&&typeof z=="string"){var H=c.get("length"),te=Number(z);Number.isInteger(te)&&te>=H.v&&set(H,te+1)}increment(h)}return!0},ownKeys(w){get(h);var z=Reflect.ownKeys(w).filter(s=>{var e=c.get(s);return e===void 0||e.v!==UNINITIALIZED});for(var[A,y]of c)y.v!==UNINITIALIZED&&!(A in w)&&z.push(A);return z},setPrototypeOf(){state_prototype_fixed()}})}function get_proxied_value(o){try{if(o!==null&&typeof o=="object"&&STATE_SYMBOL in o)return o[STATE_SYMBOL]}catch{}return o}function is(o,n){return Object.is(get_proxied_value(o),get_proxied_value(n))}var $window,$document,is_firefox,first_child_getter,next_sibling_getter;function init_operations(){if($window===void 0){$window=window,$document=document,is_firefox=/Firefox/.test(navigator.userAgent);var o=Element.prototype,n=Node.prototype,c=Text.prototype;first_child_getter=get_descriptor(n,"firstChild").get,next_sibling_getter=get_descriptor(n,"nextSibling").get,is_extensible(o)&&
2(o.__click=void 0,o.__className=void 0,o.__attributes=null,o.__style=void 0,o.__e=void 0),is_extensible(c)&&(c.__t=void 0)}}function create_text(o=""){return document.createTextNode(o)}function get_first_child(o){return first_child_getter.call(o)}function get_next_sibling(o){return next_sibling_getter.call(o)}function child(o,n){return get_first_child(o)}function first_child(o,n=!1){{var c=get_first_child(o);return c instanceof Comment&&c.data===""?get_next_sibling(c):c}}function sibling(o,n=1,c=!1){let d=o;for(;n--;)d=get_next_sibling(d);return d}function clear_text_content(o){o.textContent=""}function should_defer_append(){return!1}function create_element(o,n,c){return document.createElementNS(n??NAMESPACE_HTML,o,void 0)}function autofocus(o,n){if(n){const c=document.body;o.autofocus=!0,queue_micro_task(()=>{document.activeElement===c&&o.focus()})}}let listening_to_form_reset=!1;function add_form_reset_listener(){listening_to_form_reset||(listening_to_form_reset=!0,document.addEventListener("reset",o=>{Promise.resolve().then(()=>{if(!o.defaultPrevented)for(const n of o.target.elements)n.__on_r?.()})},{capture:!0}))}function listen(o,n,c,d=!0){d&&c();for(var h of n)o.addEventListener(h,c);teardown(()=>{for(var m of n)o.removeEventListener(m,c)})}function without_reactive_context(o){var n=active_reaction,c=active_effect;set_active_reaction(null),set_active_effect(null);try{return o()}finally{set_active_reaction(n),set_active_effect(c)}}function listen_to_event_and_reset_event(o,n,c,d=c){o.addEventListener(n,()=>without_reactive_context(c));const h=o.__on_r;h?o.__on_r=()=>{h(),d(!0)}:o.__on_r=()=>d(!0),add_form_reset_listener()}function validate_effect(o){active_effect===null&&(active_reaction===null&&effect_orphan(),effect_in_unowned_derived()),is_destroying_effect&&effect_in_teardown()}function push_effect(o,n){var c=n.last;c===null?n.last=n.first=o:(c.next=o,o.prev=c,n.last=o)}function create_effect(o,n){var c=active_effect;c!==null&&(c.f&INERT)!==0&&(o|=INERT);var d={ctx:component_context,deps:null,nodes:null,f:o|DIRTY|CONNECTED,first:null,fn:n,last:null,next:null,parent:c,b:c&&c.b,prev:null,teardown:null,wv:0,ac:null},h=d;if((o&EFFECT)!==0)collected_effects!==null?collected_effects.push(d):Batch.ensure().schedule(d);else if(n!==null){try{update_effect(d)}catch(p){throw destroy_effect(d),p}h.deps===null&&h.teardown===null&&h.nodes===null&&h.first===h.last&&(h.f&EFFECT_PRESERVED)===0&&(h=h.first,(o&BLOCK_EFFECT)!==0&&(o&EFFECT_TRANSPARENT)!==0&&h!==null&&(h.f|=EFFECT_TRANSPARENT))}if(h!==null&&(h.parent=c,c!==null&&push_effect(h,c),active_reaction!==null&&(active_reaction.f&DERIVED)!==0&&(o&ROOT_EFFECT)===0)){var m=active_reaction;(m.effects??=[]).push(h)}return d}function effect_tracking(){return active_reaction!==null&&!untracking}function teardown(o){const n=create_effect(RENDER_EFFECT,null);return set_signal_status(n,CLEAN),n.teardown=o,n}function user_effect(o){validate_effect();var n=active_effect.f,c=!active_reaction&&(n&BRANCH_EFFECT)!==0&&(n&REACTION_RAN)===0;if(c){var d=component_context;(d.e??=[]).push(o)}else return create_user_effect(o)}function create_user_effect(o){return create_effect(EFFECT|USER_EFFECT,o)}function user_pre_effect(o){return validate_effect(),create_effect(RENDER_EFFECT|USER_EFFECT,o)}function component_root(o){Batch.ensure();const n=create_effect(ROOT_EFFECT|EFFECT_PRESERVED,o);return(c={})=>new Promise(d=>{c.outro?pause_effect(n,()=>{destroy_effect(n),d(void 0)}):(destroy_effect(n),d(void 0))})}function effect(o){return create_effect(EFFECT,o)}function legacy_pre_effect(o,n){var c=component_context,d={effect:null,ran:!1,deps:o};c.l.$.push(d),d.effect=render_effect(()=>{if(o(),!d.ran){d.ran=!0;var h=active_effect;try{set_active_effect(h.parent),untrack(n)}finally{set_active_effect(h)}}})}function legacy_pre_effect_reset(){var o=component_context;render_effect(()=>{for(var n of o.l.$){n.deps();var c=n.effect;(c.f&CLEAN)!==0&&c.deps!==null&&set_signal_status(c,MAYBE_DIRTY),is_dirty(c)&&update_effect(c),n.ran=!1}})}function async_effect(o){return create_effect(ASYNC|EFFECT_PRESERVED,o)}function render_effect(o,n=0){return create_effect(RENDER_EFFECT|n,o)}function template_effect(o,n=[],c=[],d=[]){flatten(d,n,c,h=>{create_effect(RENDER_EFFECT,()=>o(...h.map(get)))})}function deferred_template_effect(o,n=[],c=[],d=[]){if(c.length>0||d.length>0)var h=increment_pending();flatten(d,n,c,m=>{create_effect(EFFECT,()=>o(...m.map(get))),h&&h()})}function block$1(o,n=0){var c=create_effect(BLOCK_EFFECT|n,o);return c}function managed(o,n=0){var c=create_effect(MANAGED_EFFECT|n,o);return c}function branch(o){return create_effect(BRANCH_EFFECT|EFFECT_PRESERVED,o)}function execute_effect_teardown(o){var n=o.teardown;
2if(n!==null){const c=is_destroying_effect,d=active_reaction;set_is_destroying_effect(!0),set_active_reaction(null);try{n.call(null)}finally{set_is_destroying_effect(c),set_active_reaction(d)}}}function destroy_effect_children(o,n=!1){var c=o.first;for(o.first=o.last=null;c!==null;){const h=c.ac;h!==null&&without_reactive_context(()=>{h.abort(STALE_REACTION)});var d=c.next;(c.f&ROOT_EFFECT)!==0?c.parent=null:destroy_effect(c,n),c=d}}function destroy_block_effect_children(o){for(var n=o.first;n!==null;){var c=n.next;(n.f&BRANCH_EFFECT)===0&&destroy_effect(n),n=c}}function destroy_effect(o,n=!0){var c=!1;(n||(o.f&HEAD_EFFECT)!==0)&&o.nodes!==null&&o.nodes.end!==null&&(remove_effect_dom(o.nodes.start,o.nodes.end),c=!0),set_signal_status(o,DESTROYING),destroy_effect_children(o,n&&!c),remove_reactions(o,0);var d=o.nodes&&o.nodes.t;if(d!==null)for(const m of d)m.stop();execute_effect_teardown(o),o.f^=DESTROYING,o.f|=DESTROYED;var h=o.parent;h!==null&&h.first!==null&&unlink_effect(o),o.next=o.prev=o.teardown=o.ctx=o.deps=o.fn=o.nodes=o.ac=null}function remove_effect_dom(o,n){for(;o!==null;){var c=o===n?null:get_next_sibling(o);o.remove(),o=c}}function unlink_effect(o){var n=o.parent,c=o.prev,d=o.next;c!==null&&(c.next=d),d!==null&&(d.prev=c),n!==null&&(n.first===o&&(n.first=d),n.last===o&&(n.last=c))}function pause_effect(o,n,c=!0){var d=[];pause_children(o,d,!0);var h=()=>{c&&destroy_effect(o),n&&n()},m=d.length;if(m>0){var p=()=>--m||h();for(var w of d)w.out(p)}else h()}function pause_children(o,n,c){if((o.f&INERT)===0){o.f^=INERT;var d=o.nodes&&o.nodes.t;if(d!==null)for(const w of d)(w.is_global||c)&&n.push(w);for(var h=o.first;h!==null;){var m=h.next,p=(h.f&EFFECT_TRANSPARENT)!==0||(h.f&BRANCH_EFFECT)!==0&&(o.f&BLOCK_EFFECT)!==0;pause_children(h,n,p?c:!1),h=m}}}function resume_effect(o){resume_children(o,!0)}function resume_children(o,n){if((o.f&INERT)!==0){o.f^=INERT,(o.f&CLEAN)===0&&(set_signal_status(o,DIRTY),Batch.ensure().schedule(o));for(var c=o.first;c!==null;){var d=c.next,h=(c.f&EFFECT_TRANSPARENT)!==0||(c.f&BRANCH_EFFECT)!==0;resume_children(c,h?n:!1),c=d}var m=o.nodes&&o.nodes.t;if(m!==null)for(const p of m)(p.is_global||n)&&p.in()}}function move_effect(o,n){if(o.nodes)for(var c=o.nodes.start,d=o.nodes.end;c!==null;){var h=c===d?null:get_next_sibling(c);n.append(c),c=h}}let is_updating_effect=!1,is_destroying_effect=!1;function set_is_destroying_effect(o){is_destroying_effect=o}let active_reaction=null,untracking=!1;function set_active_reaction(o){active_reaction=o}let active_effect=null;function set_active_effect(o){active_effect=o}let current_sources=null;function push_reaction_value(o){active_reaction!==null&&(current_sources===null?current_sources=[o]:current_sources.push(o))}let new_deps=null,skipped_deps=0,untracked_writes=null;function set_untracked_writes(o){untracked_writes=o}let write_version=1,read_version=0,update_version=read_version;function set_update_version(o){update_version=o}function increment_write_version(){return++write_version}function is_dirty(o){var n=o.f;if((n&DIRTY)!==0)return!0;if(n&DERIVED&&(o.f&=~WAS_MARKED),(n&MAYBE_DIRTY)!==0){for(var c=o.deps,d=c.length,h=0;h<d;h++){var m=c[h];if(is_dirty(m)&&update_derived(m),m.wv>o.wv)return!0}(n&CONNECTED)!==0&&batch_values===null&&set_signal_status(o,CLEAN)}return!1}function schedule_possible_effect_self_invalidation(o,n,c=!0){var d=o.reactions;if(d!==null&&!(current_sources!==null&&includes.call(current_sources,o)))for(var h=0;h<d.length;h++){var m=d[h];(m.f&DERIVED)!==0?schedule_possible_effect_self_invalidation(m,n,!1):n===m&&(c?set_signal_status(m,DIRTY):(m.f&CLEAN)!==0&&set_signal_status(m,MAYBE_DIRTY),schedule_effect(m))}}function update_reaction(o){var n=new_deps,c=skipped_deps,d=untracked_writes,h=active_reaction,m=current_sources,p=component_context,w=untracking,z=update_version,A=o.f;new_deps=null,skipped_deps=0,untracked_writes=null,active_reaction=(A&(BRANCH_EFFECT|ROOT_EFFECT))===0?o:null,current_sources=null,set_component_context(o.ctx),untracking=!1,update_version=++read_version,o.ac!==null&&(without_reactive_context(()=>{o.ac.abort(STALE_REACTION)}),o.ac=null);try{o.f|=REACTION_IS_UPDATING;var y=o.fn,s=y();o.f|=REACTION_RAN;var e=o.deps,f=current_batch?.is_fork;if(new_deps!==null){var g;if(f||remove_reactions(o,skipped_deps),e!==null&&skipped_deps>0)for(e.length=skipped_deps+new_deps.length,g=0;g<new_deps.length;g++)e[skipped_deps+g]=new_deps[g];else o.deps=e=new_deps;if(effect_tracking()&&(o.f&CONNECTED)!==0)for(g=skipped_deps;g<e.length;g++)(e[g].reactions??=[]).push(o)}else!f&&e!==null&&skipped_deps<e.length&&(remove_reactions(o,skipped_deps),e.length=skipped_deps);if(is_runes()&&untracked_writes!==null&&!untracking&&e!==null&&(o.f&(DERIVED|MAYBE_DIRTY|DIRTY))===0)for(g=0;g<untracked_writes.length;g++)schedule_possible_effect_self_invalidation(untracked_writes[g],o);if(h!==null&&h!==o){if(read_version++,h.deps!==null)for(let R=0;R<c;R+=1)h.deps[R].rv=read_version;if(n!==null)for(const R of n)R.rv=read_version;untracked_writes!==null&&(d===null?d=untracked_writes:d.push(...untracked_writes))}return(o.f&ERROR_VALUE)!==0&&(o.f^=ERROR_VALUE),s}catch(R){return handle_error(R)}finally{o.f^=REACTION_IS_UPDATING,new_deps=n,skipped_deps=c,untracked_writes=d,active_reaction=h,current_sources=m,set_component_context(p),untracking=w,update_version=z}}function remove_reaction(o,n){let c=n.reactions;if(c!==null){var d=index_of.call(c,o);if(d!==-1){var h=c.length-1;h===0?c=n.reactions=null:(c[d]=c[h],c.pop())}}if(c===null&&(n.f&DERIVED)!==0&&(new_deps===null||!includes.call(new_deps,n))){var m=n;(m.f&CONNECTED)!==0&&(m.f^=CONNECTED,m.f&=~WAS_MARKED),update_derived_status(m),freeze_derived_effects(m),remove_reactions(m,0)}}function remove_reactions(o,n){var c=o.deps;if(c!==null)for(var d=n;d<c.length;d++)remove_reaction(o,c[d])}function update_effect(o){var n=o.f;if((n&DESTROYED)===0){set_signal_status(o,CLEAN);var c=active_effect,d=is_updating_effect;active_effect=o,is_updating_effect=!0;try{(n&(BLOCK_EFFECT|MANAGED_EFFECT))!==0?destroy_block_effect_children(o):destroy_effect_children(o),execute_effect_teardown(o);var h=update_reaction(o);o.teardown=typeof h=="function"?h:null,o.wv=write_version;var m;DEV&&tracing_mode_flag&&(o.f&DIRTY)!==0&&o.deps}finally{is_updating_effect=d,active_effect=c}}}async function tick(){await Promise.resolve(),flushSync()}function get(o){var n=o.f,c=(n&DERIVED)!==0;
vendor: 4,754 bytes, line 2
2if(active_reaction!==null&&!untracking){var d=active_effect!==null&&(active_effect.f&DESTROYED)!==0;if(!d&&(current_sources===null||!includes.call(current_sources,o))){var h=active_reaction.deps;if((active_reaction.f&REACTION_IS_UPDATING)!==0)o.rv<read_version&&(o.rv=read_version,new_deps===null&&h!==null&&h[skipped_deps]===o?skipped_deps++:new_deps===null?new_deps=[o]:new_deps.push(o));else{(active_reaction.deps??=[]).push(o);var m=o.reactions;m===null?o.reactions=[active_reaction]:includes.call(m,active_reaction)||m.push(active_reaction)}}}if(is_destroying_effect&&old_values.has(o))return old_values.get(o);if(c){var p=o;if(is_destroying_effect){var w=p.v;return((p.f&CLEAN)===0&&p.reactions!==null||depends_on_old_values(p))&&(w=execute_derived(p)),old_values.set(p,w),w}var z=(p.f&CONNECTED)===0&&!untracking&&active_reaction!==null&&(is_updating_effect||(active_reaction.f&CONNECTED)!==0),A=(p.f&REACTION_RAN)===0;is_dirty(p)&&(z&&(p.f|=CONNECTED),update_derived(p)),z&&!A&&(unfreeze_derived_effects(p),reconnect(p))}if(batch_values?.has(o))return batch_values.get(o);if((o.f&ERROR_VALUE)!==0)throw o.v;return o.v}function reconnect(o){if(o.f|=CONNECTED,o.deps!==null)for(const n of o.deps)(n.reactions??=[]).push(o),(n.f&DERIVED)!==0&&(n.f&CONNECTED)===0&&(unfreeze_derived_effects(n),reconnect(n))}function depends_on_old_values(o){if(o.v===UNINITIALIZED)return!0;if(o.deps===null)return!1;for(const n of o.deps)if(old_values.has(n)||(n.f&DERIVED)!==0&&depends_on_old_values(n))return!0;return!1}function untrack(o){var n=untracking;try{return untracking=!0,o()}finally{untracking=n}}function deep_read_state(o){if(!(typeof o!="object"||!o||o instanceof EventTarget)){if(STATE_SYMBOL in o)deep_read(o);else if(!Array.isArray(o))for(let n in o){const c=o[n];typeof c=="object"&&c&&STATE_SYMBOL in c&&deep_read(c)}}}function deep_read(o,n=new Set){if(typeof o=="object"&&o!==null&&!(o instanceof EventTarget)&&!n.has(o)){n.add(o),o instanceof Date&&o.getTime();for(let d in o)try{deep_read(o[d],n)}catch{}const c=get_prototype_of(o);if(c!==Object.prototype&&c!==Array.prototype&&c!==Map.prototype&&c!==Set.prototype&&c!==Date.prototype){const d=get_descriptors(c);for(let h in d){const m=d[h].get;if(m)try{m.call(o)}catch{}}}}}function is_capture_event(o){return o.endsWith("capture")&&o!=="gotpointercapture"&&o!=="lostpointercapture"}const DELEGATED_EVENTS=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function can_delegate_event(o){return DELEGATED_EVENTS.includes(o)}const ATTRIBUTE_ALIASES={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function normalize_attribute(o){return o=o.toLowerCase(),ATTRIBUTE_ALIASES[o]??o}const PASSIVE_EVENTS=["touchstart","touchmove"];function is_passive_event(o){return PASSIVE_EVENTS.includes(o)}const event_symbol=Symbol("events"),all_registered_events=new Set,root_event_handles=new Set;function create_event(o,n,c,d={}){function h(m){if(d.capture||handle_event_propagation.call(n,m),!m.cancelBubble)return without_reactive_context(()=>c?.call(this,m))}return o.startsWith("pointer")||o.startsWith("touch")||o==="wheel"?queue_micro_task(()=>{n.addEventListener(o,h,d)}):n.addEventListener(o,h,d),h}function event(o,n,c,d,h){var m={capture:d,passive:h},p=create_event(o,n,c,m);(n===document.body||n===window||n===document||n instanceof HTMLMediaElement)&&teardown(()=>{n.removeEventListener(o,p,m)})}function delegated(o,n,c){(n[event_symbol]??={})[o]=c}function delegate(o){for(var n=0;n<o.length;n++)all_registered_events.add(o[n]);for(var c of root_event_handles)c(o)}let last_propagated_event=null;function handle_event_propagation(o){var n=this,c=n.ownerDocument,d=o.type,h=o.composedPath?.()||[],m=h[0]||o.target;last_propagated_event=o;var p=0,w=last_propagated_event===o&&o[event_symbol];if(w){var z=h.indexOf(w);if(z!==-1&&(n===document||n===window)){o[event_symbol]=n;return}var A=h.indexOf(n);if(A===-1)return;z<=A&&(p=z)}if(m=h[p]||o.target,m!==n){define_property(o,"currentTarget",{configurable:!0,get(){return m||c}});var y=active_reaction,s=active_effect;set_active_reaction(null),set_active_effect(null);try{for(var e,f=[];m!==null;){var g=m.assignedSlot||m.parentNode||m.host||null;try{var R=m[event_symbol]?.[d];R!=null&&(!m.disabled||o.target===m)&&R.call(m,o)}
2catch(q){e?f.push(q):e=q}if(o.cancelBubble||g===n||g===null)break;m=g}if(e){for(let q of f)queueMicrotask(()=>{throw q});throw e}}finally{o[event_symbol]=n,delete o.currentTarget,set_active_reaction(y),set_active_effect(s)}}}const policy=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:o=>o});function create_trusted_html(o){return policy?.createHTML(o)??o}function create_fragment_from_html(o){var n=create_element("template");return n.innerHTML=create_trusted_html(o.replaceAll("<!>","<!---->")),n.content}const SCRIPT_TAG=IS_XHTML?"script":"SCRIPT";function assign_nodes(o,n){var c=active_effect;c.nodes===null&&(c.nodes={start:o,end:n,a:null,t:null})}function from_html(o,n){var c=(n&TEMPLATE_FRAGMENT)!==0,d=(n&TEMPLATE_USE_IMPORT_NODE)!==0,h,m=!o.startsWith("<!>");return()=>{h===void 0&&(h=create_fragment_from_html(m?o:"<!>"+o),c||(h=get_first_child(h)));var p=d||is_firefox?document.importNode(h,!0):h.cloneNode(!0);if(c){var w=get_first_child(p),z=p.lastChild;assign_nodes(w,z)}else assign_nodes(p,p);return p}}function from_namespace(o,n,c="svg"){var d=!o.startsWith("<!>"),h=(n&TEMPLATE_FRAGMENT)!==0,m=`<${c}>${d?o:"<!>"+o}</${c}>`,p;return()=>{if(!p){var w=create_fragment_from_html(m),z=get_first_child(w);if(h)for(p=document.createDocumentFragment();get_first_child(z);)p.appendChild(get_first_child(z));else p=get_first_child(z)}var A=p.cloneNode(!0);if(h){var y=get_first_child(A),s=A.lastChild;assign_nodes(y,s)}else assign_nodes(A,A);return A}}function from_svg(o,n){return from_namespace(o,n,"svg")}function with_script(o){return()=>run_scripts(o())}function run_scripts(o){const n=o.nodeType===DOCUMENT_FRAGMENT_NODE,c=o.nodeName===SCRIPT_TAG?[o]:o.querySelectorAll("script"),d=active_effect;for(const m of c){const p=create_element("script");for(var h of m.attributes)p.setAttribute(h.name,h.value);p.textContent=m.textContent,(n?o.firstChild===m:o===m)&&(d.nodes.start=p),(n?o.lastChild===m:o===m)&&(d.nodes.end=p),m.replaceWith(p)}return o}function text$1(o=""){{var n=create_text(o+"");return assign_nodes(n,n),n}}function comment$1(){var o=document.createDocumentFragment(),n=document.createComment(""),c=create_text();return o.append(n,c),assign_nodes(n,c),o}function append(o,n){o!==null&&o.before(n)}let should_intro=!0;function set_should_intro(o){should_intro=o}function set_text(o,n){var c=n==null?"":typeof n=="object"?`${n}`:n;c!==(o.__t??=o.nodeValue)&&(o.__t=c,o.nodeValue=`${c}`)}function mount(o,n){return _mount(o,n)}const listeners=new Map;function _mount(o,{target:n,anchor:c,props:d={},events:h,context:m,intro:p=!0,transformError:w}){init_operations();var z=void 0,A=component_root(()=>{var y=c??n.appendChild(create_text());boundary(y,{pending:()=>{}},f=>{push({});var g=component_context;m&&(g.c=m),h&&(d.$$events=h),should_intro=p,z=o(f,d)||{},should_intro=!0,pop()},w);var s=new Set,e=f=>{for(var g=0;g<f.length;g++){var R=f[g];if(!s.has(R)){s.add(R);var q=is_passive_event(R);for(const re of[n,document]){var H=listeners.get(re);H===void 0&&(H=new Map,listeners.set(re,H));var te=H.get(R);te===void 0?(re.addEventListener(R,handle_event_propagation,{passive:q}),H.set(R,1)):H.set(R,te+1)}}}};return e(array_from(all_registered_events)),root_event_handles.add(e),()=>{for(var f of s)for(const q of[n,document]){var g=listeners.get(q),R=g.get(f);--R==0?(q.removeEventListener(f,handle_event_propagation),g.delete(f),g.size===0&&listeners.delete(q)):g.set(f,R)}root_event_handles.delete(e),y!==c&&y.parentNode?.removeChild(y)}});return mounted_components.set(z,A),z}let mounted_components=new WeakMap;class BranchManager{anchor;#e=new Map;#l=new Map;#t=new Map;#o=new Set;#r=!0;constructor(n,c=!0){this.anchor=n,this.#r=c}#n=n=>{if(this.#e.has(n)){var c=this.#e.get(n),d=this.#l.get(c);if(d)resume_effect(d),this.#o.delete(c);else{var h=this.#t.get(c);h&&(this.#l.set(c,h.effect),this.#t.delete(c),h.fragment.lastChild.remove(),this.anchor.before(h.fragment),d=h.effect)}for(const[m,p]of this.#e){if(this.#e.delete(m),m===n)break;const w=this.#t.get(p);w&&(destroy_effect(w.effect),this.#t.delete(p))}for(const[m,p]of this.#l){if(m===c||this.#o.has(m))continue;const w=()=>
2{if(Array.from(this.#e.values()).includes(m)){var A=document.createDocumentFragment();move_effect(p,A),A.append(create_text()),this.#t.set(m,{effect:p,fragment:A})}else destroy_effect(p);this.#o.delete(m),this.#l.delete(m)};this.#r||!d?(this.#o.add(m),pause_effect(p,w,!1)):w()}}};#i=n=>{this.#e.delete(n);const c=Array.from(this.#e.values());for(const[d,h]of this.#t)c.includes(d)||(destroy_effect(h.effect),this.#t.delete(d))};ensure(n,c){var d=current_batch,h=should_defer_append();if(c&&!this.#l.has(n)&&!this.#t.has(n))if(h){var m=document.createDocumentFragment(),p=create_text();m.append(p),this.#t.set(n,{effect:branch(()=>c(p)),fragment:m})}else this.#l.set(n,branch(()=>c(this.anchor)));if(this.#e.set(d,n),h){for(const[w,z]of this.#l)w===n?d.unskip_effect(z):d.skip_effect(z);for(const[w,z]of this.#t)w===n?d.unskip_effect(z.effect):d.skip_effect(z.effect);d.oncommit(this.#n),d.ondiscard(this.#i)}else this.#n(d)}}const PENDING=0,THEN=1,CATCH=2;function await_block(o,n,c,d,h){var m=is_runes(),p=UNINITIALIZED,w=m?source(p):mutable_source(p,!1,!1),z=m?source(p):mutable_source(p,!1,!1),A=new BranchManager(o);block$1(()=>{var y=current_batch;y.deactivate();var s=n();y.activate();var e=!1;if(is_promise(s)){var f=capture(),g=!1;const R=q=>{if(!e){g=!0,f(!1),Batch.ensure();try{q()}finally{unset_context(!1),is_flushing_sync||flushSync()}}};s.then(q=>{R(()=>{internal_set(w,q),A.ensure(THEN,d&&(H=>d(H,w)))})},q=>{R(()=>{if(internal_set(z,q),A.ensure(CATCH,h&&(H=>h(H,z))),!h)throw z.v})}),queue_micro_task(()=>{g||R(()=>{A.ensure(PENDING,c)})})}else internal_set(w,s),A.ensure(THEN,d&&(R=>d(R,w)));return()=>{e=!0}})}function if_block(o,n,c=!1){var d=new BranchManager(o),h=c?EFFECT_TRANSPARENT:0;function m(p,w){d.ensure(p,w)}block$1(()=>{var p=!1;n((w,z=0)=>{p=!0,m(z,w)}),p||m(-1,null)},h)}const NAN=Symbol("NaN");function key(o,n,c){var d=new BranchManager(o),h=!is_runes();block$1(()=>{var m=n();m!==m&&(m=NAN),h&&m!==null&&typeof m=="object"&&(m={}),d.ensure(m,c)})}function index(o,n){return n}function pause_effects(o,n,c){for(var d=[],h=n.length,m,p=n.length,w=0;w<h;w++){let s=n[w];pause_effect(s,()=>{if(m){if(m.pending.delete(s),m.done.add(s),m.pending.size===0){var e=o.outrogroups;destroy_effects(o,array_from(m.done)),e.delete(m),e.size===0&&(o.outrogroups=null)}}else p-=1},!1)}if(p===0){var z=d.length===0&&c!==null;if(z){var A=c,y=A.parentNode;clear_text_content(y),y.append(A),o.items.clear()}destroy_effects(o,n,!z)}else m={pending:new Set(n),done:new Set},(o.outrogroups??=new Set).add(m)}function destroy_effects(o,n,c=!0){var d;if(o.pending.size>0){d=new Set;for(const p of o.pending.values())for(const w of p)d.add(o.items.get(w).e)}for(var h=0;h<n.length;h++){var m=n[h];if(d?.has(m)){m.f|=EFFECT_OFFSCREEN;const p=document.createDocumentFragment();move_effect(m,p)}else destroy_effect(n[h],c)}}var offscreen_anchor;function each(o,n,c,d,h,m=null){var p=o,w=new Map,z=(n&EACH_IS_CONTROLLED)!==0;if(z){var A=o;p=A.appendChild(create_text())}var y=null,s=derived_safe_equal(()=>{var re=c();return is_array(re)?re:re==null?[]:array_from(re)}),e,f=new Map,g=!0;function R(re){(te.effect.f&DESTROYED)===0&&(te.pending.delete(re),te.fallback=y,reconcile(te,e,p,n,d),y!==null&&(e.length===0?(y.f&EFFECT_OFFSCREEN)===0?resume_effect(y):(y.f^=EFFECT_OFFSCREEN,move(y,null,p)):pause_effect(y,()=>{y=null})))}function q(re){te.pending.delete(re)}var H=block$1(()=>{e=get(s);for(var re=e.length,ae=new Set,ne=current_batch,oe=should_defer_append(),le=0;le<re;le+=1){var ce=e[le],ue=d(ce,le),he=g?null:w.get(ue);he?(he.v&&internal_set(he.v,ce),he.i&&internal_set(he.i,le),oe&&ne.unskip_effect(he.e)):(he=create_item(w,g?p:offscreen_anchor??=create_text(),ce,ue,le,h,n,c),g||(he.e.f|=EFFECT_OFFSCREEN),w.set(ue,he)),ae.add(ue)}if(re===0&&m&&!y&&(g?y=branch(()=>m(p)):(y=branch(()=>m(offscreen_anchor??=create_text())),y.f|=EFFECT_OFFSCREEN)),re>ae.size&&each_key_duplicate(),!g)if(f.set(ne,ae),oe){for(const[ge,Oe]of w)ae.has(ge)||ne.skip_effect(Oe.e);ne.oncommit(R),ne.ondiscard(q)}else R(ne);get(s)}),te={effect:H,items:w,pending:f,outrogroups:null,fallback:y};g=!1}function skip_to_branch(o){for(;
2o!==null&&(o.f&BRANCH_EFFECT)===0;)o=o.next;return o}function reconcile(o,n,c,d,h){var m=(d&EACH_IS_ANIMATED)!==0,p=n.length,w=o.items,z=skip_to_branch(o.effect.first),A,y=null,s,e=[],f=[],g,R,q,H;if(m)for(H=0;H<p;H+=1)g=n[H],R=h(g,H),q=w.get(R).e,(q.f&EFFECT_OFFSCREEN)===0&&(q.nodes?.a?.measure(),(s??=new Set).add(q));for(H=0;H<p;H+=1){if(g=n[H],R=h(g,H),q=w.get(R).e,o.outrogroups!==null)for(const he of o.outrogroups)he.pending.delete(q),he.done.delete(q);if((q.f&EFFECT_OFFSCREEN)!==0)if(q.f^=EFFECT_OFFSCREEN,q===z)move(q,null,c);else{var te=y?y.next:z;q===o.effect.last&&(o.effect.last=q.prev),q.prev&&(q.prev.next=q.next),q.next&&(q.next.prev=q.prev),link$2(o,y,q),link$2(o,q,te),move(q,te,c),y=q,e=[],f=[],z=skip_to_branch(y.next);continue}if((q.f&INERT)!==0&&(resume_effect(q),m&&(q.nodes?.a?.unfix(),(s??=new Set).delete(q))),q!==z){if(A!==void 0&&A.has(q)){if(e.length<f.length){var re=f[0],ae;y=re.prev;var ne=e[0],oe=e[e.length-1];for(ae=0;ae<e.length;ae+=1)move(e[ae],re,c);for(ae=0;ae<f.length;ae+=1)A.delete(f[ae]);link$2(o,ne.prev,oe.next),link$2(o,y,ne),link$2(o,oe,re),z=re,y=oe,H-=1,e=[],f=[]}else A.delete(q),move(q,z,c),link$2(o,q.prev,q.next),link$2(o,q,y===null?o.effect.first:y.next),link$2(o,y,q),y=q;continue}for(e=[],f=[];z!==null&&z!==q;)(A??=new Set).add(z),f.push(z),z=skip_to_branch(z.next);if(z===null)continue}(q.f&EFFECT_OFFSCREEN)===0&&e.push(q),y=q,z=skip_to_branch(q.next)}if(o.outrogroups!==null){for(const he of o.outrogroups)he.pending.size===0&&(destroy_effects(o,array_from(he.done)),o.outrogroups?.delete(he));o.outrogroups.size===0&&(o.outrogroups=null)}if(z!==null||A!==void 0){var le=[];if(A!==void 0)for(q of A)(q.f&INERT)===0&&le.push(q);for(;z!==null;)(z.f&INERT)===0&&z!==o.fallback&&le.push(z),z=skip_to_branch(z.next);var ce=le.length;if(ce>0){var ue=(d&EACH_IS_CONTROLLED)!==0&&p===0?c:null;if(m){for(H=0;H<ce;H+=1)le[H].nodes?.a?.measure();for(H=0;H<ce;H+=1)le[H].nodes?.a?.fix()}pause_effects(o,le,ue)}}m&&queue_micro_task(()=>{if(s!==void 0)for(q of s)q.nodes?.a?.apply()})}function create_item(o,n,c,d,h,m,p,w){var z=(p&EACH_ITEM_REACTIVE)!==0?(p&EACH_ITEM_IMMUTABLE)===0?mutable_source(c,!1,!1):source(c):null,A=(p&EACH_INDEX_REACTIVE)!==0?source(h):null;return{v:z,i:A,e:branch(()=>(m(n,z??c,A??h,w),()=>{o.delete(d)}))}}function move(o,n,c){if(o.nodes)for(var d=o.nodes.start,h=o.nodes.end,m=n&&(n.f&EFFECT_OFFSCREEN)===0?n.nodes.start:c;d!==null;){var p=get_next_sibling(d);if(m.before(d),d===h)return;d=p}}function link$2(o,n,c){n===null?o.effect.first=c:n.next=c,c===null?o.effect.last=n:c.prev=n}function html(o,n,c=!1,d=!1,h=!1,m=!1){var p=o,w="";if(c)var z=o;template_effect(()=>{var A=active_effect;if(w!==(w=n()??"")){if(c){A.nodes=null,z.innerHTML=w,w!==""&&assign_nodes(get_first_child(z),z.lastChild);return}if(A.nodes!==null&&(remove_effect_dom(A.nodes.start,A.nodes.end),A.nodes=null),w!==""){var y=d?NAMESPACE_SVG:h?NAMESPACE_MATHML:void 0,s=create_element(d?"svg":h?"math":"template",y);s.innerHTML=w;var e=d||h?s:s.content;if(assign_nodes(get_first_child(e),e.lastChild),d||h)for(;get_first_child(e);)p.before(get_first_child(e));else p.before(e)}}})}function slot(o,n,c,d,h){var m=n.$$slots?.[c],p=!1;m===!0&&(m=n[c==="default"?"children":c],p=!0),m===void 0?h!==null&&h(o):m(o,p?()=>d:d)}function sanitize_slots(o){const n={};o.children&&(n.default=!0);for(const c in o.$$slots)n[c]=!0;return n}function snippet(o,n,...c){var d=new BranchManager(o);block$1(()=>{const h=n()??null;d.ensure(h,h&&(m=>h(m,...c)))},EFFECT_TRANSPARENT)}function component(o,n,c){var d=new BranchManager(o);block$1(()=>{var h=n()??null;d.ensure(h,h&&(m=>c(m,h)))},EFFECT_TRANSPARENT)}const now=()=>performance.now(),raf={tick:o=>requestAnimationFrame(o),now:()=>now(),tasks:new Set};function run_tasks(){const o=raf.now();raf.tasks.forEach(n=>{n.c(o)||(raf.tasks.delete(n),n.f())}),raf.tasks.size!==0&&raf.tick(run_tasks)}function loop(o){let n;return raf.tasks.size===0&&raf.tick(run_tasks),{promise:new Promise(c=>{raf.tasks.add(n={c:o,f:c})}),abort(){raf.tasks.delete(n)}}}function dispatch_event(o,n){without_reactive_context(()=>{o.dispatchEvent(new CustomEvent(n))})}function css_property_to_camelcase(o){if(o==="float")return"cssFloat";if(o==="offset")return"cssOffset";if(o.startsWith("--"))return o;const n=o.split("-");return n.length===1?n[0]:n[0]+n.slice(1).map(c=>c[0].toUpperCase()+c.slice(1)).join("")}function css_to_keyframe(o){const n={},c=o.split(";");for(const d of c){const[h,m]=d.split(":");if(!h||m===void 0)break;const p=css_property_to_camelcase(h.trim());n[p]=m.trim()}return n}const linear$1=o=>o;function transition(o,n,c,d){var h=(o&TRANSITION_IN)!==0,m=(o&TRANSITION_OUT)!==0,p=h&&m,w=(o&TRANSITION_G
vendor: 6,814 bytes, lines 2-3
2LOBAL)!==0,z=p?"both":h?"in":"out",A,y=n.inert,s=n.style.overflow,e,f;function g(){return without_reactive_context(()=>A??=c()(n,d?.()??{},{direction:z}))}var R={is_global:w,in(){if(n.inert=y,!h){f?.abort(),f?.reset?.();return}m||e?.abort(),e=animate(n,g(),f,1,()=>{dispatch_event(n,"introend"),e?.abort(),e=A=void 0,n.style.overflow=s})},out(re){if(!m){re?.(),A=void 0;return}n.inert=!0,f=animate(n,g(),e,0,()=>{dispatch_event(n,"outroend"),re?.()})},stop:()=>{e?.abort(),f?.abort()}},q=active_effect;if((q.nodes.t??=[]).push(R),h&&should_intro){var H=w;if(!H){for(var te=q.parent;te&&(te.f&EFFECT_TRANSPARENT)!==0;)for(;(te=te.parent)&&(te.f&BLOCK_EFFECT)===0;);H=!te||(te.f&REACTION_RAN)!==0}H&&effect(()=>{untrack(()=>R.in())})}}function animate(o,n,c,d,h){var m=d===1;if(is_function(n)){var p,w=!1;return queue_micro_task(()=>{if(!w){var q=n({direction:m?"in":"out"});p=animate(o,q,c,d,h)}}),{abort:()=>{w=!0,p?.abort()},deactivate:()=>p.deactivate(),reset:()=>p.reset(),t:()=>p.t()}}if(c?.deactivate(),!n?.duration&&!n?.delay)return dispatch_event(o,m?"introstart":"outrostart"),h(),{abort:noop,deactivate:noop,reset:noop,t:()=>d};const{delay:z=0,css:A,tick:y,easing:s=linear$1}=n;var e=[];if(m&&c===void 0&&(y&&y(0,1),A)){var f=css_to_keyframe(A(0,1));e.push(f,f)}var g=()=>1-d,R=o.animate(e,{duration:z,fill:"forwards"});return R.onfinish=()=>{R.cancel(),dispatch_event(o,m?"introstart":"outrostart");var q=c?.t()??1-d;c?.abort();var H=d-q,te=n.duration*Math.abs(H),re=[];if(te>0){var ae=!1;if(A)for(var ne=Math.ceil(te/16.666666666666668),oe=0;oe<=ne;oe+=1){var le=q+H*s(oe/ne),ce=css_to_keyframe(A(le,1-le));re.push(ce),ae||=ce.overflow==="hidden"}ae&&(o.style.overflow="hidden"),g=()=>{var ue=R.currentTime;return q+H*s(ue/te)},y&&loop(()=>{if(R.playState!=="running")return!1;var ue=g();return y(ue,1-ue),!0})}R=o.animate(re,{duration:te,fill:"forwards"}),R.onfinish=()=>{g=()=>d,y?.(d,1-d),h()}},{abort:()=>{R&&(R.cancel(),R.effect=null,R.onfinish=noop)},deactivate:()=>{h=noop},reset:()=>{d===0&&y?.(1,0)},t:()=>g()}}function element(o,n,c,d,h,m){var p=null,w=o,z=new BranchManager(w,!1);block$1(()=>{const A=n()||null;var y=NAMESPACE_SVG;if(A===null){z.ensure(null,null),set_should_intro(!0);return}return z.ensure(A,s=>{if(A){if(p=create_element(A,y),assign_nodes(p,p),d){var e=p.appendChild(create_text());d(p,e)}active_effect.nodes.end=p,s.before(p)}}),set_should_intro(!0),()=>{A&&set_should_intro(!1)}},EFFECT_TRANSPARENT),teardown(()=>{set_should_intro(!0)})}function head(o,n){var c;c=document.head.appendChild(create_text()),block$1(()=>n(c),HEAD_EFFECT|EFFECT_PRESERVED)}function action(o,n,c){effect(()=>{var d=untrack(()=>n(o,c?.())||{});if(c&&d?.update){var h=!1,m={};render_effect(()=>{var p=c();deep_read_state(p),h&&safe_not_equal(m,p)&&(m=p,d.update(p))}),h=!0}if(d?.destroy)return()=>d.destroy()})}function attach(o,n){var c=void 0,d;managed(()=>{c!==(c=n())&&(d&&(destroy_effect(d),d=null),c&&(d=branch(()=>{effect(()=>c(o))})))})}function r(o){var n,c,d="";if(typeof o=="string"||typeof o=="number")d+=o;else if(typeof o=="object")if(Array.isArray(o)){var h=o.length;for(n=0;n<h;n++)o[n]&&(c=r(o[n]))&&(d&&(d+=" "),d+=c)}else for(c in o)o[c]&&(d&&(d+=" "),d+=c);return d}function clsx$1(){for(var o,n,c=0,d="",h=arguments.length;c<h;c++)(o=arguments[c])&&(n=r(o))&&(d&&(d+=" "),d+=n);return d}function clsx(o){return typeof o=="object"?clsx$1(o):o??""}const whitespace=[...` 	
3\r\f \v\uFEFF`];function to_class(o,n,c){var d=o==null?"":""+o;if(n&&(d=d?d+" "+n:n),c){for(var h of Object.keys(c))if(c[h])d=d?d+" "+h:h;else if(d.length)for(var m=h.length,p=0;(p=d.indexOf(h,p))>=0;){var w=p+m;(p===0||whitespace.includes(d[p-1]))&&(w===d.length||whitespace.includes(d[w]))?d=(p===0?"":d.substring(0,p))+d.substring(w+1):p=w}}return d===""?null:d}function append_styles(o,n=!1){var c=n?" !important;":";",d="";for(var h of Object.keys(o)){var m=o[h];m!=null&&m!==""&&(d+=" "+h+": "+m+c)}return d}function to_css_name(o){return o[0]!=="-"||o[1]!=="-"?o.toLowerCase():o}function to_style(o,n){if(n){var c="",d,h;if(Array.isArray(n)?(d=n[0],h=n[1]):d=n,o){o=String(o).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var m=!1,p=0,w=!1,z=[];d&&z.push(...Object.keys(d).map(to_css_name)),h&&z.push(...Object.keys(h).map(to_css_name));var A=0,y=-1;const R=o.length;for(var s=0;s<R;s++){var e=o[s];if(w?e==="/"&&o[s-1]==="*"&&(w=!1):m?m===e&&(m=!1):e==="/"&&o[s+1]==="*"?w=!0:e==='"'||e==="'"?m=e:e==="("?p++:e===")"&&p--,!w&&m===!1&&p===0){if(e===":"&&y===-1)y=s;else if(e===";"||s===R-1){if(y!==-1){var f=to_css_name(o.substring(A,y).trim());if(!z.includes(f)){e!==";"&&s++;var g=o.substring(A,s).trim();c+=" "+g+";"}}A=s+1,y=-1}}}}return d&&(c+=append_styles(d)),h&&(c+=append_styles(h,!0)),c=c.trim(),c===""?null:c}return o==null?null:String(o)}function set_class(o,n,c,d,h,m){var p=o.__className;if(p!==c||p===void 0){var w=to_class(c,d,m);w==null?o.removeAttribute("class"):n?o.className=w:o.setAttribute("class",w),o.__className=c}else if(m&&h!==m)for(var z in m){var A=!!m[z];(h==null||A!==!!h[z])&&o.classList.toggle(z,A)}return m}function update_styles(o,n={},c,d){for(var h in c){var m=c[h];n[h]!==m&&(c[h]==null?o.style.removeProperty(h):o.style.setProperty(h,m,d))}}function set_style(o,n,c,d){var h=o.__style;if(h!==n){var m=to_style(n,d);m==null?o.removeAttribute("style"):o.style.cssText=m,o.__style=n}else d&&(Array.isArray(d)?(update_styles(o,c?.[0],d[0]),update_styles(o,c?.[1],d[1],"important")):update_styles(o,c,d));return d}function select_option(o,n,c=!1){if(o.multiple){if(n==null)return;if(!is_array(n))return select_multiple_invalid_value();for(var d of o.options)d.selected=n.includes(get_option_value(d));return}for(d of o.options){var h=get_option_value(d);if(is(h,n)){d.selected=!0;return}}(!c||n!==void 0)&&(o.selectedIndex=-1)}function init_select(o){var n=new MutationObserver(()=>{select_option(o,o.__value)});n.observe(o,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),teardown(()=>{n.disconnect()})}function bind_select_value(o,n,c=n){var d=new WeakSet,h=!0;listen_to_event_and_reset_event(o,"change",m=>{var p=m?"[selected]":":checked",w;if(o.multiple)w=[].map.call(o.querySelectorAll(p),get_option_value);else{var z=o.querySelector(p)??o.querySelector("option:not([disabled])");w=z&&get_option_value(z)}c(w),current_batch!==null&&d.add(current_batch)}),effect(()=>{var m=n();if(o===document.activeElement){var p=current_batch;if(d.has(p))return}if(select_option(o,m,h),h&&m===void 0){var w=o.querySelector(":checked");w!==null&&(m=get_option_value(w),c(m))}o.__value=m,h=!1}),init_select(o)}function get_option_value(o){return"__value"in o?o.__value:o.value}const CLASS=Symbol("class"),STYLE=Symbol("style"),IS_CUSTOM_ELEMENT=Symbol("is custom element"),IS_HTML=Symbol("is html"),OPTION_TAG=IS_XHTML?"option":"OPTION",SELECT_TAG=IS_XHTML?"
3select":"SELECT",PROGRESS_TAG=IS_XHTML?"progress":"PROGRESS";function set_value(o,n){var c=get_attributes(o);c.value===(c.value=n??void 0)||o.value===n&&(n!==0||o.nodeName!==PROGRESS_TAG)||(o.value=n??"")}function set_checked(o,n){var c=get_attributes(o);c.checked!==(c.checked=n??void 0)&&(o.checked=n)}function set_selected(o,n){n?o.hasAttribute("selected")||o.setAttribute("selected",""):o.removeAttribute("selected")}function set_attribute(o,n,c,d){var h=get_attributes(o);h[n]!==(h[n]=c)&&(n==="loading"&&(o[LOADING_ATTR_SYMBOL]=c),c==null?o.removeAttribute(n):typeof c!="string"&&get_setters(o).includes(n)?o[n]=c:o.setAttribute(n,c))}function set_attributes(o,n,c,d,h=!1,m=!1){var p=get_attributes(o),w=p[IS_CUSTOM_ELEMENT],z=!p[IS_HTML],A=n||{},y=o.nodeName===OPTION_TAG;for(var s in n)s in c||(c[s]=null);c.class?c.class=clsx(c.class):(d||c[CLASS])&&(c.class=null),c[STYLE]&&(c.style??=null);var e=get_setters(o);for(const re in c){let ae=c[re];if(y&&re==="value"&&ae==null){o.value=o.__value="",A[re]=ae;continue}if(re==="class"){var f=o.namespaceURI==="http://www.w3.org/1999/xhtml";set_class(o,f,ae,d,n?.[CLASS],c[CLASS]),A[re]=ae,A[CLASS]=c[CLASS];continue}if(re==="style"){set_style(o,ae,n?.[STYLE],c[STYLE]),A[re]=ae,A[STYLE]=c[STYLE];continue}var g=A[re];if(!(ae===g&&!(ae===void 0&&o.hasAttribute(re)))){A[re]=ae;var R=re[0]+re[1];if(R!=="$$")if(R==="on"){const ne={},oe="$$"+re;let le=re.slice(2);var q=can_delegate_event(le);if(is_capture_event(le)&&(le=le.slice(0,-7),ne.capture=!0),!q&&g){if(ae!=null)continue;o.removeEventListener(le,A[oe],ne),A[oe]=null}if(q)delegated(le,o,ae),delegate([le]);else if(ae!=null){let ce=function(ue){A[re].call(this,ue)};A[oe]=create_event(le,o,ce,ne)}}else if(re==="style")set_attribute(o,re,ae);else if(re==="autofocus")autofocus(o,!!ae);else if(!w&&(re==="__value"||re==="value"&&ae!=null))o.value=o.__value=ae;else if(re==="selected"&&y)set_selected(o,ae);else{var H=re;z||(H=normalize_attribute(H));var te=H==="defaultValue"||H==="defaultChecked";if(ae==null&&!w&&!te)if(p[re]=null,H==="value"||H==="checked"){let ne=o;const oe=n===void 0;if(H==="value"){let le=ne.defaultValue;ne.removeAttribute(H),ne.defaultValue=le,ne.value=ne.__value=oe?le:null}else{let le=ne.defaultChecked;ne.removeAttribute(H),ne.defaultChecked=le,ne.checked=oe?le:!1}}else o.removeAttribute(re);else te||e.includes(H)&&(w||typeof ae!="string")?(o[H]=ae,H in p&&(p[H]=UNINITIALIZED)):typeof ae!="function"&&set_attribute(o,H,ae)}}}return A}function attribute_effect(o,n,c=[],d=[],h=[],m,p=!1,w=!1){flatten(h,c,d,z=>{var A=void 0,y={},s=o.nodeName===SELECT_TAG,e=!1;if(managed(()=>{var g=n(...z.map(get)),R=set_attributes(o,A,g,m,p,w);e&&s&&"value"in g&&select_option(o,g.value);for(let H of Object.getOwnPropertySymbols(y))g[H]||destroy_effect(y[H]);for(let H of Object.getOwnPropertySymbols(g)){var q=g[H];H.description===ATTACHMENT_KEY&&(!A||q!==A[H])&&(y[H]&&destroy_effect(y[H]),y[H]=branch(()=>attach(o,()=>q))),R[H]=q}A=R}),s){var f=o;effect(()=>{select_option(f,A.value,!0),init_select(f)})}e=!0})}function get_attributes(o){return o.__attributes??={[IS_CUSTOM_ELEMENT]:o.nodeName.includes("-"),[IS_HTML]:o.namespaceURI===NAMESPACE_HTML}}var setters_cache=new Map;function get_setters(o){var n=o.getAttribute("is")||o.nodeName,c=setters_cache.get(n);if(c)return c;setters_cache.set(n,c=[]);for(var d,h=o,m=Element.prototype;m!==h;){d=get_descriptors(h);for(var p in d)d[p].set&&c.push(p);h=get_prototype_of(h)}return c}function bind_value(o,n,c=n){var d=new WeakSet;listen_to_event_and_reset_event(o,"input",async h=>{var m=h?o.defaultValue:o.value;if(m=is_numberlike_input(o)?to_number(m):m,c(m),current_batch!==null&&d.add(current_batch),await tick(),m!==(m=n())){var p=o.selectionStart,w=o.selectionEnd,z=o.value.length;if(o.value=m??"",w!==null){var A=o.value.length;p===w&&w===z&&A>z?(o.selectionStart=A,o.selectionEnd=A):(o.selectionStart=p,o.selectionEnd=Math.min(w,A))}}}),untrack(n)==null&&o.value&&(c(is_numberlike_input(o)?to_number(o.value):o.value),current_batch!==null&&d.add(current_batch)),render_effect(()=>{var h=n();if(o===document.activeElement){var m=current_batch;if(d.has(m))return}is_numberlike_input(o)&&h===to_number(o.value)||o.type==="date"&&!h&&!o.value||h!==o.value&&(o.value=h??"")})}function bind_checked(o,n,c=n){listen_to_event_and_reset_event(o,"change",d=>{var h=d?o.defaultChecked:o.checked;c(h)}),untrack(n)==null&&c(o.checked),render_effect(()=>{var d=n();o.checked=!!d})}function is_numberlike_input(o){var n=o.type;return n==="number"||n==="range"}function to_number(o){return o===""?null:+o}function is_bound_this(o,n){return o===n||o?.[STATE_SYMBOL]===n}function bind_this(o={},n,c,d){var h=component_context.r,m=active_effect;return effect(()=>{var p,w;return render_effect(()=>{p=w,w=[],untrack(()=>{o!==c(...w)&&(n(o,...w),p&&is_bound_this(c(...p),o)&&n(null,...p))})}),()=>{let z=m;for(;z!==h&&z.parent!==null&&z.parent.f&DESTROYING;)z=z.parent;const A=()=>{w&&is_bound_this(c(...w),o)&&n(null,...w)},y=z.teardown;z.teardown=()=>{A(),y?.()}}}),o}function bind_window_scroll(o,n,c=n){var d=o==="x",h=()=>without_reactive_context(()=>{m=!0,clearTimeout(p),p=setTimeout(w,100),c(window[d?"scrollX":"scrollY"])});addEventListener("scroll",h,{passive:!0});var m=!1,p,w=()=>{m=!1},z=!0;render_effect(()=>{var A=n();z?z=!1:!m&&A!=null&&(m=!0,clearTimeout(p),scrollTo(window.scrollX,A),p=setTimeout(w,100))}),effect(h),teardown(()=>{removeEventListener("scroll",h)})}function bind_window_size(o,n){listen(window,["resize"],()=>without_reactive_context(()=>n(window[o])))}function preventDefault(o){return function(...n){var c=n[0];return c.preventDefault(),o?.apply(this,n)}}function init(o=!1){const n=component_context,c=n.l.u;if(!c)return;let d=()=>deep_read_state(n.s);if(o){let h=0,m={};const p=derived(()=>{let w=!1;const z=n.s;for(const A in z)z[A]!==m[A]&&(m[A]=z[A],w=!0);return w&&h++,h});d=()=>get(p)}c.b.length&&user_pre_effect(()=>{observe_all(n,d),run_all(c.b)}),user_effect(()=>{const h=untrack(()=>
3c.m.map(run));return()=>{for(const m of h)typeof m=="function"&&m()}}),c.a.length&&user_effect(()=>{observe_all(n,d),run_all(c.a)})}function observe_all(o,n){if(o.l.s)for(const c of o.l.s)get(c);n()}function reactive_import(o){var n=source(0);return function(){return arguments.length===1?(set(n,get(n)+1),arguments[0]):(get(n),o())}}function bubble_event(o,n){var c=o.$$events?.[n.type],d=is_array(c)?c.slice():c==null?[]:[c];for(var h of d)h.call(this,n)}const rest_props_handler={get(o,n){if(!o.exclude.includes(n))return o.props[n]},set(o,n){return!1},getOwnPropertyDescriptor(o,n){if(!o.exclude.includes(n)&&n in o.props)return{enumerable:!0,configurable:!0,value:o.props[n]}},has(o,n){return o.exclude.includes(n)?!1:n in o.props},ownKeys(o){return Reflect.ownKeys(o.props).filter(n=>!o.exclude.includes(n))}};function rest_props(o,n,c){return new Proxy({props:o,exclude:n},rest_props_handler)}const legacy_rest_props_handler={get(o,n){if(!o.exclude.includes(n))return get(o.version),n in o.special?o.special[n]():o.props[n]},set(o,n,c){if(!(n in o.special)){var d=active_effect;try{set_active_effect(o.parent_effect),o.special[n]=prop({get[n](){return o.props[n]}},n,PROPS_IS_UPDATED)}finally{set_active_effect(d)}}return o.special[n](c),update(o.version),!0},getOwnPropertyDescriptor(o,n){if(!o.exclude.includes(n)&&n in o.props)return{enumerable:!0,configurable:!0,value:o.props[n]}},deleteProperty(o,n){return o.exclude.includes(n)||(o.exclude.push(n),update(o.version)),!0},has(o,n){return o.exclude.includes(n)?!1:n in o.props},ownKeys(o){return Reflect.ownKeys(o.props).filter(n=>!o.exclude.includes(n))}};function legacy_rest_props(o,n){return new Proxy({props:o,exclude:n,special:{},version:source(0),parent_effect:active_effect},legacy_rest_props_handler)}const spread_props_handler={get(o,n){let c=o.props.length;for(;c--;){let d=o.props[c];if(is_function(d)&&(d=d()),typeof d=="object"&&d!==null&&n in d)return d[n]}},set(o,n,c){let d=o.props.length;for(;d--;){let h=o.props[d];is_function(h)&&(h=h());const m=get_descriptor(h,n);if(m&&m.set)return m.set(c),!0}return!1},getOwnPropertyDescriptor(o,n){let c=o.props.length;for(;c--;){let d=o.props[c];if(is_function(d)&&(d=d()),typeof d=="object"&&d!==null&&n in d){const h=get_descriptor(d,n);return h&&!h.configurable&&(h.configurable=!0),h}}},has(o,n){if(n===STATE_SYMBOL||n===LEGACY_PROPS)return!1;for(let c of o.props)if(is_function(c)&&(c=c()),c!=null&&n in c)return!0;return!1},ownKeys(o){const n=[];for(let c of o.props)if(is_function(c)&&(c=c()),!!c){for(const d in c)n.includes(d)||n.push(d);for(const d of Object.getOwnPropertySymbols(c))n.includes(d)||n.push(d)}return n}};function spread_props(...o){return new Proxy({props:o},spread_props_handler)}function prop(o,n,c,d){var h=!legacy_mode_flag||(c&PROPS_IS_RUNES)!==0,m=(c&PROPS_IS_BINDABLE)!==0,p=(c&PROPS_IS_LAZY_INITIAL)!==0,w=d,z=!0,A=()=>(z&&(z=!1,w=p?untrack(d):d),w);let y;if(m){var s=STATE_SYMBOL in o||LEGACY_PROPS in o;y=get_descriptor(o,n)?.set??(s&&n in o?re=>o[n]=re:void 0)}var e,f=!1;m?[e,f]=capture_store_binding(()=>o[n]):e=o[n],e===void 0&&d!==void 0&&(e=A(),y&&(h&&props_invalid_value(),y(e)));var g;if(h?g=()=>{var re=o[n];return re===void 0?A():(z=!0,re)}:g=()=>{var re=o[n];return re!==void 0&&(w=void 0),re===void 0?w:re},h&&(c&PROPS_IS_UPDATED)===0)return g;if(y){var R=o.$$legacy;return(function(re,ae){return arguments.length>0?((!h||!ae||R||f)&&y(ae?g():re),re):g()})}var q=!1,H=((c&PROPS_IS_IMMUTABLE)!==0?derived:derived_safe_equal)(()=>(q=!1,g()));m&&get(H);var te=active_effect;return(function(re,ae){if(arguments.length>0){const ne=ae?get(H):h&&m?proxy(re):re;return set(H,ne),q=!0,w!==void 0&&(w=ne),re}return is_destroying_effect&&q||(te.f&DESTROYED)!==0?H.v:get(H)})}function onMount(o){component_context===null&&lifecycle_outside_component(),legacy_mode_flag&&component_context.l!==null?init_update_callbacks(component_context).m.push(o):user_effect(()=>{const n=untrack(o);if(typeof n=="function")return n})}function onDestroy(o){component_context===null&&lifecycle_outside_component(),onMount(()=>()=>untrack(o))}function create_custom_event(o,n,{bubbles:c=!1,cancelable:d=!1}={}){return new CustomEvent(o,{detail:n,bubbles:c,cancelable:d})}function createEventDispatcher(){const o=component_context;return o===null&&lifecycle_outside_component(),(n,c,d)=>{const h=o.s.$$events?.[n];if(h){const m=is_array(h)?h.slice():[h],p=create_custom_event(n,c,d);for(const w of m)w.call(o.x,p);return!p.defaultPrevented}return!0}}function afterUpdate(o){component_context===null&&lifecycle_outside_component(),component_context.l===null&&lifecycle_legacy_only(),init_update_callbacks(component_context).a.push(o)}function init_update_callbacks(o){var n=o.l;return n.u??={a:[],b:[],m:[]}}const PUBLIC_VERSION="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(PUBLIC_VERSION);const linear=o=>o;function fade(o,{delay:n=0,duration:c=400,easing:d=linear}={}){const h=+getComputedStyle(o).opacity;return{delay:n,duration:c,easing:d,css:m=>`opacity: ${m*h}`}}delegate(["mousemove","touchmove","mouseup","touchend","mousedown","touchstart","click"]);const appState=proxy({doc:{},sprache:"de",modal:{offen:!1},status:void 0,abotermine:void 0,spielplan:[],spielplanbundled:[],spielplanallebundled:[],spielplannext12bundled:[],personenseiten:[],storedbes:[],galeriestatus:{aktivesbild:0,aktivegalerie:null},loadeditems:0,istouch:!1,params:{},roles:[],zahlen:void 0,abomat:void 0,ypsilon:0,fensterbreite:0,eingeloggt:!1,userName:"",yjsPresence:[],pflegeAktiv:0,menueopen:!1,videostatus:{},aktivesvideo:"",zdjbundled:[],nuz:[],storedsuchliste:void 0,sifter:void 0,cacheddoc:void 0,token:{},mimg:void 0,terminfuertagesbesetzung:void 0,paths:{},logo:"",logofarbe:"",isNavOpen:!1,bearbeitungssicht:!1,tmp_thea_stueck:void 0,sse_message:void 0,db:"https://staatstheater-augsburg.de/theater-augsburg",curRoute:"/",mapboxReload:0,ydoc:null,ydocProvider:null,ydocUri:null,ydocLang:null,_yjsRemoteUpdate:!1,_yjsApplyingLocal:!1,yjsCanUndo:!1,yjsCanRedo:!1,savedDoc:null,historyPreview:!1});typeof window<"u"&&(window.appState=appState);var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}function getAugmentedNamespace(o){if(Object.prototype.hasOwnProperty.call(o,"__esModule"))return o;var n=o.default;if(typeof n=="function"){var c=function d(){var h=!1;try{h=this instanceof d}catch{}return h?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};c.prototype=n.prototype}else c={};return Object.defineProperty(c,"__esModule",{value:!0}
3),Object.keys(o).forEach(function(d){var h=Object.getOwnPropertyDescriptor(o,d);Object.defineProperty(c,d,h.get?h:{enumerable:!0,get:function(){return o[d]}})}),c}var lodash$1={exports:{}};var lodash=lodash$1.exports,hasRequiredLodash;function requireLodash(){return hasRequiredLodash||(hasRequiredLodash=1,(function(o,n){(function(){var c,d="4.18.1",h=200,m="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",p="Expected a function",w="Invalid `variable` option passed into `_.template`",z="Invalid `imports` option passed into `_.template`",A="__lodash_hash_undefined__",y=500,s="__lodash_placeholder__",e=1,f=2,g=4,R=1,q=2,H=1,te=2,re=4,ae=8,ne=16,oe=32,le=64,ce=128,ue=256,he=512,ge=30,Oe="...",$e=800,Pe=16,Le=1,me=2,we=3,Se=1/0,ye=9007199254740991,ke=17976931348623157e292,Ae=NaN,Ie=4294967295,qe=Ie-1,Ge=Ie>>>1,Je=[["ary",ce],["bind",H],["bindKey",te],["curry",ae],["curryRight",ne],["flip",he],["partial",oe],["partialRight",le],["rearg",ue]],Te="[object Arguments]",ve="[object Array]",et="[object AsyncFunction]",mt="[object Boolean]",ht="[object Date]",ct="[object DOMException]",Ue="[object Error]",ot="[object Function]",bt="[object GeneratorFunction]",At="[object Map]",ft="[object Number]",be="[object Null]",Et="[object Object]",St="[object Promise]",Jt="[object Proxy]",Bt="[object RegExp]",Vt="[object Set]",Tt="[object String]",Be="[object Symbol]",Xe="[object Undefined]",Ke="[object WeakMap]",nt="[object WeakSet]",xt="[object ArrayBuffer]",Mt="[object DataView]",Ye="[object Float32Array]",at="[object Float64Array]",st="[object Int8Array]",vt="[object Int16Array]",gt="[object Int32Array]",Ot="[object Uint8Array]",Dt="[object Uint8ClampedArray]",Gt="[object Uint16Array]",Ft="[object Uint32Array]",Pt=/\b__p \+= '';/g,qt=/\b(__p \+=) '' \+/g,on=/(__e\(.*?\)|\b__t\)) \+\n'';/g,He=/&(?:amp|lt|gt|quot|#39);/g,Ve=/[&<>"']/g,pt=RegExp(He.source),wt=RegExp(Ve.source),nn=/<%-([\s\S]+?)%>/g,Wt=/<%([\s\S]+?)%>/g,ln=/<%=([\s\S]+?)%>/g,_n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xn=/^\w*$/,rn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,vn=/[\\^$.*+?()[\]{}|]/g,Yn=RegExp(vn.source),Nn=/^\s+/,gn=/\s/,pr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ln=/\{\n\/\* \[wrapped with (.+)\] \*/,Xn=/,? & /,Tr=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,De=/[()=,{}\[\]\/\s]/,Ze=/\\(\\)?/g,_t=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,dt=/\w*$/,lt=/^[-+]0x[0-9a-f]+$/i,Ct=/^0b[01]+$/i,en=/^\[object .+?Constructor\]$/,mn=/^0o[0-7]+$/i,fn=/^(?:0|[1-9]\d*)$/,In=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
vendor: 75,412 bytes, lines 3-22
37f]/g,Mn=/($^)/,nr=/['\n\r\u2028\u2029\\]/g,sr="\\ud800-\\udfff",Rt="\\u0300-\\u036f",bn="\\ufe20-\\ufe2f",Rn="\\u20d0-\\u20ff",ir=Rt+bn+Rn,Hn="\\u2700-\\u27bf",lr="a-z\\xdf-\\xf6\\xf8-\\xff",ii="\\xac\\xb1\\xd7\\xf7",di="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Bn="\\u2000-\\u206f",Ce=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Re="A-Z\\xc0-\\xd6\\xd8-\\xde",Me="\\ufe0e\\ufe0f",rt=ii+di+Bn+Ce,ut="['’]",We="["+sr+"]",Lt="["+rt+"]",Nt="["+ir+"]",Ut="\\d+",Xt="["+Hn+"]",tn="["+lr+"]",hn="[^"+sr+rt+Ut+Hn+lr+Re+"]",wn="\\ud83c[\\udffb-\\udfff]",yn="(?:"+Nt+"|"+wn+")",Pn="[^"+sr+"]",Fn="(?:\\ud83c[\\udde6-\\uddff]){2}",zn="[\\ud800-\\udbff][\\udc00-\\udfff]",cn="["+Re+"]",$n="\\u200d",En="(?:"+tn+"|"+hn+")",On="(?:"+cn+"|"+hn+")",xr="(?:"+ut+"(?:d|ll|m|re|s|t|ve))?",Vr="(?:"+ut+"(?:D|LL|M|RE|S|T|VE))?",Kr=yn+"?",Mr="["+Me+"]?",kr="(?:"+$n+"(?:"+[Pn,Fn,zn].join("|")+")"+Mr+Kr+")*",Fr="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",wi="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Gn=Mr+Kr+kr,jr="(?:"+[Xt,Fn,zn].join("|")+")"+Gn,cr="(?:"+[Pn+Nt+"?",Nt,Fn,zn,We].join("|")+")",Pi=RegExp(ut,"g"),Or=RegExp(Nt,"g"),Rr=RegExp(wn+"(?="+wn+")|"+cr+Gn,"g"),zi=RegExp([cn+"?"+tn+"+"+xr+"(?="+[Lt,cn,"$"].join("|")+")",On+"+"+Vr+"(?="+[Lt,cn+En,"$"].join("|")+")",cn+"?"+En+"+"+xr,cn+"+"+Vr,wi,Fr,Ut,jr].join("|"),"g"),_e=RegExp("["+$n+sr+ir+Me+"]"),Fe=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,je=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],it=-1,kt={};kt[Ye]=kt[at]=kt[st]=kt[vt]=kt[gt]=kt[Ot]=kt[Dt]=kt[Gt]=kt[Ft]=!0,kt[Te]=kt[ve]=kt[xt]=kt[mt]=kt[Mt]=kt[ht]=kt[Ue]=kt[ot]=kt[At]=kt[ft]=kt[Et]=kt[Bt]=kt[Vt]=kt[Tt]=kt[Ke]=!1;var $t={};$t[Te]=$t[ve]=$t[xt]=$t[Mt]=$t[mt]=$t[ht]=$t[Ye]=$t[at]=$t[st]=$t[vt]=$t[gt]=$t[At]=$t[ft]=$t[Et]=$t[Bt]=$t[Vt]=$t[Tt]=$t[Be]=$t[Ot]=$t[Dt]=$t[Gt]=$t[Ft]=!0,$t[Ue]=$t[ot]=$t[Ke]=!1;var pn={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Cn={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Kn={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Jn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},wr=parseFloat,Hr=parseInt,qn=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,Yt=typeof self=="object"&&self&&self.Object===Object&&self,An=qn||Yt||Function("return this")(),dr=n&&!n.nodeType&&n,Ir=dr&&!0&&o&&!o.nodeType&&o,fi=Ir&&Ir.exports===dr,Na=fi&&qn.process,ni=(function(){try{var It=Ir&&Ir.require&&Ir.require("util").types;return It||Na&&Na.binding&&Na.binding("util")}catch{}})(),rs=ni&&ni.isArrayBuffer,js=ni&&ni.isDate,Gs=ni&&ni.isMap,Ra=ni&&ni.isRegExp,qs=ni&&ni.isSet,ai=ni&&ni.isTypedArray;function Wr(It,Qt,Ht){switch(Ht.length){case 0:return It.call(Qt);case 1:return It.call(Qt,Ht[0]);case 2:return It.call(Qt,Ht[0],Ht[1]);case 3:return It.call(Qt,Ht[0],Ht[1],Ht[2])}return It.apply(Qt,Ht)}function Us(It,Qt,Ht,Sn){for(var Zn=-1,_r=It==null?0:It.length;++Zn<_r;){var Dr=It[Zn];Qt(Sn,Dr,Ht(Dr),It)}return Sn}function Ar(It,Qt){for(var Ht=-1,Sn=It==null?0:It.length;++Ht<Sn&&Qt(It[Ht],Ht,It)!==!1;);return It}function ks(It,Qt){for(var Ht=It==null?0:It.length;Ht--&&Qt(It[Ht],Ht,It)!==!1;);return It}function Ss(It,Qt){for(var Ht=-1,Sn=It==null?0:It.length;++Ht<Sn;)if(!Qt(It[Ht],Ht,It))return!1;return!0}function hi(It,Qt){for(var Ht=-1,Sn=It==null?0:It.length,Zn=0,_r=[];++Ht<Sn;){var Dr=It[Ht];Qt(Dr,Ht,It)&&(_r[Zn++]=Dr)}return _r}function $a(It,Qt){var Ht=It==null?0:It.length;return!!Ht&&Xr(It,Qt,0)>-1}function as(It,Qt,Ht){for(var Sn=-1,Zn=It==null?0:It.length;++Sn<Zn;)if(Ht(Qt,It[Sn]))return!0;return!1}function br(It,Qt){for(var Ht=-1,Sn=It==null?0:It.length,Zn=Array(Sn);++Ht<Sn;)Zn[Ht]=Qt(It[Ht],Ht,It);return Zn}function Ti(It,Qt){for(var Ht=-1,Sn=Qt.length,Zn=It.length;++Ht<Sn;)It[Zn+Ht]=Qt[Ht];return It}function Es(It,Qt,Ht,Sn){var Zn=-1,_r=It==null?0:It.length;for(Sn&&_r&&(Ht=It[++Zn]);++Zn<_r;)Ht=Qt(Ht,It[Zn],Zn,It);return Ht}function As(It,Qt,Ht,Sn){var Zn=It==null?0:It.length;for(Sn&&Zn&&(Ht=It[--Zn]);Zn--;)Ht=Qt(Ht,It[Zn],Zn,It);return Ht}function ss(It,Qt){for(var Ht=-1,Sn=It==null?0:It.length;++Ht<Sn;)if(Qt(It[Ht],Ht,It))return!0;return!1}var Vs=Ki("length");function Hs(It){return It.split("")}function os(It){return It.match(Tr)||[]}function Mi(It,Qt,Ht){var Sn;return Ht(It,function(Zn,_r,Dr){if(Qt(Zn,_r,Dr))return Sn=_r,!1}),Sn}function Ni(It,Qt,Ht,Sn){for(var Zn=It.length,_r=Ht+(Sn?1:-1);Sn?_r--:++_r<Zn;)if(Qt(It[_r],_r,It))return _r;return-1}function Xr(It,Qt,Ht){return Qt===Qt?Jo(It,Qt,Ht):Ni(It,Zi,Ht)}function Gr(It,Qt,Ht,Sn){for(var Zn=Ht-1,_r=It.length;++Zn<_r;)if(Sn(It[Zn],Qt))return Zn;return-1}function Zi(It){return It!==It}function Yi(It,Qt){var Ht=It==null?0:It.length;return Ht?Xi(It,Qt)/Ht:Ae}function Ki(It){return function(Qt){return Qt==null?c:Qt[It]}}function Oi(It){return function(Qt){return It==null?c:It[Qt]}}function Ri(It,Qt,Ht,Sn,Zn){return Zn(It,function(_r,Dr,yr){Ht=Sn?(Sn=!1,_r):Qt(Ht,_r,Dr,yr)}),Ht}function ls(It,Qt){var Ht=It.length;for(It.sort(Qt);Ht--;)It[Ht]=It[Ht].value;return It}function Xi(It,Qt){for(var Ht,Sn=-1,Zn=It.length;++Sn<Zn;){var _r=Qt(It[Sn]);_r!==c&&(Ht=Ht===c?_r:Ht+_r)}return Ht}function $i(It,Qt){for(var Ht=-1,Sn=Array(It);++Ht<It;)Sn[Ht]=Qt(Ht);return Sn}function us(It,Qt){return br(Qt,function(Ht){return[Ht,It[Ht]]})}function qr(It){return It&&It.slice(0,Zs(It)+1).replace(Nn,"")}function Pr(It){return function(Qt){return It(Qt)}}function Kt(It,Qt){return br(Qt,function(Ht){return It[Ht]})}function gr(It,Qt){return It.has(Qt)}function Jr(It,Qt){for(var Ht=-1,Sn=It.length;++Ht<Sn&&Xr(Qt,It[Ht],0)>-1;);return Ht}function Qr(It,Qt){for(var Ht=It.length;Ht--&&Xr(Qt,It[Ht],0)>-1;);return Ht}function Ci(It,Qt){for(var Ht=It.length,Sn=0;Ht--;)It[Ht]===Qt&&++Sn;return Sn}var si=Oi(pn),Ji=Oi(Cn);function cs(It){return"\\"+Jn[It]}function lo(It,Qt){return It==null?c:It[Qt]}function ei(It){return _e.test(It)}function ds(It){return Fe.test(It)}function uo(It){for(var Qt,Ht=[];!(Qt=It.next()).done;)Ht.push(Qt.value);return Ht}function Ua(It){var Qt=-1,Ht=Array(It.size);return It.forEach(function(Sn,Zn){Ht[++Qt]=[Zn,Sn]}),Ht}function Ws(It,Qt){return function(Ht){return It(Qt(Ht))}}function $r(It,Qt){for(var Ht=-1,Sn=It.length,Zn=0,_r=[];++Ht<Sn;){var Dr=It[Ht];(Dr===Qt||Dr===s)&&(It[Ht]=s,_r[Zn++]=Ht)}return _r}function fs(It){var Qt=-1,Ht=Array(It.size);return It.forEach(function(Sn){Ht[++Qt]=Sn}),Ht}function Qi(It){var Qt=-1,Ht=Array(It.size);return It.forEach(function(Sn){Ht[++Qt]=[Sn,Sn]}),Ht}function Jo(It,Qt,Ht){for(var Sn=Ht-1,Zn=It.length;++Sn<Zn;)if(It[Sn]===Qt)return Sn;return-1}function Bi(It,Qt,Ht){for(var Sn=Ht+1;Sn--;)if(It[Sn]===Qt)return Sn;return Sn}function ji(It){return ei(It)?co(It):Vs(It)}function pi(It){return ei(It)?Ks(It):Hs(It)}function Zs(It){for(var Qt=It.length;Qt--&&gn.test(It.charAt(Qt)););return Qt}var Ys=Oi(Kn);function co(It){for(var Qt=Rr.lastIndex=0;Rr.test(It);)++Qt;return Qt}function Ks(It){return It.match(Rr)||[]}function hs(It){return It.match(zi)||[]}var Xs=(function It(Qt){Qt=Qt==null?An:ga.defaults(An.Object(),Qt,ga.pick(An,je));var Ht=Qt.Array,Sn=Qt.Date,Zn=Qt.Error,_r=Qt.Function,Dr=Qt.Math,yr=Qt.Object,_i=Qt.RegExp,Js=Qt.String,gi=Qt.TypeError,Va=Ht.prototype,Qo=_r.prototype,Wa=yr.prototype,Qs=Qt["__core-js_shared__"],ma=Qo.toString,mr=Wa.hasOwnProperty,ps=0,fo=(function(){var B=/[^.]+$/.exec(Qs&&Qs.keys&&Qs.keys.IE_PROTO||"");return B?"Symbol(src)_1."+B:""})(),Ps=Wa.toString,el=ma.call(yr),Gi=An._,So=_i("^"+ma.call(mr).replace(vn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ms=fi?Qt.Buffer:c,mi=Qt.Symbol,eo=Qt.Uint8Array,Os=Ms?Ms.allocUnsafe:c,Ta=Ws(yr.getPrototypeOf,yr),ho=yr.create,po=Wa.propertyIsEnumerable,to=Va.splice,_o=mi?mi.isConcatSpreadable:c,_s=mi?mi.iterator:c,Sa=mi?mi.toStringTag:c,Cs=(function(){try{var B=Ns(yr,"defineProperty");return B({},"",{}),B}catch{}})(),Eo=Qt.clearTimeout!==An.clearTimeout&&Qt.clearTimeout,tl=Sn&&Sn.now!==An.Date.now&&Sn.now,Ao=Qt.setTimeout!==An.setTimeout&&Qt.setTimeout,Is=Dr.ceil,no=Dr.floor,b=yr.getOwnPropertySymbols,W=Ms?Ms.isBuffer:c,ie=Qt.isFinite,de=Va.join,pe=Ws(yr.keys,yr),Ee=Dr.max,Qe=Dr.min,jt=Sn.now,Zt=Qt.parseInt,un=Dr.random,kn=Va.reverse,jn=Ns(Qt,"DataView"),Qn=Ns(Qt,"Map"),Ur=Ns(Qt,"Promise"),Sr=Ns(Qt,"Set"),Zr=Ns(Qt,"WeakMap"),Br=Ns(yr,"create"),qi=Zr&&new Zr,gs={},nl=Rs(jn),rl=Rs(Qn),Po=Rs(Ur),il=Rs(Sr),Mo=Rs(Zr),Er=mi?mi.prototype:c,Pa=Er?Er.valueOf:c,Oo=Er?Er.toString:c;function ze(B){if(Lr(B)&&!er(B)&&!(B instanceof or)){if(B instanceof oi)return B;if(mr.call(B,"__wrapped__"))return Ku(B)}return new oi(B)}var ms=(function(){function B(){}return function(ee){if(!Cr(ee))return{};if(ho)return ho(ee);B.prototype=ee;var se=new B;return B.prototype=c,se}})();function vs(){}function oi(B,ee){this.__wrapped__=B,this.__actions__=[],this.__chain__=!!ee,this.__index__=0,this.__values__=c}ze.templateSettings={escape:nn,evaluate:Wt,interpolate:ln,variable:"",imports:{_:ze}},ze.prototype=vs.prototype,ze.prototype.constructor=ze,oi.prototype=ms(vs.prototype),oi.prototype.constructor=oi;function or(B){this.__wrapped__=B,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ie,this.__views__=[]}function Lc(){var B=new or(this.__wrapped__);return B.__actions__=vi(this.__actions__),B.__dir__=this.__dir__,B.__filtered__=this.__filtered__,B.__iteratees__=vi(this.__iteratees__),B.__takeCount__=this.__takeCount__,B.__views__=vi(this.__views__),B}function Fc(){if(this.__filtered__){var B=new or(this);B.__dir__=-1,B.__filtered__=!0}else B=this.clone(),B.__dir__*=-1;return B}function zc(){var B=this.__wrapped__.value(),ee=this.__dir__,se=er(B),fe=ee<0,xe=se?B.length:0,Ne=Yd(0,xe,this.__views__),tt=Ne.start,yt=Ne.end,zt=yt-tt,an=fe?yt:tt-1,sn=this.__iteratees__,dn=sn.length,Tn=0,Dn=Qe(zt,this.__takeCount__);if(!se||!fe&&xe==zt&&Dn==zt)return bu(B,this.__actions__);var Wn=[];e:for(;zt--&&Tn<Dn;){an+=ee;for(var rr=-1,Un=B[an];++rr<dn;){var ur=sn[rr],fr=ur.iteratee,Ei=ur.type,ci=fr(Un);if(Ei==me)Un=ci;else if(!ci){if(Ei==Le)continue e;break e}}Wn[Tn++]=Un}return Wn}or.prototype=ms(vs.prototype),or.prototype.constructor=or;function Ds(B){var ee=-1,se=B==null?0:B.length;for(this.clear();++ee<se;){var fe=B[ee];this.set(fe[0],fe[1])}}function Nc(){this.__data__=Br?Br(null):{},this.size=0}function Rc(B){var ee=this.has(B)&&delete this.__data__[B];return this.size-=ee?1:0,ee}function $c(B){var ee=this.__data__;if(Br){var se=ee[B];return se===A?c:se}return mr.call(ee,B)?ee[B]:c}function Bc(B){var ee=this.__data__;return Br?ee[B]!==c:mr.call(ee,B)}function jc(B,ee){var se=this.__data__;return this.size+=this.has(B)?0:1,se[B]=Br&&ee===c?A:ee,this}Ds.prototype.clear=Nc,Ds.prototype.delete=Rc,Ds.prototype.get=$c,Ds.prototype.has=Bc,Ds.prototype.set=jc;function Za(B){var ee=-1,se=B==null?0:B.length;for(this.clear();++ee<se;){var fe=B[ee];this.set(fe[0],fe[1])}}function Gc(){this.__data__=[],this.size=0}function qc(B){var ee=this.__data__,se=Co(ee,B);if(se<0)return!1;var fe=ee.length-1;return se==fe?ee.pop():to.call(ee,se,1),--this.size,!0}function Uc(B){var ee=this.__data__,se=Co(ee,B);return se<0?c:ee[se][1]}function Vc(B){return Co(this.__data__,B)>-1}function Hc(B,ee){var se=this.__data__,fe=Co(se,B);return fe<0?(++this.size,se.push([B,ee])):se[fe][1]=ee,this}Za.prototype.clear=Gc,Za.prototype.delete=qc,Za.prototype.get=Uc,Za.prototype.has=Vc,Za.prototype.set=Hc;function Ya(B){var ee=-1,se=B==null?0:B.length;for(this.clear();++ee<se;){var fe=B[ee];this.set(fe[0],fe[1])}}function Wc(){this.size=0,this.__data__={hash:new Ds,map:new(Qn||Za),string:new Ds}}function Zc(B){var ee=qo(this,B).delete(B);return this.size-=ee?1:0,ee}function Yc(B){return qo(this,B).get(B)}function Kc(B){return qo(this,B).has(B)}function Xc(B,ee){var se=qo(this,B),fe=se.size;return se.set(B,ee),this.size+=se.size==fe?0:1,this}Ya.prototype.clear=Wc,Ya.prototype.delete=Zc,Ya.prototype.get=Yc,Ya.prototype.has=Kc,Ya.prototype.set=Xc;function Ls(B){var ee=-1,se=B==null?0:B.length;for(this.__data__=new Ya;++ee<se;)this.add(B[ee])}function Jc(B){return this.__data__.set(B,A),this}function Qc(B){return this.__data__.has(B)}Ls.prototype.add=Ls.prototype.push=Jc,Ls.prototype.has=Qc;function Ui(B){var ee=this.__data__=new Za(B);this.size=ee.size}function ed(){this.__data__=new Za,this.size=0}function td(B){var ee=this.__data__,se=ee.delete(B);return this.size=ee.size,se}function nd(B){return this.__data__.get(B)}function rd(B){return this.__data__.has(B)}function id(B,ee){var se=this.__data__;if(se instanceof Za){var fe=se.__data__;if(!Qn||fe.length<h-1)return fe.push([B,ee]),this.size=++se.size,this;se=this.__data__=new Ya(fe)}return se.set(B,ee),this.size=se.size,this}Ui.prototype.clear=ed,Ui.prototype.delete=td,Ui.prototype.get=nd,Ui.prototype.has=rd,Ui.prototype.set=id;function Kl(B,ee){var se=er(B),fe=!se&&$s(B),xe=!se&&!fe&&Ts(B),Ne=!se&&!fe&&!xe&&so(B),tt=se||fe||xe||Ne,yt=tt?$i(B.length,Js):[],zt=yt.length;for(var an in B)(ee||mr.call(B,an))&&!(tt&&(an=="length"||xe&&(an=="offset"||an=="parent")||Ne&&(an=="buffer"||an=="byteLength"||an=="byteOffset")||Qa(an,zt)))&&yt.push(an);return yt}function Xl(B){var ee=B.length;return ee?B[_l(0,ee-1)]:c}function ad(B,ee){return Uo(vi(B),Fs(ee,0,B.length))}function sd(B){return Uo(vi(B))}function al(B,ee,se){(se!==c&&!Hi(B[ee],se)||se===c&&!(ee in B))&&Ma(B,ee,se)}function go(B,ee,se){var fe=B[ee];(!(mr.call(B,ee)&&Hi(fe,se))||se===c&&!(ee in B))&&Ma(B,ee,se)}function Co(B,ee){for(var se=B.length;se--;)if(Hi(B[se][0],ee))return se;return-1}function od(B,ee,se,fe){return bs(B,function(xe,Ne,tt){ee(fe,xe,se(xe),tt)}),fe}function Jl(B,ee){return B&&La(ee,Yr(ee),B)}function ld(B,ee){return B&&La(ee,yi(ee),B)}function Ma(B,ee,se){ee=="__proto__"&&Cs?Cs(B,ee,{configurable:!0,enumerable:!0,value:se,writable:!0}):B[ee]=se}function sl(B,ee){for(var se=-1,fe=ee.length,xe=Ht(fe),Ne=B==null;++se<fe;)xe[se]=Ne?c:jl(B,ee[se]);return xe}function Fs(B,ee,se){return B===B&&(se!==c&&(B=B<=se?B:se),ee!==c&&(B=B>=ee?B:ee)),B}function Ii(B,ee,se,fe,xe,Ne){var tt,yt=ee&e,zt=ee&f,an=ee&g;if(se&&(tt=xe?se(B,fe,xe,Ne):se(B)),tt!==c)return tt;if(!Cr(B))return B;var sn=er(B);if(sn){if(tt=Xd(B),!yt)return vi(B,tt)}else{var dn=ri(B),Tn=dn==ot||dn==bt;if(Ts(B))return wu(B,yt);if(dn==Et||dn==Te||Tn&&!xe){if(tt=zt||Tn?{}:ju(B),!yt)return zt?Bd(B,ld(tt,B)):$d(B,Jl(tt,B))}else{if(!$t[dn])return xe?B:{};tt=Jd(B,dn,yt)}}Ne||(Ne=new Ui);var Dn=Ne.get(B);if(Dn)return Dn;Ne.set(B,tt),gc(B)?B.forEach(function(Un){tt.add(Ii(Un,ee,se,Un,B,Ne))}):pc(B)&&B.forEach(function(Un,ur){tt.set(ur,Ii(Un,ee,se,ur,B,Ne))});var Wn=an?zt?El:Sl:zt?yi:Yr,rr=sn?c:Wn(B);return Ar(rr||B,function(Un,ur){rr&&(ur=Un,Un=B[ur]),go(tt,ur,Ii(Un,ee,se,ur,B,Ne))}),tt}function ud(B){var ee=Yr(B);return function(se){return Ql(se,B,ee)}}function Ql(B,ee,se){var fe=se.length;if(B==null)return!fe;for(B=yr(B);fe--;){var xe=se[fe],Ne=ee[xe],tt=B[xe];if(tt===c&&!(xe in B)||!Ne(tt))return!1}return!0}function eu(B,ee,se){if(typeof B!="function")throw new gi(p);return To(function(){B.apply(c,se)},ee)}function mo(B,ee,se,fe){var xe=-1,Ne=$a,tt=!0,yt=B.length,zt=[],an=ee.length;if(!yt)return zt;se&&(ee=br(ee,Pr(se))),fe?(Ne=as,tt=!1):ee.length>=h&&(Ne=gr,tt=!1,ee=new Ls(ee));e:for(;++xe<yt;){var sn=B[xe],dn=se==null?sn:se(sn);if(sn=fe||sn!==0?sn:0,tt&&dn===dn){for(var Tn=an;Tn--;)if(ee[Tn]===dn)continue e;zt.push(sn)}else Ne(ee,dn,fe)||zt.push(sn)}return zt}var bs=Au(Oa),tu=Au(ll,!0);function cd(B,ee){var se=!0;return bs(B,function(fe,xe,Ne){return se=!!ee(fe,xe,Ne),se}),se}function Io(B,ee,se){for(var fe=-1,xe=B.length;++fe<xe;){var Ne=B[fe],tt=ee(Ne);if(tt!=null&&(yt===c?tt===tt&&!Si(tt):se(tt,yt)))var yt=tt,zt=Ne}return zt}function dd(B,ee,se,fe){var xe=B.length;for(se=tr(se),se<0&&(se=-se>xe?0:xe+se),fe=fe===c||fe>xe?xe:tr(fe),fe<0&&(fe+=xe),fe=se>fe?0:vc(fe);se<fe;)B[se++]=ee;return B}function nu(B,ee){var se=[];return bs(B,function(fe,xe,Ne){ee(fe,xe,Ne)&&se.push(fe)}),se}function ti(B,ee,se,fe,xe){var Ne=-1,tt=B.length;for(se||(se=ef),xe||(xe=[]);++Ne<tt;){var yt=B[Ne];ee>0&&se(yt)?ee>1?ti(yt,ee-1,se,fe,xe):Ti(xe,yt):fe||(xe[xe.length]=yt)}return xe}var ol=Pu(),ru=Pu(!0);function Oa(B,ee){return B&&ol(B,ee,Yr)}function ll(B,ee){return B&&ru(B,ee,Yr)}function Do(B,ee){return hi(ee,function(se){return es(B[se])})}function zs(B,ee){ee=xs(ee,B);for(var se=0,fe=ee.length;B!=null&&se<fe;)B=B[Vi(ee[se++])];return se&&se==fe?B:c}function iu(B,ee,se){var fe=ee(B);return er(B)?fe:Ti(fe,se(B))}function li(B){return B==null?B===c?Xe:be:Sa&&Sa in yr(B)?Zd(B):uf(B)}function ul(B,ee){return B>ee}function fd(B,ee){return B!=null&&mr.call(B,ee)}function hd(B,ee){return B!=null&&ee in yr(B)}function pd(B,ee,se){return B>=Qe(ee,se)&&B<Ee(ee,se)}function cl(B,ee,se){for(var fe=se?as:$a,xe=B[0].length,Ne=B.length,tt=Ne,yt=Ht(Ne),zt=1/0,an=[];tt--;){var sn=B[tt];tt&&ee&&(sn=br(sn,Pr(ee))),zt=Qe(sn.length,zt),yt[tt]=!se&&(ee||xe>=120&&sn.length>=120)?new Ls(tt&&sn):c}sn=B[0];var dn=-1,Tn=yt[0];e:for(;++dn<xe&&an.length<zt;){var Dn=sn[dn],Wn=ee?ee(Dn):Dn;if(Dn=se||Dn!==0?Dn:0,!(Tn?gr(Tn,Wn):fe(an,Wn,se))){for(tt=Ne;--tt;){var rr=yt[tt];if(!(rr?gr(rr,Wn):fe(B[tt],Wn,se)))continue e}Tn&&Tn.push(Wn),an.push(Dn)}}return an}function _d(B,ee,se,fe){return Oa(B,function(xe,Ne,tt){ee(fe,se(xe),Ne,tt)}),fe}function vo(B,ee,se){ee=xs(ee,B),B=Vu(B,ee);var fe=B==null?B:B[Vi(Li(ee))];return fe==null?c:Wr(fe,B,se)}function au(B){return Lr(B)&&li(B)==Te}function gd(B){return Lr(B)&&li(B)==xt}function vd(B){return Lr(B)&&li(B)==ht}function bo(B,ee,se,fe,xe){return B===ee?!0:B==null||ee==null||!Lr(B)&&!Lr(ee)?B!==B&&ee!==ee:bd(B,ee,se,fe,bo,xe)}function bd(B,ee,se,fe,xe,Ne){var tt=er(B),yt=er(ee),zt=tt?ve:ri(B),an=yt?ve:ri(ee);zt=zt==Te?Et:zt,an=an==Te?Et:an;var sn=zt==Et,dn=an==Et,Tn=zt==an;if(Tn&&Ts(B)){if(!Ts(ee))return!1;tt=!0,sn=!1}if(Tn&&!sn)return Ne||(Ne=new Ui),tt||so(B)?Ru(B,ee,se,fe,xe,Ne):Hd(B,ee,zt,se,fe,xe,Ne);if(!(se&R)){var Dn=sn&&mr.call(B,"__wrapped__"),Wn=dn&&mr.call(ee,"__wrapped__");if(Dn||Wn){var rr=Dn?B.value():B,Un=Wn?ee.value():ee;return Ne||(Ne=new Ui),xe(rr,Un,se,fe,Ne)}}return Tn?(Ne||(Ne=new Ui),Wd(B,ee,se,fe,xe,Ne)):!1}function yd(B){return Lr(B)&&ri(B)==At}function dl(B,ee,se,fe){var xe=se.length,Ne=xe,tt=!fe;if(B==null)return!Ne;for(B=yr(B);xe--;){var yt=se[xe];if(tt&&yt[2]?yt[1]!==B[yt[0]]:!(yt[0]in B))return!1}for(;++xe<Ne;){yt=se[xe];var zt=yt[0],an=B[zt],sn=yt[1];if(tt&&yt[2]){if(an===c&&!(zt in B))return!1}else{var dn=new Ui;if(fe)var Tn=fe(an,sn,zt,B,ee,dn);if(!(Tn===c?bo(sn,an,R|q,fe,dn):Tn))return!1}}return!0}function su(B){if(!Cr(B)||nf(B))return!1;var ee=es(B)?So:en;return ee.test(Rs(B))}function xd(B){return Lr(B)&&li(B)==Bt}function wd(B){return Lr(B)&&ri(B)==Vt}function Td(B){return Lr(B)&&Ko(B.length)&&!!kt[li(B)]}function ou(B){return typeof B=="function"?B:B==null?xi:typeof B=="object"?er(B)?cu(B[0],B[1]):uu(B):Oc(B)}function fl(B){if(!wo(B))return pe(B);var ee=[];for(var se in yr(B))mr.call(B,se)&&se!="constructor"&&ee.push(se);return ee}function kd(B){if(!Cr(B))return lf(B);var ee=wo(B),se=[];for(var fe in B)fe=="constructor"&&(ee||!mr.call(B,fe))||se.push(fe);return se}function hl(B,ee){return B<ee}function lu(B,ee){var se=-1,fe=bi(B)?Ht(B.length):[];return bs(B,function(xe,Ne,tt){fe[++se]=ee(xe,Ne,tt)}),fe}function uu(B){var ee=Pl(B);return ee.length==1&&ee[0][2]?qu(ee[0][0],ee[0][1]):function(se){return se===B||dl(se,B,ee)}}function cu(B,ee){return Ol(B)&&Gu(ee)?qu(Vi(B),ee):function(se){var fe=jl(se,B);return fe===c&&fe===ee?Gl(se,B):bo(ee,fe,R|q)}}function Lo(B,ee,se,fe,xe){B!==ee&&ol(ee,function(Ne,tt){if(xe||(xe=new Ui),Cr(Ne))Sd(B,ee,tt,se,Lo,fe,xe);else{var yt=fe?fe(Il(B,tt),Ne,tt+"",B,ee,xe):c;yt===c&&(yt=Ne),al(B,tt,yt)}},yi)}function Sd(B,ee,se,fe,xe,Ne,tt){var yt=Il(B,se),zt=Il(ee,se),an=tt.get(zt);if(an){al(B,se,an);return}var sn=Ne?Ne(yt,zt,se+"",B,ee,tt):c,dn=sn===c;if(dn){var Tn=er(zt),Dn=!Tn&&Ts(zt),Wn=!Tn&&!Dn&&so(zt);sn=zt,Tn||Dn||Wn?er(yt)?sn=yt:zr(yt)?sn=vi(yt):Dn?(dn=!1,sn=wu(zt,!0)):Wn?(dn=!1,sn=Tu(zt,!0)):sn=[]:ko(zt)||$s(zt)?(sn=yt,$s(yt)?sn=bc(yt):(!Cr(yt)||es(yt))&&(sn=ju(zt))):dn=!1}dn&&(tt.set(zt,sn),xe(sn,zt,fe,Ne,tt),tt.delete(zt)),al(B,se,sn)}function du(B,ee){var se=B.length;if(se)return ee+=ee<0?se:0,Qa(ee,se)?B[ee]:c}function fu(B,ee,se){ee.length?ee=br(ee,function(Ne){return er(Ne)?function(tt){return zs(tt,Ne.length===1?Ne[0]:Ne)}:Ne}):ee=[xi];var fe=-1;ee=br(ee,Pr(Vn()));var xe=lu(B,function(Ne,tt,yt){var zt=br(ee,function(an){return an(Ne)});return{criteria:zt,index:++fe,value:Ne}});return ls(xe,function(Ne,tt){return Rd(Ne,tt,se)})}function Ed(B,ee){return hu(B,ee,function(se,fe){return Gl(B,fe)})}function hu(B,ee,se){for(var fe=-1,xe=ee.length,Ne={};++fe<xe;){var tt=ee[fe],yt=zs(B,tt);se(yt,tt)&&yo(Ne,xs(tt,B),yt)}return Ne}function Ad(B){return function(ee){return zs(ee,B)}}function pl(B,ee,se,fe){var xe=fe?Gr:Xr,Ne=-1,tt=ee.length,yt=B;for(B===ee&&(ee=vi(ee)),se&&(yt=br(B,Pr(se)));++Ne<tt;)for(var zt=0,an=ee[Ne],sn=se?se(an):an;(zt=xe(yt,sn,zt,fe))>-1;)yt!==B&&to.call(yt,zt,1),to.call(B,zt,1);return B}function pu(B,ee){for(var se=B?ee.length:0,fe=se-1;se--;){var xe=ee[se];if(se==fe||xe!==Ne){var Ne=xe;Qa(xe)?to.call(B,xe,1):vl(B,xe)}}return B}function _l(B,ee){return B+no(un()*(ee-B+1))}function Pd(B,ee,se,fe){for(var xe=-1,Ne=Ee(Is((ee-B)/(se||1)),0),tt=Ht(Ne);Ne--;)tt[fe?Ne:++xe]=B,B+=se;return tt}function gl(B,ee){var se="";if(!B||ee<1||ee>ye)return se;do ee%2&&(se+=B),ee=no(ee/2),ee&&(B+=B);while(ee);return se}function ar(B,ee){return Dl(Uu(B,ee,xi),B+"")}function Md(B){return Xl(oo(B))}function Od(B,ee){var se=oo(B);return Uo(se,Fs(ee,0,se.length))}function yo(B,ee,se,fe){if(!Cr(B))return B;ee=xs(ee,B);for(var xe=-1,Ne=ee.length,tt=Ne-1,yt=B;yt!=null&&++xe<Ne;){var zt=Vi(ee[xe]),an=se;if(zt==="__proto__"||zt==="constructor"||zt==="prototype")return B;if(xe!=tt){var sn=yt[zt];an=fe?fe(sn,zt,yt):c,an===c&&(an=Cr(sn)?sn:Qa(ee[xe+1])?[]:{})}go(yt,zt,an),yt=yt[zt]}return B}var _u=qi?function(B,ee){return qi.set(B,ee),B}:xi,Cd=Cs?function(B,ee){return Cs(B,"toString",{configurable:!0,enumerable:!1,value:Ul(ee),writable:!0})}:xi;function Id(B){return Uo(oo(B))}function Di(B,ee,se){var fe=-1,xe=B.length;ee<0&&(ee=-ee>xe?0:xe+ee),se=se>xe?xe:se,se<0&&(se+=xe),xe=ee>se?0:se-ee>>>0,ee>>>=0;for(var Ne=Ht(xe);++fe<xe;)Ne[fe]=B[fe+ee];return Ne}function Dd(B,ee){var se;return bs(B,function(fe,xe,Ne){return se=ee(fe,xe,Ne),!se}),!!se}function Fo(B,ee,se){var fe=0,xe=B==null?fe:B.length;if(typeof ee=="number"&&ee===ee&&xe<=Ge){for(;fe<xe;){var Ne=fe+xe>>>1,tt=B[Ne];tt!==null&&!Si(tt)&&(se?tt<=ee:tt<ee)?fe=Ne+1:xe=Ne}return xe}return ml(B,ee,xi,se)}function ml(B,ee,se,fe){var xe=0,Ne=B==null?0:B.length;if(Ne===0)return 0;ee=se(ee);for(var tt=ee!==ee,yt=ee===null,zt=Si(ee),an=ee===c;xe<Ne;){var sn=no((xe+Ne)/2),dn=se(B[sn]),Tn=dn!==c,Dn=dn===null,Wn=dn===dn,rr=Si(dn);if(tt)var Un=fe||Wn;else an?Un=Wn&&(fe||Tn):yt?Un=Wn&&Tn&&(fe||!Dn):zt?Un=Wn&&Tn&&!Dn&&(fe||!rr):Dn||rr?Un=!1:Un=fe?dn<=ee:dn<ee;Un?xe=sn+1:Ne=sn}return Qe(Ne,qe)}function gu(B,ee){for(var se=-1,fe=B.length,xe=0,Ne=[];++se<fe;){var tt=B[se],yt=ee?ee(tt):tt;if(!se||!Hi(yt,zt)){var zt=yt;Ne[xe++]=tt===0?0:tt}}return Ne}function mu(B){return typeof B=="number"?B:Si(B)?Ae:+B}function ki(B){if(typeof B=="string")return B;if(er(B))return br(B,ki)+"";if(Si(B))return Oo?Oo.call(B):"";var ee=B+"";return ee=="0"&&1/B==-Se?"-0":ee}function ys(B,ee,se){var fe=-1,xe=$a,Ne=B.length,tt=!0,yt=[],zt=yt;if(se)tt=!1,xe=as;else if(Ne>=h){var an=ee?null:Ud(B);if(an)return fs(an);tt=!1,xe=gr,zt=new Ls}else zt=ee?[]:yt;e:for(;++fe<Ne;){var sn=B[fe],dn=ee?ee(sn):sn;if(sn=se||sn!==0?sn:0,tt&&dn===dn){for(var Tn=zt.length;Tn--;)if(zt[Tn]===dn)continue e;ee&&zt.push(dn),yt.push(sn)}else xe(zt,dn,se)||(zt!==yt&&zt.push(dn),yt.push(sn))}return yt}function vl(B,ee){ee=xs(ee,B);var se=-1,fe=ee.length;if(!fe)return!0;for(;++se<fe;){var xe=Vi(ee[se]);if(xe==="__proto__"&&!mr.call(B,"__proto__")||(xe==="constructor"||xe==="prototype")&&se<fe-1)return!1}var Ne=Vu(B,ee);return Ne==null||delete Ne[Vi(Li(ee))]}function vu(B,ee,se,fe){return yo(B,ee,se(zs(B,ee)),fe)}function zo(B,ee,se,fe){for(var xe=B.length,Ne=fe?xe:-1;(fe?Ne--:++Ne<xe)&&ee(B[Ne],Ne,B););return se?Di(B,fe?0:Ne,fe?Ne+1:xe):Di(B,fe?Ne+1:0,fe?xe:Ne)}function bu(B,ee){var se=B;return se instanceof or&&(se=se.value()),Es(ee,function(fe,xe){return xe.func.apply(xe.thisArg,Ti([fe],xe.args))},se)}function bl(B,ee,se){var fe=B.length;if(fe<2)return fe?ys(B[0]):[];for(var xe=-1,Ne=Ht(fe);++xe<fe;)for(var tt=B[xe],yt=-1;++yt<fe;)yt!=xe&&(Ne[xe]=mo(Ne[xe]||tt,B[yt],ee,se));return ys(ti(Ne,1),ee,se)}function yu(B,ee,se){for(var fe=-1,xe=B.length,Ne=ee.length,tt={};++fe<xe;){var yt=fe<Ne?ee[fe]:c;se(tt,B[fe],yt)}return tt}function yl(B){return zr(B)?B:[]}function xl(B){return typeof B=="function"?B:xi}function xs(B,ee){return er(B)?B:Ol(B,ee)?[B]:Yu(vr(B))}var Ld=ar;function ws(B,ee,se){var fe=B.length;return se=se===c?fe:se,!ee&&se>=fe?B:Di(B,ee,se)}var xu=Eo||function(B){return An.clearTimeout(B)};function wu(B,ee){if(ee)return B.slice();var se=B.length,fe=Os?Os(se):new B.constructor(se);return B.copy(fe),fe}function wl(B){var ee=new B.constructor(B.byteLength);return new eo(ee).set(new eo(B)),ee}function Fd(B,ee){var se=ee?wl(B.buffer):B.buffer;return new B.constructor(se,B.byteOffset,B.byteLength)}function zd(B){var ee=new B.constructor(B.source,dt.exec(B));return ee.lastIndex=B.lastIndex,ee}function Nd(B){return Pa?yr(Pa.call(B)):{}}function Tu(B,ee){var se=ee?wl(B.buffer):B.buffer;return new B.constructor(se,B.byteOffset,B.length)}function ku(B,ee){if(B!==ee){var se=B!==c,fe=B===null,xe=B===B,Ne=Si(B),tt=ee!==c,yt=ee===null,zt=ee===ee,an=Si(ee);if(!yt&&!an&&!Ne&&B>ee||Ne&&tt&&zt&&!yt&&!an||fe&&tt&&zt||!se&&zt||!xe)return 1;if(!fe&&!Ne&&!an&&B<ee||an&&se&&xe&&!fe&&!Ne||yt&&se&&xe||!tt&&xe||!zt)return-1}return 0}function Rd(B,ee,se){for(var fe=-1,xe=B.criteria,Ne=ee.criteria,tt=xe.length,yt=se.length;++fe<tt;){var zt=ku(xe[fe],Ne[fe]);if(zt){if(fe>=yt)return zt;var an=se[fe];return zt*(an=="desc"?-1:1)}}return B.index-ee.index}function Su(B,ee,se,fe){for(var xe=-1,Ne=B.length,tt=se.length,yt=-1,zt=ee.length,an=Ee(Ne-tt,0),sn=Ht(zt+an),dn=!fe;++yt<zt;)sn[yt]=ee[yt];for(;++xe<tt;)(dn||xe<Ne)&&(sn[se[xe]]=B[xe]);for(;an--;)sn[yt++]=B[xe++];return sn}function Eu(B,ee,se,fe){for(var xe=-1,Ne=B.length,tt=-1,yt=se.length,zt=-1,an=ee.length,sn=Ee(Ne-yt,0),dn=Ht(sn+an),Tn=!fe;++xe<sn;)dn[xe]=B[xe];for(var Dn=xe;++zt<an;)dn[Dn+zt]=ee[zt];for(;++tt<yt;)(Tn||xe<Ne)&&(dn[Dn+se[tt]]=B[xe++]);return dn}function vi(B,ee){var se=-1,fe=B.length;for(ee||(ee=Ht(fe));++se<fe;)ee[se]=B[se];return ee}function La(B,ee,se,fe){var xe=!se;se||(se={});for(var Ne=-1,tt=ee.length;++Ne<tt;){var yt=ee[Ne],zt=fe?fe(se[yt],B[yt],yt,se,B):c;zt===c&&(zt=B[yt]),xe?Ma(se,yt,zt):go(se,yt,zt)}return se}function $d(B,ee){return La(B,Ml(B),ee)}function Bd(B,ee){return La(B,$u(B),ee)}function No(B,ee){return function(se,fe){var xe=er(se)?Us:od,Ne=ee?ee():{};return xe(se,B,Vn(fe,2),Ne)}}function ro(B){return ar(function(ee,se){var fe=-1,xe=se.length,Ne=xe>1?se[xe-1]:c,tt=xe>2?se[2]:c;for(Ne=B.length>3&&typeof Ne=="function"?(xe--,Ne):c,tt&&ui(se[0],se[1],tt)&&(Ne=xe<3?c:Ne,xe=1),ee=yr(ee);++fe<xe;){var yt=se[fe];yt&&B(ee,yt,fe,Ne)}return ee})}function Au(B,ee){return function(se,fe){if(se==null)return se;if(!bi(se))return B(se,fe);for(var xe=se.length,Ne=ee?xe:-1,tt=yr(se);(ee?Ne--:++Ne<xe)&&fe(tt[Ne],Ne,tt)!==!1;);return se}}function Pu(B){return function(ee,se,fe){for(var xe=-1,Ne=yr(ee),tt=fe(ee),yt=tt.length;yt--;){var zt=tt[B?yt:++xe];if(se(Ne[zt],zt,Ne)===!1)break}return ee}}function jd(B,ee,se){var fe=ee&H,xe=xo(B);function Ne(){var tt=this&&this!==An&&this instanceof Ne?xe:B;return tt.apply(fe?se:this,arguments)}return Ne}function Mu(B){return function(ee){ee=vr(ee);var se=ei(ee)?pi(ee):c,fe=se?se[0]:ee.charAt(0),xe=se?ws(se,1).join(""):ee.slice(1);return fe[B]()+xe}}function io(B){return function(ee){return Es(Pc(Ac(ee).replace(Pi,"")),B,"")}}function xo(B){return function(){var ee=arguments;switch(ee.length){case 0:return new B;case 1:return new B(ee[0]);case 2:return new B(ee[0],ee[1]);case 3:return new B(ee[0],ee[1],ee[2]);case 4:return new B(ee[0],ee[1],ee[2],ee[3]);case 5:return new B(ee[0],ee[1],ee[2],ee[3],ee[4]);case 6:return new B(ee[0],ee[1],ee[2],ee[3],ee[4],ee[5]);case 7:return new B(ee[0],ee[1],ee[2],ee[3],ee[4],ee[5],ee[6])}var se=ms(B.prototype),fe=B.apply(se,ee);return Cr(fe)?fe:se}}function Gd(B,ee,se){var fe=xo(B);function xe(){for(var Ne=arguments.length,tt=Ht(Ne),yt=Ne,zt=ao(xe);yt--;)tt[yt]=arguments[yt];var an=Ne<3&&tt[0]!==zt&&tt[Ne-1]!==zt?[]:$r(tt,zt);if(Ne-=an.length,Ne<se)return Lu(B,ee,Ro,xe.placeholder,c,tt,an,c,c,se-Ne);var sn=this&&this!==An&&this instanceof xe?fe:B;return Wr(sn,this,tt)}return xe}function Ou(B){return function(ee,se,fe){var xe=yr(ee);if(!bi(ee)){var Ne=Vn(se,3);ee=Yr(ee),se=function(yt){return Ne(xe[yt],yt,xe)}}var tt=B(ee,se,fe);return tt>-1?xe[Ne?ee[tt]:tt]:c}}function Cu(B){return Xa(function(ee){var se=ee.length,fe=se,xe=oi.prototype.thru;for(B&&ee.reverse();fe--;){var Ne=ee[fe];if(typeof Ne!="function")throw new gi(p);if(xe&&!tt&&Go(Ne)=="wrapper")var tt=new oi([],!0)}for(fe=tt?fe:se;++fe<se;){Ne=ee[fe];var yt=Go(Ne),zt=yt=="wrapper"?Al(Ne):c;zt&&Cl(zt[0])&&zt[1]==(ce|ae|oe|ue)&&!zt[4].length&&zt[9]==1?tt=tt[Go(zt[0])].apply(tt,zt[3]):tt=Ne.length==1&&Cl(Ne)?tt[yt]():tt.thru(Ne)}return function(){var an=arguments,sn=an[0];if(tt&&an.length==1&&er(sn))return tt.plant(sn).value();for(var dn=0,Tn=se?ee[dn].apply(this,an):sn;++dn<se;)Tn=ee[dn].call(this,Tn);return Tn}})}function Ro(B,ee,se,fe,xe,Ne,tt,yt,zt,an){var sn=ee&ce,dn=ee&H,Tn=ee&te,Dn=ee&(ae|ne),Wn=ee&he,rr=Tn?c:xo(B);function Un(){for(var ur=arguments.length,fr=Ht(ur),Ei=ur;Ei--;)fr[Ei]=arguments[Ei];if(Dn)var ci=ao(Un),Ai=Ci(fr,ci);if(fe&&(fr=Su(fr,fe,xe,Dn)),Ne&&(fr=Eu(fr,Ne,tt,Dn)),ur-=Ai,Dn&&ur<an){var Nr=$r(fr,ci);return Lu(B,ee,Ro,Un.placeholder,se,fr,Nr,yt,zt,an-ur)}var Wi=dn?se:this,ns=Tn?Wi[B]:B;return ur=fr.length,yt?fr=cf(fr,yt):Wn&&ur>1&&fr.reverse(),sn&&zt<ur&&(fr.length=zt),this&&this!==An&&this instanceof Un&&(ns=rr||xo(ns)),ns.apply(Wi,fr)}return Un}function Iu(B,ee){return function(se,fe){return _d(se,B,ee(fe),{})}}function $o(B,ee){return function(se,fe){var xe;if(se===c&&fe===c)return ee;if(se!==c&&(xe=se),fe!==c){if(xe===c)return fe;typeof se=="string"||typeof fe=="string"?(se=ki(se),fe=ki(fe)):(se=mu(se),fe=mu(fe)),xe=B(se,fe)}return xe}}function Tl(B){return Xa(function(ee){return ee=br(ee,Pr(Vn())),ar(function(se){var fe=this;return B(ee,function(xe){return Wr(xe,fe,se)})})})}function Bo(B,ee){ee=ee===c?" ":ki(ee);var se=ee.length;if(se<2)return se?gl(ee,B):ee;var fe=gl(ee,Is(B/ji(ee)));return ei(ee)?ws(pi(fe),0,B).join(""):fe.slice(0,B)}function qd(B,ee,se,fe){var xe=ee&H,Ne=xo(B);function tt(){for(var yt=-1,zt=arguments.length,an=-1,sn=fe.length,dn=Ht(sn+zt),Tn=this&&this!==An&&this instanceof tt?Ne:B;++an<sn;)dn[an]=fe[an];for(;zt--;)dn[an++]=arguments[++yt];return Wr(Tn,xe?se:this,dn)}return tt}function Du(B){return function(ee,se,fe){return fe&&typeof fe!="number"&&ui(ee,se,fe)&&(se=fe=c),ee=ts(ee),se===c?(se=ee,ee=0):se=ts(se),fe=fe===c?ee<se?1:-1:ts(fe),Pd(ee,se,fe,B)}}function jo(B){return function(ee,se){return typeof ee=="string"&&typeof se=="string"||(ee=Fi(ee),se=Fi(se)),B(ee,se)}}function Lu(B,ee,se,fe,xe,Ne,tt,yt,zt,an){var sn=ee&ae,dn=sn?tt:c,Tn=sn?c:tt,Dn=sn?Ne:c,Wn=sn?c:Ne;ee|=sn?oe:le,ee&=~(sn?le:oe),ee&re||(ee&=-4);var rr=[B,ee,xe,Dn,dn,Wn,Tn,yt,zt,an],Un=se.apply(c,rr);return Cl(B)&&Hu(Un,rr),Un.placeholder=fe,Wu(Un,B,ee)}function kl(B){var ee=Dr[B];return function(se,fe){if(se=Fi(se),fe=fe==null?0:Qe(tr(fe),292),fe&&ie(se)){var xe=(vr(se)+"e").split("e"),Ne=ee(xe[0]+"e"+(+xe[1]+fe));return xe=(vr(Ne)+"e").split("e"),+(xe[0]+"e"+(+xe[1]-fe))}return ee(se)}}var Ud=Sr&&1/fs(new Sr([,-0]))[1]==Se?function(B){return new Sr(B)}:Wl;function Fu(B){return function(ee){var se=ri(ee);return se==At?Ua(ee):se==Vt?Qi(ee):us(ee,B(ee))}}function Ka(B,ee,se,fe,xe,Ne,tt,yt){var zt=ee&te;if(!zt&&typeof B!="function")throw new gi(p);var an=fe?fe.length:0;if(an||(ee&=-97,fe=xe=c),tt=tt===c?tt:Ee(tr(tt),0),yt=yt===c?yt:tr(yt),an-=xe?xe.length:0,ee&le){var sn=fe,dn=xe;fe=xe=c}var Tn=zt?c:Al(B),Dn=[B,ee,se,fe,xe,sn,dn,Ne,tt,yt];if(Tn&&of(Dn,Tn),B=Dn[0],ee=Dn[1],se=Dn[2],fe=Dn[3],xe=Dn[4],yt=Dn[9]=Dn[9]===c?zt?0:B.length:Ee(Dn[9]-an,0),!yt&&ee&(ae|ne)&&(ee&=-25),!ee||ee==H)var Wn=jd(B,ee,se);else ee==ae||ee==ne?Wn=Gd(B,ee,yt):(ee==oe||ee==(H|oe))&&!xe.length?Wn=qd(B,ee,se,fe):Wn=Ro.apply(c,Dn);var rr=Tn?_u:Hu;return Wu(rr(Wn,Dn),B,ee)}function zu(B,ee,se,fe){return B===c||Hi(B,Wa[se])&&!mr.call(fe,se)?ee:B}function Nu(B,ee,se,fe,xe,Ne){return Cr(B)&&Cr(ee)&&(Ne.set(ee,B),Lo(B,ee,c,Nu,Ne),Ne.delete(ee)),B}function Vd(B){return ko(B)?c:B}function Ru(B,ee,se,fe,xe,Ne){var tt=se&R,yt=B.length,zt=ee.length;if(yt!=zt&&!(tt&&zt>yt))return!1;var an=Ne.get(B),sn=Ne.get(ee);if(an&&sn)return an==ee&&sn==B;var dn=-1,Tn=!0,Dn=se&q?new Ls:c;for(Ne.set(B,ee),Ne.set(ee,B);++dn<yt;){var Wn=B[dn],rr=ee[dn];if(fe)var Un=tt?fe(rr,Wn,dn,ee,B,Ne):fe(Wn,rr,dn,B,ee,Ne);if(Un!==c){if(Un)continue;Tn=!1;break}if(Dn){if(!ss(ee,function(ur,fr){if(!gr(Dn,fr)&&(Wn===ur||xe(Wn,ur,se,fe,Ne)))return Dn.push(fr)})){Tn=!1;break}}else if(!(Wn===rr||xe(Wn,rr,se,fe,Ne))){Tn=!1;break}}return Ne.delete(B),Ne.delete(ee),Tn}function Hd(B,ee,se,fe,xe,Ne,tt){switch(se){case Mt:if(B.byteLength!=ee.byteLength||B.byteOffset!=ee.byteOffset)return!1;B=B.buffer,ee=ee.buffer;case xt:return!(B.byteLength!=ee.byteLength||!Ne(new eo(B),new eo(ee)));case mt:case ht:case ft:return Hi(+B,+ee);case Ue:return B.name==ee.name&&B.message==ee.message;case Bt:case Tt:return B==ee+"";case At:var yt=Ua;case Vt:var zt=fe&R;if(yt||(yt=fs),B.size!=ee.size&&!zt)return!1;var an=tt.get(B);if(an)return an==ee;fe|=q,tt.set(B,ee);var sn=Ru(yt(B),yt(ee),fe,xe,Ne,tt);return tt.delete(B),sn;case Be:if(Pa)return Pa.call(B)==Pa.call(ee)}return!1}function Wd(B,ee,se,fe,xe,Ne){var tt=se&R,yt=Sl(B),zt=yt.length,an=Sl(ee),sn=an.length;if(zt!=sn&&!tt)return!1;for(var dn=zt;dn--;){var Tn=yt[dn];if(!(tt?Tn in ee:mr.call(ee,Tn)))return!1}var Dn=Ne.get(B),Wn=Ne.get(ee);if(Dn&&Wn)return Dn==ee&&Wn==B;var rr=!0;Ne.set(B,ee),Ne.set(ee,B);for(var Un=tt;++dn<zt;){Tn=yt[dn];var ur=B[Tn],fr=ee[Tn];if(fe)var Ei=tt?fe(fr,ur,Tn,ee,B,Ne):fe(ur,fr,Tn,B,ee,Ne);if(!(Ei===c?ur===fr||xe(ur,fr,se,fe,Ne):Ei)){rr=!1;break}Un||(Un=Tn=="constructor")}if(rr&&!Un){var ci=B.constructor,Ai=ee.constructor;ci!=Ai&&"constructor"in B&&"constructor"in ee&&!(typeof ci=="function"&&ci instanceof ci&&typeof Ai=="function"&&Ai instanceof Ai)&&(rr=!1)}return Ne.delete(B),Ne.delete(ee),rr}function Xa(B){return Dl(Uu(B,c,Qu),B+"")}function Sl(B){return iu(B,Yr,Ml)}function El(B){return iu(B,yi,$u)}var Al=qi?function(B){return qi.get(B)}:Wl;function Go(B){for(var ee=B.name+"",se=gs[ee],fe=mr.call(gs,ee)?se.length:0;fe--;){var xe=se[fe],Ne=xe.func;if(Ne==null||Ne==B)return xe.name}return ee}function ao(B){var ee=mr.call(ze,"placeholder")?ze:B;return ee.placeholder}function Vn(){var B=ze.iteratee||Vl;return B=B===Vl?ou:B,arguments.length?B(arguments[0],arguments[1]):B}function qo(B,ee){var se=B.__data__;return tf(ee)?se[typeof ee=="string"?"string":"hash"]:se.map}function Pl(B){for(var ee=Yr(B),se=ee.length;se--;){var fe=ee[se],xe=B[fe];ee[se]=[fe,xe,Gu(xe)]}return ee}function Ns(B,ee){var se=lo(B,ee);return su(se)?se:c}function Zd(B){var ee=mr.call(B,Sa),se=B[Sa];try{B[Sa]=c;var fe=!0}catch{}var xe=Ps.call(B);return fe&&(ee?B[Sa]=se:delete B[Sa]),xe}var Ml=b?function(B){return B==null?[]:(B=yr(B),hi(b(B),function(ee){return po.call(B,ee)}))}:Zl,$u=b?function(B){for(var ee=[];B;)Ti(ee,Ml(B)),B=Ta(B);return ee}:Zl,ri=li;(jn&&ri(new jn(new ArrayBuffer(1)))!=Mt||Qn&&ri(new Qn)!=At||Ur&&ri(Ur.resolve())!=St||Sr&&ri(new Sr)!=Vt||Zr&&ri(new Zr)!=Ke)&&(ri=function(B){var ee=li(B),se=ee==Et?B.constructor:c,fe=se?Rs(se):"";if(fe)switch(fe){case nl:return Mt;case rl:return At;case Po:return St;case il:return Vt;case Mo:return Ke}return ee});function Yd(B,ee,se){for(var fe=-1,xe=se.length;++fe<xe;){var Ne=se[fe],tt=Ne.size;switch(Ne.type){case"drop":B+=tt;break;case"dropRight":ee-=tt;break;case"take":ee=Qe(ee,B+tt);break;case"takeRight":B=Ee(B,ee-tt);break}}return{start:B,end:ee}}function Kd(B){var ee=B.match(Ln);return ee?ee[1].split(Xn):[]}function Bu(B,ee,se){ee=xs(ee,B);for(var fe=-1,xe=ee.length,Ne=!1;++fe<xe;){var tt=Vi(ee[fe]);if(!(Ne=B!=null&&se(B,tt)))break;B=B[tt]}return Ne||++fe!=xe?Ne:(xe=B==null?0:B.length,!!xe&&Ko(xe)&&Qa(tt,xe)&&(er(B)||$s(B)))}function Xd(B){var ee=B.length,se=new B.constructor(ee);return ee&&typeof B[0]=="string"&&mr.call(B,"index")&&(se.index=B.index,se.input=B.input),se}function ju(B){return typeof B.constructor=="function"&&!wo(B)?ms(Ta(B)):{}}function Jd(B,ee,se){var fe=B.constructor;switch(ee){case xt:return wl(B);case mt:case ht:return new fe(+B);case Mt:return Fd(B,se);case Ye:case at:case st:case vt:case gt:case Ot:case Dt:case Gt:case Ft:return Tu(B,se);case At:return new fe;case ft:case Tt:return new fe(B);case Bt:return zd(B);case Vt:return new fe;case Be:return Nd(B)}}function Qd(B,ee){var se=ee.length;if(!se)return B;var fe=se-1;return ee[fe]=(se>1?"& ":"")+ee[fe],ee=ee.join(se>2?", ":" "),B.replace(pr,`{
4/* [wrapped with `+ee+`] */
5`)}function ef(B){return er(B)||$s(B)||!!(_o&&B&&B[_o])}function Qa(B,ee){var se=typeof B;return ee=ee??ye,!!ee&&(se=="number"||se!="symbol"&&fn.test(B))&&B>-1&&B%1==0&&B<ee}function ui(B,ee,se){if(!Cr(se))return!1;var fe=typeof ee;return(fe=="number"?bi(se)&&Qa(ee,se.length):fe=="string"&&ee in se)?Hi(se[ee],B):!1}function Ol(B,ee){if(er(B))return!1;var se=typeof B;return se=="number"||se=="symbol"||se=="boolean"||B==null||Si(B)?!0:xn.test(B)||!_n.test(B)||ee!=null&&B in yr(ee)}function tf(B){var ee=typeof B;return ee=="string"||ee=="number"||ee=="symbol"||ee=="boolean"?B!=="__proto__":B===null}function Cl(B){var ee=Go(B),se=ze[ee];if(typeof se!="function"||!(ee in or.prototype))return!1;if(B===se)return!0;var fe=Al(se);return!!fe&&B===fe[0]}function nf(B){return!!fo&&fo in B}var rf=Qs?es:Yl;function wo(B){var ee=B&&B.constructor,se=typeof ee=="function"&&ee.prototype||Wa;return B===se}function Gu(B){return B===B&&!Cr(B)}function qu(B,ee){return function(se){return se==null?!1:se[B]===ee&&(ee!==c||B in yr(se))}}function sf(B){var ee=Zo(B,function(fe){return se.size===y&&se.clear(),fe}),se=ee.cache;return ee}function of(B,ee){var se=B[1],fe=ee[1],xe=se|fe,Ne=xe<(H|te|ce),tt=fe==ce&&se==ae||fe==ce&&se==ue&&B[7].length<=ee[8]||fe==(ce|ue)&&ee[7].length<=ee[8]&&se==ae;if(!(Ne||tt))return B;fe&H&&(B[2]=ee[2],xe|=se&H?0:re);var yt=ee[3];if(yt){var zt=B[3];B[3]=zt?Su(zt,yt,ee[4]):yt,B[4]=zt?$r(B[3],s):ee[4]}return yt=ee[5],yt&&(zt=B[5],B[5]=zt?Eu(zt,yt,ee[6]):yt,B[6]=zt?$r(B[5],s):ee[6]),yt=ee[7],yt&&(B[7]=yt),fe&ce&&(B[8]=B[8]==null?ee[8]:Qe(B[8],ee[8])),B[9]==null&&(B[9]=ee[9]),B[0]=ee[0],B[1]=xe,B}function lf(B){var ee=[];if(B!=null)for(var se in yr(B))ee.push(se);return ee}function uf(B){return Ps.call(B)}function Uu(B,ee,se){return ee=Ee(ee===c?B.length-1:ee,0),function(){for(var fe=arguments,xe=-1,Ne=Ee(fe.length-ee,0),tt=Ht(Ne);++xe<Ne;)tt[xe]=fe[ee+xe];xe=-1;for(var yt=Ht(ee+1);++xe<ee;)yt[xe]=fe[xe];return yt[ee]=se(tt),Wr(B,this,yt)}}function Vu(B,ee){return ee.length<2?B:zs(B,Di(ee,0,-1))}function cf(B,ee){for(var se=B.length,fe=Qe(ee.length,se),xe=vi(B);fe--;){var Ne=ee[fe];B[fe]=Qa(Ne,se)?xe[Ne]:c}return B}function Il(B,ee){if(!(ee==="constructor"&&typeof B[ee]=="function")&&ee!="__proto__")return B[ee]}var Hu=Zu(_u),To=Ao||function(B,ee){return An.setTimeout(B,ee)},Dl=Zu(Cd);function Wu(B,ee,se){var fe=ee+"";return Dl(B,Qd(fe,df(Kd(fe),se)))}function Zu(B){var ee=0,se=0;return function(){var fe=jt(),xe=Pe-(fe-se);if(se=fe,xe>0){if(++ee>=$e)return arguments[0]}else ee=0;return B.apply(c,arguments)}}function Uo(B,ee){var se=-1,fe=B.length,xe=fe-1;for(ee=ee===c?fe:ee;++se<ee;){var Ne=_l(se,xe),tt=B[Ne];B[Ne]=B[se],B[se]=tt}return B.length=ee,B}var Yu=sf(function(B){var ee=[];return B.charCodeAt(0)===46&&ee.push(""),B.replace(rn,function(se,fe,xe,Ne){ee.push(xe?Ne.replace(Ze,"$1"):fe||se)}),ee});function Vi(B){if(typeof B=="string"||Si(B))return B;var ee=B+"";return ee=="0"&&1/B==-Se?"-0":ee}function Rs(B){if(B!=null){try{return ma.call(B)}catch{}try{return B+""}catch{}}return""}function df(B,ee){return Ar(Je,function(se){var fe="_."+se[0];ee&se[1]&&!$a(B,fe)&&B.push(fe)}),B.sort()}function Ku(B){if(B instanceof or)return B.clone();var ee=new oi(B.__wrapped__,B.__chain__);return ee.__actions__=vi(B.__actions__),ee.__index__=B.__index__,ee.__values__=B.__values__,ee}function ff(B,ee,se){(se?ui(B,ee,se):ee===c)?ee=1:ee=Ee(tr(ee),0);var fe=B==null?0:B.length;if(!fe||ee<1)return[];for(var xe=0,Ne=0,tt=Ht(Is(fe/ee));xe<fe;)tt[Ne++]=Di(B,xe,xe+=ee);return tt}function hf(B){for(var ee=-1,se=B==null?0:B.length,fe=0,xe=[];++ee<se;){var Ne=B[ee];Ne&&(xe[fe++]=Ne)}return xe}function pf(){var B=arguments.length;if(!B)return[];for(var ee=Ht(B-1),se=arguments[0],fe=B;fe--;)ee[fe-1]=arguments[fe];return Ti(er(se)?vi(se):[se],ti(ee,1))}var _f=ar(function(B,ee){return zr(B)?mo(B,ti(ee,1,zr,!0)):[]}),gf=ar(function(B,ee){var se=Li(ee);return zr(se)&&(se=c),zr(B)?mo(B,ti(ee,1,zr,!0),Vn(se,2)):[]}),mf=ar(function(B,ee){var se=Li(ee);return zr(se)&&(se=c),zr(B)?mo(B,ti(ee,1,zr,!0),c,se):[]});function vf(B,ee,se){var fe=B==null?0:B.length;return fe?(ee=se||ee===c?1:tr(ee),Di(B,ee<0?0:ee,fe)):[]}function bf(B,ee,se){var fe=B==null?0:B.length;return fe?(ee=se||ee===c?1:tr(ee),ee=fe-ee,Di(B,0,ee<0?0:ee)):[]}function yf(B,ee){return B&&B.length?zo(B,Vn(ee,3),!0,!0):[]}function xf(B,ee){return B&&B.length?zo(B,Vn(ee,3),!0):[]}function wf(B,ee,se,fe){var xe=B==null?0:B.length;return xe?(se&&typeof se!="number"&&ui(B,ee,se)&&(se=0,fe=xe),dd(B,ee,se,fe)):[]}function Xu(B,ee,se){var fe=B==null?0:B.length;if(!fe)return-1;var xe=se==null?0:tr(se);return xe<0&&(xe=Ee(fe+xe,0)),Ni(B,Vn(ee,3),xe)}function Ju(B,ee,se){var fe=B==null?0:B.length;if(!fe)return-1;var xe=fe-1;return se!==c&&(xe=tr(se),xe=se<0?Ee(fe+xe,0):Qe(xe,fe-1)),Ni(B,Vn(ee,3),xe,!0)}function Qu(B){var ee=B==null?0:B.length;return ee?ti(B,1):[]}function Tf(B){var ee=B==null?0:B.length;return ee?ti(B,Se):[]}function kf(B,ee){var se=B==null?0:B.length;return se?(ee=ee===c?1:tr(ee),ti(B,ee)):[]}function Sf(B){for(var ee=-1,se=B==null?0:B.length,fe={};++ee<se;){var xe=B[ee];Ma(fe,xe[0],xe[1])}return fe}function ec(B){return B&&B.length?B[0]:c}function Ef(B,ee,se){var fe=B==null?0:B.length;if(!fe)return-1;var xe=se==null?0:tr(se);return xe<0&&(xe=Ee(fe+xe,0)),Xr(B,ee,xe)}function Af(B){var ee=B==null?0:B.length;return ee?Di(B,0,-1):[]}var Pf=ar(function(B){var ee=br(B,yl);return ee.length&&ee[0]===B[0]?cl(ee):[]}),Mf=ar(function(B){var ee=Li(B),se=br(B,yl);return ee===Li(se)?ee=c:se.pop(),se.length&&se[0]===B[0]?cl(se,Vn(ee,2)):[]}),Of=ar(function(B){var ee=Li(B),se=br(B,yl);return ee=typeof ee=="function"?ee:c,ee&&se.pop(),se.length&&se[0]===B[0]?cl(se,c,ee):[]});function Cf(B,ee){return B==null?"":de.call(B,ee)}function Li(B){var ee=B==null?0:B.length;return ee?B[ee-1]:c}function If(B,ee,se){var fe=B==null?0:B.length;if(!fe)return-1;var xe=fe;return se!==c&&(xe=tr(se),xe=xe<0?Ee(fe+xe,0):Qe(xe,fe-1)),ee===ee?Bi(B,ee,xe):Ni(B,Zi,xe,!0)}function Df(B,ee){return B&&B.length?du(B,tr(ee)):c}var Lf=ar(tc);function tc(B,ee){return B&&B.length&&ee&&ee.length?pl(B,ee):B}function Ff(B,ee,se){return B&&B.length&&ee&&ee.length?pl(B,ee,Vn(se,2)):B}function zf(B,ee,se){return B&&B.length&&ee&&ee.length?pl(B,ee,c,se):B}var Nf=Xa(function(B,ee){var se=B==null?0:B.length,fe=sl(B,ee);return pu(B,br(ee,function(xe){return Qa(xe,se)?+xe:xe}).sort(ku)),fe});function Rf(B,ee){var se=[];if(!(B&&B.length))return se;var fe=-1,xe=[],Ne=B.length;for(ee=Vn(ee,3);++fe<Ne;){var tt=B[fe];ee(tt,fe,B)&&(se.push(tt),xe.push(fe))}return pu(B,xe),se}function Ll(B){return B==null?B:kn.call(B)}function $f(B,ee,se){var fe=B==null?0:B.length;return fe?(se&&typeof se!="number"&&ui(B,ee,se)?(ee=0,se=fe):(ee=ee==null?0:tr(ee),se=se===c?fe:tr(se)),Di(B,ee,se)):[]}function Bf(B,ee){return Fo(B,ee)}function jf(B,ee,se){return ml(B,ee,Vn(se,2))}function Gf(B,ee){var se=B==null?0:B.length;if(se){var fe=Fo(B,ee);if(fe<se&&Hi(B[fe],ee))return fe}return-1}function qf(B,ee){return Fo(B,ee,!0)}function Uf(B,ee,se){return ml(B,ee,Vn(se,2),!0)}function Vf(B,ee){var se=B==null?0:B.length;if(se){var fe=Fo(B,ee,!0)-1;if(Hi(B[fe],ee))return fe}return-1}function Hf(B){return B&&B.length?gu(B):[]}function Wf(B,ee){return B&&B.length?gu(B,Vn(ee,2)):[]}function Zf(B){var ee=B==null?0:B.length;return ee?Di(B,1,ee):[]}function Yf(B,ee,se){return B&&B.length?(ee=se||ee===c?1:tr(ee),Di(B,0,ee<0?0:ee)):[]}function Kf(B,ee,se){var fe=B==null?0:B.length;return fe?(ee=se||ee===c?1:tr(ee),ee=fe-ee,Di(B,ee<0?0:ee,fe)):[]}function Xf(B,ee){return B&&B.length?zo(B,Vn(ee,3),!1,!0):[]}function Jf(B,ee){return B&&B.length?zo(B,Vn(ee,3)):[]}var Qf=ar(function(B){return ys(ti(B,1,zr,!0))}),eh=ar(function(B){var ee=Li(B);return zr(ee)&&(ee=c),ys(ti(B,1,zr,!0),Vn(ee,2))}),th=ar(function(B){var ee=Li(B);return ee=typeof ee=="function"?ee:c,ys(ti(B,1,zr,!0),c,ee)});function nh(B){return B&&B.length?ys(B):[]}function rh(B,ee){return B&&B.length?ys(B,Vn(ee,2)):[]}function ih(B,ee){return ee=typeof ee=="function"?ee:c,B&&B.length?ys(B,c,ee):[]}function Fl(B){if(!(B&&B.length))return[];var ee=0;return B=hi(B,function(se){if(zr(se))return ee=Ee(se.length,ee),!0}),$i(ee,function(se){return br(B,Ki(se))})}function nc(B,ee){if(!(B&&B.length))return[];var se=Fl(B);return ee==null?se:br(se,function(fe){return Wr(ee,c,fe)})}var ah=ar(function(B,ee){return zr(B)?mo(B,ee):[]}),sh=ar(function(B){return bl(hi(B,zr))}),oh=ar(function(B){var ee=Li(B);return zr(ee)&&(ee=c),bl(hi(B,zr),Vn(ee,2))}),lh=ar(function(B){var ee=Li(B);return ee=typeof ee=="function"?ee:c,bl(hi(B,zr),c,ee)}),uh=ar(Fl);function ch(B,ee){return yu(B||[],ee||[],go)}function dh(B,ee){return yu(B||[],ee||[],yo)}var fh=ar(function(B){var ee=B.length,se=ee>1?B[ee-1]:c;return se=typeof se=="function"?(B.pop(),se):c,nc(B,se)});function rc(B){var ee=ze(B);return ee.__chain__=!0,ee}function hh(B,ee){return ee(B),B}function Vo(B,ee){return ee(B)}var ph=Xa(function(B){var ee=B.length,se=ee?B[0]:0,fe=this.__wrapped__,xe=function(Ne){return sl(Ne,B)};return ee>1||this.__actions__.length||!(fe instanceof or)||!Qa(se)?this.thru(xe):(fe=fe.slice(se,+se+(ee?1:0)),fe.__actions__.push({func:Vo,args:[xe],thisArg:c}),new oi(fe,this.__chain__).thru(function(Ne){return ee&&!Ne.length&&Ne.push(c),Ne}))});function _h(){return rc(this)}function gh(){return new oi(this.value(),this.__chain__)}function mh(){this.__values__===c&&(this.__values__=mc(this.value()));var B=this.__index__>=this.__values__.length,ee=B?c:this.__values__[this.__index__++];return{done:B,value:ee}}function vh(){return this}function bh(B){for(var ee,se=this;se instanceof vs;){var fe=Ku(se);fe.__index__=0,fe.__values__=c,ee?xe.__wrapped__=fe:ee=fe;var xe=fe;se=se.__wrapped__}return xe.__wrapped__=B,ee}function yh(){var B=this.__wrapped__;if(B instanceof or){var ee=B;return this.__actions__.length&&(ee=new or(this)),ee=ee.reverse(),ee.__actions__.push({func:Vo,args:[Ll],thisArg:c}),new oi(ee,this.__chain__)}return this.thru(Ll)}function xh(){return bu(this.__wrapped__,this.__actions__)}var wh=No(function(B,ee,se){mr.call(B,se)?++B[se]:Ma(B,se,1)});function Th(B,ee,se){var fe=er(B)?Ss:cd;return se&&ui(B,ee,se)&&(ee=c),fe(B,Vn(ee,3))}function kh(B,ee){var se=er(B)?hi:nu;return se(B,Vn(ee,3))}var Sh=Ou(Xu),Eh=Ou(Ju);function Ah(B,ee){return ti(Ho(B,ee),1)}function Ph(B,ee){return ti(Ho(B,ee),Se)}function Mh(B,ee,se){return se=se===c?1:tr(se),ti(Ho(B,ee),se)}function ic(B,ee){var se=er(B)?Ar:bs;return se(B,Vn(ee,3))}function ac(B,ee){var se=er(B)?ks:tu;return se(B,Vn(ee,3))}var Oh=No(function(B,ee,se){mr.call(B,se)?B[se].push(ee):Ma(B,se,[ee])});function Ch(B,ee,se,fe){B=bi(B)?B:oo(B),se=se&&!fe?tr(se):0;var xe=B.length;return se<0&&(se=Ee(xe+se,0)),Xo(B)?se<=xe&&B.indexOf(ee,se)>-1:!!xe&&Xr(B,ee,se)>-1}var Ih=ar(function(B,ee,se){var fe=-1,xe=typeof ee=="function",Ne=bi(B)?Ht(B.length):[];return bs(B,function(tt){Ne[++fe]=xe?Wr(ee,tt,se):vo(tt,ee,se)}),Ne}),Dh=No(function(B,ee,se){Ma(B,se,ee)});function Ho(B,ee){var se=er(B)?br:lu;return se(B,Vn(ee,3))}function Lh(B,ee,se,fe){return B==null?[]:(er(ee)||(ee=ee==null?[]:[ee]),se=fe?c:se,er(se)||(se=se==null?[]:[se]),fu(B,ee,se))}var Fh=No(function(B,ee,se){B[se?0:1].push(ee)},function(){return[[],[]]});function zh(B,ee,se){var fe=er(B)?Es:Ri,xe=arguments.length<3;return fe(B,Vn(ee,4),se,xe,bs)}function Nh(B,ee,se){var fe=er(B)?As:Ri,xe=arguments.length<3;return fe(B,Vn(ee,4),se,xe,tu)}function Rh(B,ee){var se=er(B)?hi:nu;return se(B,Yo(Vn(ee,3)))}function $h(B){var ee=er(B)?Xl:Md;return ee(B)}function Bh(B,ee,se){(se?ui(B,ee,se):ee===c)?ee=1:ee=tr(ee);var fe=er(B)?ad:Od;return fe(B,ee)}function jh(B){var ee=er(B)?sd:Id;return ee(B)}function Gh(B){if(B==null)return 0;if(bi(B))return Xo(B)?ji(B):B.length;var ee=ri(B);return ee==At||ee==Vt?B.size:fl(B).length}function qh(B,ee,se){var fe=er(B)?ss:Dd;return se&&ui(B,ee,se)&&(ee=c),fe(B,Vn(ee,3))}var Uh=ar(function(B,ee){if(B==null)return[];var se=ee.length;return se>1&&ui(B,ee[0],ee[1])?ee=[]:se>2&&ui(ee[0],ee[1],ee[2])&&(ee=[ee[0]]),fu(B,ti(ee,1),[])}),Wo=tl||function(){return An.Date.now()};function Vh(B,ee){if(typeof ee!="function")throw new gi(p);return B=tr(B),function(){if(--B<1)return ee.apply(this,arguments)}}function sc(B,ee,se){return ee=se?c:ee,ee=B&&ee==null?B.length:ee,Ka(B,ce,c,c,c,c,ee)}function oc(B,ee){var se;if(typeof ee!="function")throw new gi(p);return B=tr(B),function(){return--B>0&&(se=ee.apply(this,arguments)),B<=1&&(ee=c),se}}var zl=ar(function(B,ee,se){var fe=H;if(se.length){var xe=$r(se,ao(zl));fe|=oe}return Ka(B,fe,ee,se,xe)}),lc=ar(function(B,ee,se){var fe=H|te;if(se.length){var xe=$r(se,ao(lc));fe|=oe}return Ka(ee,fe,B,se,xe)});function uc(B,ee,se){ee=se?c:ee;var fe=Ka(B,ae,c,c,c,c,c,ee);return fe.placeholder=uc.placeholder,fe}function cc(B,ee,se){ee=se?c:ee;var fe=Ka(B,ne,c,c,c,c,c,ee);return fe.placeholder=cc.placeholder,fe}function dc(B,ee,se){var fe,xe,Ne,tt,yt,zt,an=0,sn=!1,dn=!1,Tn=!0;if(typeof B!="function")throw new gi(p);ee=Fi(ee)||0,Cr(se)&&(sn=!!se.leading,dn="maxWait"in se,Ne=dn?Ee(Fi(se.maxWait)||0,ee):Ne,Tn="trailing"in se?!!se.trailing:Tn);function Dn(Nr){var Wi=fe,ns=xe;return fe=xe=c,an=Nr,tt=B.apply(ns,Wi),tt}function Wn(Nr){return an=Nr,yt=To(ur,ee),sn?Dn(Nr):tt}function rr(Nr){var Wi=Nr-zt,ns=Nr-an,Ic=ee-Wi;return dn?Qe(Ic,Ne-ns):Ic}function Un(Nr){var Wi=Nr-zt,ns=Nr-an;return zt===c||Wi>=ee||Wi<0||dn&&ns>=Ne}function ur(){var Nr=Wo();if(Un(Nr))return fr(Nr);yt=To(ur,rr(Nr))}function fr(Nr){return yt=c,Tn&&fe?Dn(Nr):(fe=xe=c,tt)}function Ei(){yt!==c&&xu(yt),an=0,fe=zt=xe=yt=c}function ci(){return yt===c?tt:fr(Wo())}function Ai(){var Nr=Wo(),Wi=Un(Nr);if(fe=arguments,xe=this,zt=Nr,Wi){if(yt===c)return Wn(zt);if(dn)return xu(yt),yt=To(ur,ee),Dn(zt)}return yt===c&&(yt=To(ur,ee)),tt}return Ai.cancel=Ei,Ai.flush=ci,Ai}var Hh=ar(function(B,ee){return eu(B,1,ee)}),Wh=ar(function(B,ee,se){return eu(B,Fi(ee)||0,se)});function Zh(B){return Ka(B,he)}function Zo(B,ee){if(typeof B!="function"||ee!=null&&typeof ee!="function")throw new gi(p);var se=function(){var fe=arguments,xe=ee?ee.apply(this,fe):fe[0],Ne=se.cache;if(Ne.has(xe))return Ne.get(xe);var tt=B.apply(this,fe);return se.cache=Ne.set(xe,tt)||Ne,tt};return se.cache=new(Zo.Cache||Ya),se}Zo.Cache=Ya;function Yo(B){if(typeof B!="function")throw new gi(p);return function(){var ee=arguments;switch(ee.length){case 0:return!B.call(this);case 1:return!B.call(this,ee[0]);case 2:return!B.call(this,ee[0],ee[1]);case 3:return!B.call(this,ee[0],ee[1],ee[2])}return!B.apply(this,ee)}}function Yh(B){return oc(2,B)}var Kh=Ld(function(B,ee){ee=ee.length==1&&er(ee[0])?br(ee[0],Pr(Vn())):br(ti(ee,1),Pr(Vn()));var se=ee.length;return ar(function(fe){for(var xe=-1,Ne=Qe(fe.length,se);++xe<Ne;)fe[xe]=ee[xe].call(this,fe[xe]);return Wr(B,this,fe)})}),Nl=ar(function(B,ee){var se=$r(ee,ao(Nl));return Ka(B,oe,c,ee,se)}),fc=ar(function(B,ee){var se=$r(ee,ao(fc));return Ka(B,le,c,ee,se)}),Xh=Xa(function(B,ee){return Ka(B,ue,c,c,c,ee)});function Jh(B,ee){if(typeof B!="function")throw new gi(p);return ee=ee===c?ee:tr(ee),ar(B,ee)}function Qh(B,ee){if(typeof B!="function")throw new gi(p);return ee=ee==null?0:Ee(tr(ee),0),ar(function(se){var fe=se[ee],xe=ws(se,0,ee);return fe&&Ti(xe,fe),Wr(B,this,xe)})}function ep(B,ee,se){var fe=!0,xe=!0;if(typeof B!="function")throw new gi(p);return Cr(se)&&(fe="leading"in se?!!se.leading:fe,xe="trailing"in se?!!se.trailing:xe),dc(B,ee,{leading:fe,maxWait:ee,trailing:xe})}function tp(B){return sc(B,1)}function np(B,ee){return Nl(xl(ee),B)}function rp(){if(!arguments.length)return[];var B=arguments[0];return er(B)?B:[B]}function ip(B){return Ii(B,g)}function ap(B,ee){return ee=typeof ee=="function"?ee:c,Ii(B,g,ee)}function sp(B){return Ii(B,e|g)}function op(B,ee){return ee=typeof ee=="function"?ee:c,Ii(B,e|g,ee)}function lp(B,ee){return ee==null||Ql(B,ee,Yr(ee))}function Hi(B,ee){return B===ee||B!==B&&ee!==ee}var up=jo(ul),cp=jo(function(B,ee){return B>=ee}),$s=au((function(){return arguments})())?au:function(B){return Lr(B)&&mr.call(B,"callee")&&!po.call(B,"callee")},er=Ht.isArray,dp=rs?Pr(rs):gd;function bi(B){return B!=null&&Ko(B.length)&&!es(B)}function zr(B){return Lr(B)&&bi(B)}function fp(B){return B===!0||B===!1||Lr(B)&&li(B)==mt}var Ts=W||Yl,hp=js?Pr(js):vd;function pp(B){return Lr(B)&&B.nodeType===1&&!ko(B)}function _p(B){if(B==null)return!0;if(bi(B)&&(er(B)||typeof B=="string"||typeof B.splice=="function"||Ts(B)||so(B)||$s(B)))return!B.length;var ee=ri(B);if(ee==At||ee==Vt)return!B.size;if(wo(B))return!fl(B).length;for(var se in B)if(mr.call(B,se))return!1;return!0}function gp(B,ee){return bo(B,ee)}function mp(B,ee,se){se=typeof se=="function"?se:c;var fe=se?se(B,ee):c;return fe===c?bo(B,ee,c,se):!!fe}function Rl(B){if(!Lr(B))return!1;var ee=li(B);return ee==Ue||ee==ct||typeof B.message=="string"&&typeof B.name=="string"&&!ko(B)}function vp(B){return typeof B=="number"&&ie(B)}function es(B){if(!Cr(B))return!1;var ee=li(B);return ee==ot||ee==bt||ee==et||ee==Jt}function hc(B){return typeof B=="number"&&B==tr(B)}function Ko(B){return typeof B=="number"&&B>-1&&B%1==0&&B<=ye}function Cr(B){var ee=typeof B;return B!=null&&(ee=="object"||ee=="function")}function Lr(B){return B!=null&&typeof B=="object"}var pc=Gs?Pr(Gs):yd;function bp(B,ee){return B===ee||dl(B,ee,Pl(ee))}function yp(B,ee,se){return se=typeof se=="function"?se:c,dl(B,ee,Pl(ee),se)}function xp(B){return _c(B)&&B!=+B}function wp(B){if(rf(B))throw new Zn(m);return su(B)}function Tp(B){return B===null}function kp(B){return B==null}function _c(B){return typeof B=="number"||Lr(B)&&li(B)==ft}function ko(B){if(!Lr(B)||li(B)!=Et)return!1;var ee=Ta(B);if(ee===null)return!0;var se=mr.call(ee,"constructor")&&ee.constructor;return typeof se=="function"&&se instanceof se&&ma.call(se)==el}var $l=Ra?Pr(Ra):xd;function Sp(B){return hc(B)&&B>=-ye&&B<=ye}var gc=qs?Pr(qs):wd;function Xo(B){return typeof B=="string"||!er(B)&&Lr(B)&&li(B)==Tt}function Si(B){return typeof B=="symbol"||Lr(B)&&li(B)==Be}var so=ai?Pr(ai):Td;function Ep(B){return B===c}function Ap(B){return Lr(B)&&ri(B)==Ke}function Pp(B){return Lr(B)&&li(B)==nt}var Mp=jo(hl),Op=jo(function(B,ee){return B<=ee});function mc(B){if(!B)return[];if(bi(B))return Xo(B)?pi(B):vi(B);if(_s&&B[_s])return uo(B[_s]());var ee=ri(B),se=ee==At?Ua:ee==Vt?fs:oo;return se(B)}function ts(B){if(!B)return B===0?B:0;if(B=Fi(B),B===Se||B===-Se){var ee=B<0?-1:1;return ee*ke}return B===B?B:0}function tr(B){var ee=ts(B),se=ee%1;return ee===ee?se?ee-se:ee:0}function vc(B){return B?Fs(tr(B),0,Ie):0}function Fi(B){if(typeof B=="number")return B;if(Si(B))return Ae;if(Cr(B)){var ee=typeof B.valueOf=="function"?B.valueOf():B;B=Cr(ee)?ee+"":ee}if(typeof B!="string")return B===0?B:+B;B=qr(B);var se=Ct.test(B);return se||mn.test(B)?Hr(B.slice(2),se?2:8):lt.test(B)?Ae:+B}function bc(B){return La(B,yi(B))}function Cp(B){return B?Fs(tr(B),-ye,ye):B===0?B:0}function vr(B){return B==null?"":ki(B)}var Ip=ro(function(B,ee){if(wo(ee)||bi(ee)){La(ee,Yr(ee),B);return}for(var se in ee)mr.call(ee,se)&&go(B,se,ee[se])}),yc=ro(function(B,ee){La(ee,yi(ee),B)}),xc=ro(function(B,ee,se,fe){La(ee,yi(ee),B,fe)}),Bl=ro(function(B,ee,se,fe){La(ee,Yr(ee),B,fe)}),Dp=Xa(sl);function Lp(B,ee){var se=ms(B);return ee==null?se:Jl(se,ee)}var Fp=ar(function(B,ee){B=yr(B);var se=-1,fe=ee.length,xe=fe>2?ee[2]:c;for(xe&&ui(ee[0],ee[1],xe)&&(fe=1);++se<fe;)for(var Ne=ee[se],tt=yi(Ne),yt=-1,zt=tt.length;++yt<zt;){var an=tt[yt],sn=B[an];(sn===c||Hi(sn,Wa[an])&&!mr.call(B,an))&&(B[an]=Ne[an])}return B}),zp=ar(function(B){return B.push(c,Nu),Wr(wc,c,B)});function Np(B,ee){return Mi(B,Vn(ee,3),Oa)}function Rp(B,ee){return Mi(B,Vn(ee,3),ll)}function $p(B,ee){return B==null?B:ol(B,Vn(ee,3),yi)}function Bp(B,ee){return B==null?B:ru(B,Vn(ee,3),yi)}function jp(B,ee){return B&&Oa(B,Vn(ee,3))}function Gp(B,ee){return B&&ll(B,Vn(ee,3))}function qp(B){return B==null?[]:Do(B,Yr(B))}function Up(B){return B==null?[]:Do(B,yi(B))}function jl(B,ee,se){var fe=B==null?c:zs(B,ee);return fe===c?se:fe}function Vp(B,ee){return B!=null&&Bu(B,ee,fd)}function Gl(B,ee){return B!=null&&Bu(B,ee,hd)}var Hp=Iu(function(B,ee,se){ee!=null&&typeof ee.toString!="function"&&(ee=Ps.call(ee)),B[ee]=se},Ul(xi)),Wp=Iu(function(B,ee,se){ee!=null&&typeof ee.toString!="function"&&(ee=Ps.call(ee)),mr.call(B,ee)?B[ee].push(se):B[ee]=[se]},Vn),Zp=ar(vo);function Yr(B){return bi(B)?Kl(B):fl(B)}function yi(B){return bi(B)?Kl(B,!0):kd(B)}function Yp(B,ee){var se={};return ee=Vn(ee,3),Oa(B,function(fe,xe,Ne){Ma(se,ee(fe,xe,Ne),fe)}),se}function Kp(B,ee){var se={};return ee=Vn(ee,3),Oa(B,function(fe,xe,Ne){Ma(se,xe,ee(fe,xe,Ne))}),se}var Xp=ro(function(B,ee,se){Lo(B,ee,se)}),wc=ro(function(B,ee,se,fe){Lo(B,ee,se,fe)}),Jp=Xa(function(B,ee){var se={};if(B==null)return se;var fe=!1;ee=br(ee,function(Ne){return Ne=xs(Ne,B),fe||(fe=Ne.length>1),Ne}),La(B,El(B),se),fe&&(se=Ii(se,e|f|g,Vd));for(var xe=ee.length;xe--;)vl(se,ee[xe]);return se});function Qp(B,ee){return Tc(B,Yo(Vn(ee)))}var e_=Xa(function(B,ee){return B==null?{}:Ed(B,ee)});function Tc(B,ee){if(B==null)return{};var se=br(El(B),function(fe){return[fe]});return ee=Vn(ee),hu(B,se,function(fe,xe){return ee(fe,xe[0])})}function t_(B,ee,se){ee=xs(ee,B);var fe=-1,xe=ee.length;for(xe||(xe=1,B=c);++fe<xe;){var Ne=B==null?c:B[Vi(ee[fe])];Ne===c&&(fe=xe,Ne=se),B=es(Ne)?Ne.call(B):Ne}return B}function n_(B,ee,se){return B==null?B:yo(B,ee,se)}function r_(B,ee,se,fe){return fe=typeof fe=="function"?fe:c,B==null?B:yo(B,ee,se,fe)}var kc=Fu(Yr),Sc=Fu(yi);function i_(B,ee,se){var fe=er(B),xe=fe||Ts(B)||so(B);if(ee=Vn(ee,4),se==null){var Ne=B&&B.constructor;xe?se=fe?new Ne:[]:Cr(B)?se=es(Ne)?ms(Ta(B)):{}:se={}}return(xe?Ar:Oa)(B,function(tt,yt,zt){return ee(se,tt,yt,zt)}),se}function a_(B,ee){return B==null?!0:vl(B,ee)}function s_(B,ee,se){return B==null?B:vu(B,ee,xl(se))}function o_(B,ee,se,fe){return fe=typeof fe=="function"?fe:c,B==null?B:vu(B,ee,xl(se),fe)}function oo(B){return B==null?[]:Kt(B,Yr(B))}function l_(B){return B==null?[]:Kt(B,yi(B))}function u_(B,ee,se){return se===c&&(se=ee,ee=c),se!==c&&(se=Fi(se),se=se===se?se:0),ee!==c&&(ee=Fi(ee),ee=ee===ee?ee:0),Fs(Fi(B),ee,se)}function c_(B,ee,se){return ee=ts(ee),se===c?(se=ee,ee=0):se=ts(se),B=Fi(B),pd(B,ee,se)}function d_(B,ee,se){if(se&&typeof se!="boolean"&&ui(B,ee,se)&&(ee=se=c),se===c&&(typeof ee=="boolean"?(se=ee,ee=c):typeof B=="boolean"&&(se=B,B=c)),B===c&&ee===c?(B=0,ee=1):(B=ts(B),ee===c?(ee=B,B=0):ee=ts(ee)),B>ee){var fe=B;B=ee,ee=fe}if(se||B%1||ee%1){var xe=un();return Qe(B+xe*(ee-B+wr("1e-"+((xe+"").length-1))),ee)}return _l(B,ee)}var f_=io(function(B,ee,se){return ee=ee.toLowerCase(),B+(se?Ec(ee):ee)});function Ec(B){return ql(vr(B).toLowerCase())}function Ac(B){return B=vr(B),B&&B.replace(In,si).replace(Or,"")}function h_(B,ee,se){B=vr(B),ee=ki(ee);var fe=B.length;se=se===c?fe:Fs(tr(se),0,fe);var xe=se;return se-=ee.length,se>=0&&B.slice(se,xe)==ee}function p_(B){return B=vr(B),B&&wt.test(B)?B.replace(Ve,Ji):B}function __(B){return B=vr(B),B&&Yn.test(B)?B.replace(vn,"\\$&"):B}var g_=io(function(B,ee,se){return B+(se?"-":"")+ee.toLowerCase()}),m_=io(function(B,ee,se){return B+(se?" ":"")+ee.toLowerCase()}),v_=Mu("toLowerCase");function b_(B,ee,se){B=vr(B),ee=tr(ee);var fe=ee?ji(B):0;if(!ee||fe>=ee)return B;var xe=(ee-fe)/2;return Bo(no(xe),se)+B+Bo(Is(xe),se)}function y_(B,ee,se){B=vr(B),ee=tr(ee);var fe=ee?ji(B):0;return ee&&fe<ee?B+Bo(ee-fe,se):B}function x_(B,ee,se){B=vr(B),ee=tr(ee);var fe=ee?ji(B):0;return ee&&fe<ee?Bo(ee-fe,se)+B:B}function w_(B,ee,se){return se||ee==null?ee=0:ee&&(ee=+ee),Zt(vr(B).replace(Nn,""),ee||0)}function T_(B,ee,se){return(se?ui(B,ee,se):ee===c)?ee=1:ee=tr(ee),gl(vr(B),ee)}function k_(){var B=arguments,ee=vr(B[0]);return B.length<3?ee:ee.replace(B[1],B[2])}var S_=io(function(B,ee,se){return B+(se?"_":"")+ee.toLowerCase()});function E_(B,ee,se){return se&&typeof se!="number"&&ui(B,ee,se)&&(ee=se=c),se=se===c?Ie:se>>>0,se?(B=vr(B),B&&(typeof ee=="string"||ee!=null&&!$l(ee))&&(ee=ki(ee),!ee&&ei(B))?ws(pi(B),0,se):B.split(ee,se)):[]}var A_=io(function(B,ee,se){return B+(se?" ":"")+ql(ee)});function P_(B,ee,se){return B=vr(B),se=se==null?0:Fs(tr(se),0,B.length),ee=ki(ee),B.slice(se,se+ee.length)==ee}function M_(B,ee,se){var fe=ze.templateSettings;se&&ui(B,ee,se)&&(ee=c),B=vr(B),ee=Bl({},ee,fe,zu);var xe=Bl({},ee.imports,fe.imports,zu),Ne=Yr(xe),tt=Kt(xe,Ne);Ar(Ne,function(Un){if(De.test(Un))throw new Zn(z)});var yt,zt,an=0,sn=ee.interpolate||Mn,dn="__p += '",Tn=_i((ee.escape||Mn).source+"|"+sn.source+"|"+(sn===ln?_t:Mn).source+"|"+(ee.evaluate||Mn).source+"|$","g"),Dn="//# sourceURL="+(mr.call(ee,"sourceURL")?(ee.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++it+"]")+`
6`;B.replace(Tn,function(Un,ur,fr,Ei,ci,Ai){return fr||(fr=Ei),dn+=B.slice(an,Ai).replace(nr,cs),ur&&(yt=!0,dn+=`' +
7__e(`+ur+`) +
8'`),ci&&(zt=!0,dn+=`';
9`+ci+`;
10__p += '`),fr&&(dn+=`' +
11((__t = (`+fr+`)) == null ? '' : __t) +
12'`),an=Ai+Un.length,Un}),dn+=`';
13`;var Wn=mr.call(ee,"variable")&&ee.variable;if(!Wn)dn=`with (obj) {
14`+dn+`
15}
16`;else if(De.test(Wn))throw new Zn(w);dn=(zt?dn.replace(Pt,""):dn).replace(qt,"$1").replace(on,"$1;"),dn="function("+(Wn||"obj")+`) {
17`+(Wn?"":`obj || (obj = {});
18`)+"var __t, __p = ''"+(yt?", __e = _.escape":"")+(zt?`, __j = Array.prototype.join;
19function print() { __p += __j.call(arguments, '') }
20`:`;
21`)+dn+`return __p
22}`;var rr=Mc(function(){return _r(Ne,Dn+"return "+dn).apply(c,tt)});if(rr.source=dn,Rl(rr))throw rr;return rr}function O_(B){return vr(B).toLowerCase()}function C_(B){return vr(B).toUpperCase()}function I_(B,ee,se){if(B=vr(B),B&&(se||ee===c))return qr(B);if(!B||!(ee=ki(ee)))return B;var fe=pi(B),xe=pi(ee),Ne=Jr(fe,xe),tt=Qr(fe,xe)+1;return ws(fe,Ne,tt).join("")}function D_(B,ee,se){if(B=vr(B),B&&(se||ee===c))return B.slice(0,Zs(B)+1);if(!B||!(ee=ki(ee)))return B;var fe=pi(B),xe=Qr(fe,pi(ee))+1;return ws(fe,0,xe).join("")}function L_(B,ee,se){if(B=vr(B),B&&(se||ee===c))return B.replace(Nn,"");if(!B||!(ee=ki(ee)))return B;var fe=pi(B),xe=Jr(fe,pi(ee));return ws(fe,xe).join("")}function F_(B,ee){var se=ge,fe=Oe;if(Cr(ee)){var xe="separator"in ee?ee.separator:xe;se="length"in ee?tr(ee.length):se,fe="omission"in ee?ki(ee.omission):fe}B=vr(B);var Ne=B.length;if(ei(B)){var tt=pi(B);Ne=tt.length}if(se>=Ne)return B;var yt=se-ji(fe);if(yt<1)return fe;var zt=tt?ws(tt,0,yt).join(""):B.slice(0,yt);if(xe===c)return zt+fe;if(tt&&(yt+=zt.length-yt),$l(xe)){if(B.slice(yt).search(xe)){var an,sn=zt;for(xe.global||(xe=_i(xe.source,vr(dt.exec(xe))+"g")),xe.lastIndex=0;an=xe.exec(sn);)var dn=an.index;zt=zt.slice(0,dn===c?yt:dn)}}else if(B.indexOf(ki(xe),yt)!=yt){var Tn=zt.lastIndexOf(xe);Tn>-1&&(zt=zt.slice(0,Tn))}return zt+fe}function z_(B){return B=vr(B),B&&pt.test(B)?B.replace(He,Ys):B}var N_=io(function(B,ee,se){return B+(se?" ":"")+ee.toUpperCase()}),ql=Mu("toUpperCase");function Pc(B,ee,se){return B=vr(B),ee=se?c:ee,ee===c?ds(B)?hs(B):os(B):B.match(ee)||[]}var Mc=ar(function(B,ee){try{return Wr(B,c,ee)}catch(se){return Rl(se)?se:new Zn(se)}}),R_=Xa(function(B,ee){return Ar(ee,function(se){se=Vi(se),Ma(B,se,zl(B[se],B))}),B});function $_(B){var ee=B==null?0:B.length,se=Vn();return B=ee?br(B,function(fe){if(typeof fe[1]!="function")throw new gi(p);return[se(fe[0]),fe[1]]}):[],ar(function(fe){for(var xe=-1;++xe<ee;){var Ne=B[xe];if(Wr(Ne[0],this,fe))return Wr(Ne[1],this,fe)}})}function B_(B){return ud(Ii(B,e))}function Ul(B){return function(){return B}}function j_(B,ee){return B==null||B!==B?ee:B}var G_=Cu(),q_=Cu(!0);function xi(B){return B}function Vl(B){return ou(typeof B=="function"?B:Ii(B,e))}function U_(B){return uu(Ii(B,e))}function V_(B,ee){return cu(B,Ii(ee,e))}var H_=ar(function(B,ee){return function(se){return vo(se,B,ee)}}),W_=ar(function(B,ee){return function(se){return vo(B,se,ee)}});function Hl(B,ee,se){var fe=Yr(ee),xe=Do(ee,fe);se==null&&!(Cr(ee)&&(xe.length||!fe.length))&&(se=ee,ee=B,B=this,xe=Do(ee,Yr(ee)));var Ne=!(Cr(se)&&"chain"in se)||!!se.chain,tt=es(B);return Ar(xe,function(yt){var zt=ee[yt];B[yt]=zt,tt&&(B.prototype[yt]=function(){var an=this.__chain__;if(Ne||an){var sn=B(this.__wrapped__),dn=sn.__actions__=vi(this.__actions__);return dn.push({func:zt,args:arguments,thisArg:B}),sn.__chain__=an,sn}return zt.apply(B,Ti([this.value()],arguments))})}),B}function Z_(){return An._===this&&(An._=Gi),this}function Wl(){}function Y_(B){return B=tr(B),ar(function(ee){return du(ee,B)})}var K_=Tl(br),X_=Tl(Ss),J_=Tl(ss);function Oc(B){return Ol(B)?Ki(Vi(B)):Ad(B)}function Q_(B){return function(ee){return B==null?c:zs(B,ee)}}var eg=Du(),tg=Du(!0);function Zl(){return[]}function Yl(){return!1}function ng(){return{}}function rg(){return""}function ig(){return!0}function ag(B,ee){if(B=tr(B),B<1||B>ye)return[];var se=Ie,fe=Qe(B,Ie);ee=Vn(ee),B-=Ie;for(var xe=$i(fe,ee);++se<B;)ee(se);return xe}function sg(B){return er(B)?br(B,Vi):Si(B)?[B]:vi(Yu(vr(B)))}function og(B){var ee=++ps;return vr(B)+ee}var lg=$o(function(B,ee){return B+ee},0),ug=kl("ceil"),cg=$o(function(B,ee){return B/ee},1),dg=kl("floor");function fg(B){return B&&B.length?Io(B,xi,ul):c}function hg(B,ee){return B&&B.length?Io(B,Vn(ee,2),ul):c}function pg(B){return Yi(B,xi)}function _g(B,ee){return Yi(B,Vn(ee,2))}function gg(B){return B&&B.length?Io(B,xi,hl):c}function mg(B,ee){return B&&B.length?Io(B,Vn(ee,2),hl):c}var vg=$o(function(B,ee){return B*ee},1),bg=kl("round"),yg=$o(function(B,ee){return B-ee},0);function xg(B){return B&&B.length?Xi(B,xi):0}function wg(B,ee){return B&&B.length?Xi(B,Vn(ee,2)):0}return ze.after=Vh,ze.ary=sc,ze.assign=Ip,ze.assignIn=yc,ze.assignInWith=xc,ze.assignWith=Bl,ze.at=Dp,ze.before=oc,ze.bind=zl,ze.bindAll=R_,ze.bindKey=lc,ze.castArray=rp,ze.chain=rc,ze.chunk=ff,ze.compact=hf,ze.concat=pf,ze.cond=$_,ze.conforms=B_,ze.constant=Ul,ze.countBy=wh,ze.create=Lp,ze.curry=uc,ze.curryRight=cc,ze.debounce=dc,ze.defaults=Fp,ze.defaultsDeep=zp,ze.defer=Hh,ze.delay=Wh,ze.difference=_f,ze.differenceBy=gf,ze.differenceWith=mf,ze.drop=vf,ze.dropRight=bf,ze.dropRightWhile=yf,ze.dropWhile=xf,ze.fill=wf,ze.filter=kh,ze.flatMap=Ah,ze.flatMapDeep=Ph,ze.flatMapDepth=Mh,ze.flatten=Qu,ze.flattenDeep=Tf,ze.flattenDepth=kf,ze.flip=Zh,ze.flow=G_,ze.flowRight=q_,ze.fromPairs=Sf,ze.functions=qp,ze.functionsIn=Up,ze.groupBy=Oh,ze.initial=Af,ze.intersection=Pf,ze.intersectionBy=Mf,ze.intersectionWith=Of,ze.invert=Hp,ze.invertBy=Wp,ze.invokeMap=Ih,ze.iteratee=Vl,ze.keyBy=Dh,ze.keys=Yr,ze.keysIn=yi,ze.map=Ho,ze.mapKeys=Yp,ze.mapValues=Kp,ze.matches=U_,ze.matchesProperty=V_,ze.memoize=Zo,ze.merge=Xp,ze.mergeWith=wc,ze.method=H_,ze.methodOf=W_,ze.mixin=Hl,ze.negate=Yo,ze.nthArg=Y_,ze.omit=Jp,ze.omitBy=Qp,ze.once=Yh,ze.orderBy=Lh,ze.over=K_,ze.overArgs=Kh,ze.overEvery=X_,ze.overSome=J_,ze.partial=Nl,ze.partialRight=fc,ze.partition=Fh,ze.pick=e_,ze.pickBy=Tc,ze.property=Oc,ze.propertyOf=Q_,ze.pull=Lf,ze.pullAll=tc,ze.pullAllBy=Ff,ze.pullAllWith=zf,ze.pullAt=Nf,ze.range=eg,ze.rangeRight=tg,ze.rearg=Xh,ze.reject=Rh,ze.remove=Rf,ze.rest=Jh,ze.reverse=Ll,ze.sampleSize=Bh,ze.set=n_,ze.setWith=r_,ze.shuffle=jh,ze.slice=$f,ze.sortBy=Uh,ze.sortedUniq=Hf,ze.sortedUniqBy=Wf,ze.split=E_,ze.spread=Qh,ze.tail=Zf,ze.take=Yf,ze.takeRight=Kf,ze.takeRightWhile=Xf,ze.takeWhile=Jf,ze.tap=hh,ze.throttle=ep,ze.thru=Vo,ze.toArray=mc,ze.toPairs=kc,ze.toPairsIn=Sc,ze.toPath=sg,ze.toPlainObject=bc,ze.transform=i_,ze.unary=tp,ze.union=Qf,ze.unionBy=eh,ze.unionWith=th,ze.uniq=nh,ze.uniqBy=rh,ze.uniqWith=ih,ze.unset=a_,ze.unzip=Fl,ze.unzipWith=nc,ze.update=s_,ze.updateWith=o_,ze.values=oo,ze.valuesIn=l_,ze.without=ah,ze.words=Pc,ze.wrap=np,ze.xor=sh,ze.xorBy=oh,ze.xorWith=lh,ze.zip=uh,ze.zipObject=ch,ze.zipObjectDeep=dh,ze.zipWith=fh,ze.entries=kc,ze.entriesIn=Sc,ze.extend=yc,ze.extendWith=xc,Hl(ze,ze),ze.add=lg,ze.attempt=Mc,ze.camelCase=f_,ze.capitalize=Ec,ze.ceil=ug,ze.clamp=u_,ze.clone=ip,ze.cloneDeep=sp,ze.cloneDeepWith=op,ze.cloneWith=ap,ze.conformsTo=lp,ze.deburr=Ac,ze.defaultTo=j_,ze.divide=cg,ze.endsWith=h_,ze.eq=Hi,ze.escape=p_,ze.escapeRegExp=__,ze.every=Th,ze.find=Sh,ze.findIndex=Xu,ze.findKey=Np,ze.findLast=Eh,ze.findLastIndex=Ju,ze.findLastKey=Rp,ze.floor=dg,ze.forEach=ic,ze.forEachRight=ac,ze.forIn=$p,ze.forInRight=Bp,ze.forOwn=jp,ze.forOwnRight=Gp,ze.get=jl,ze.gt=up,ze.gte=cp,ze.has=Vp,ze.hasIn=Gl,ze.head=ec,ze.identity=xi,ze.includes=Ch,ze.indexOf=Ef,ze.inRange=c_,ze.invoke=Zp,ze.isArguments=$s,ze.isArray=er,ze.isArrayBuffer=dp,ze.isArrayLike=bi,ze.isArrayLikeObject=zr,ze.isBoolean=fp,ze.isBuffer=Ts,ze.isDate=hp,ze.isElement=pp,ze.isEmpty=_p,ze.isEqual=gp,ze.isEqualWith=mp,ze.isError=Rl,ze.isFinite=vp,ze.isFunction=es,ze.isInteger=hc,ze.isLength=Ko,ze.isMap=pc,ze.isMatch=bp,ze.isMatchWith=yp,ze.isNaN=xp,ze.isNative=wp,ze.isNil=kp,ze.isNull=Tp,ze.isNumber=_c,ze.isObject=Cr,ze.isObjectLike=Lr,ze.isPlainObject=ko,ze.isRegExp=$l,ze.isSafeInteger=Sp,ze.isSet=gc,ze.isString=Xo,ze.isSymbol=Si,ze.isTypedArray=so,ze.isUndefined=Ep,ze.isWeakMap=Ap,ze.isWeakSet=Pp,ze.join=Cf,ze.kebabCase=g_,ze.last=Li,ze.lastIndexOf=If,ze.lowerCase=m_,ze.lowerFirst=v_,ze.lt=Mp,ze.lte=Op,ze.max=fg,ze.maxBy=hg,ze.mean=pg,ze.meanBy=_g,ze.min=gg,ze.minBy=mg,ze.stubArray=Zl,ze.stubFalse=Yl,ze.stubObject=ng,ze.stubString=rg,ze.stubTrue=ig,ze.multiply=vg,ze.nth=Df,ze.noConflict=Z_,ze.noop=Wl,ze.now=Wo,ze.pad=b_,ze.padEnd=y_,ze.padStart=x_,ze.parseInt=w_,ze.random=d_,ze.reduce=zh,ze.reduceRight=Nh,ze.repeat=T_,ze.replace=k_,ze.result=t_,ze.round=bg,ze.runInContext=It,ze.sample=$h,ze.size=Gh,ze.snakeCase=S_,ze.some=qh,ze.sortedIndex=Bf,ze.sortedIndexBy=jf,ze.sortedIndexOf=Gf,ze.sortedLastIndex=qf,ze.sortedLastIndexBy=Uf,ze.sortedLastIndexOf=Vf,ze.startCase=A_,ze.startsWith=P_,ze.subtract=yg,ze.sum=xg,ze.sumBy=wg,ze.template=M_,ze.times=ag,ze.toFinite=ts,ze.toInteger=tr,ze.toLength=vc,ze.toLower=O_,ze.toNumber=Fi,ze.toSafeInteger=Cp,ze.toString=vr,ze.toUpper=C_,ze.trim=I_,ze.trimEnd=D_,ze.trimStart=L_,ze.truncate=F_,ze.unescape=z_,ze.uniqueId=og,ze.upperCase=N_,ze.upperFirst=ql,ze.each=ic,ze.eachRight=ac,ze.first=ec,Hl(ze,(function(){var B={};return Oa(ze,function(ee,se){mr.call(ze.prototype,se)||(B[se]=ee)}),B})(),{chain:!1}),ze.VERSION=d,Ar(["bind","bindKey","curry","curryRight","partial","partialRight"],function(B){ze[B].placeholder=ze}),Ar(["drop","take"],function(B,ee){or.prototype[B]=function(se){se=se===c?1:Ee(tr(se),0);var fe=this.__filtered__&&!ee?new or(this):this.clone();return fe.__filtered__?fe.__takeCount__=Qe(se,fe.__takeCount__):fe.__views__.push({size:Qe(se,Ie),type:B+(fe.__dir__<0?"Right":"")}),fe},or.prototype[B+"Right"]=function(se){return this.reverse()[B](se).reverse()}}),Ar(["filter","map","takeWhile"],function(B,ee){var se=ee+1,fe=se==Le||se==we;or.prototype[B]=function(xe){var Ne=this.clone();return Ne.__iteratees__.push({iteratee:Vn(xe,3),type:se}),Ne.__filtered__=Ne.__filtered__||fe,Ne}}),Ar(["head","last"],function(B,ee){var se="take"+(ee?"Right":"");or.prototype[B]=function(){return this[se](1).value()[0]}}),Ar(["initial","tail"],function(B,ee){var se="drop"+(ee?"":"Right");or.prototype[B]=function(){return this.__filtered__?new or(this):this[se](1)}}),or.prototype.compact=function(){return this.filter(xi)},or.prototype.find=function(B){return this.filter(B).head()},or.prototype.findLast=function(B){return this.reverse().find(B)},or.prototype.invokeMap=ar(function(B,ee){return typeof B=="function"?new or(this):this.map(function(se){return vo(se,B,ee)})}),or.prototype.reject=function(B){return this.filter(Yo(Vn(B)))},or.prototype.slice=function(B,ee){B=tr(B);var se=this;return se.__filtered__&&(B>0||ee<0)?new or(se):(B<0?se=se.takeRight(-B):B&&(se=se.drop(B)),ee!==c&&(ee=tr(ee),se=ee<0?se.dropRight(-ee):se.take(ee-B)),se)},or.prototype.takeRightWhile=function(B){return this.reverse().takeWhile(B).reverse()},or.prototype.toArray=function(){return this.take(Ie)},Oa(or.prototype,function(B,ee){var se=/^(?:filter|find|map|reject)|While$/.test(ee),fe=/^(?:head|last)$/.test(ee),xe=ze[fe?"take"+(ee=="last"?"Right":""):ee],Ne=fe||/^find/.test(ee);xe&&(ze.prototype[ee]=function(){var tt=this.__wrapped__,yt=fe?[1]:arguments,zt=tt instanceof or,an=yt[0],sn=zt||er(tt),dn=function(ur){var fr=xe.apply(ze,Ti([ur],yt));return fe&&Tn?fr[0]:fr};sn&&se&&typeof an=="function"&&an.length!=1&&(zt=sn=!1);var Tn=this.__chain__,Dn=!!this.__actions__.length,Wn=Ne&&!Tn,rr=zt&&!Dn;if(!Ne&&sn){tt=rr?tt:new or(this);var Un=B.apply(tt,yt);return Un.__actions__.push({func:Vo,args:[dn],thisArg:c}),new oi(Un,Tn)}return Wn&&rr?B.apply(this,yt):(Un=this.thru(dn),Wn?fe?Un.value()[0]:Un.value():Un)})}),Ar(["pop","push","shift","sort","splice","unshift"],function(B){var ee=Va[B],se=/^(?:push|sort|unshift)$/.test(B
22)?"tap":"thru",fe=/^(?:pop|shift)$/.test(B);ze.prototype[B]=function(){var xe=arguments;if(fe&&!this.__chain__){var Ne=this.value();return ee.apply(er(Ne)?Ne:[],xe)}return this[se](function(tt){return ee.apply(er(tt)?tt:[],xe)})}}),Oa(or.prototype,function(B,ee){var se=ze[ee];if(se){var fe=se.name+"";mr.call(gs,fe)||(gs[fe]=[]),gs[fe].push({name:ee,func:se})}}),gs[Ro(c,te).name]=[{name:"wrapper",func:c}],or.prototype.clone=Lc,or.prototype.reverse=Fc,or.prototype.value=zc,ze.prototype.at=ph,ze.prototype.chain=_h,ze.prototype.commit=gh,ze.prototype.next=mh,ze.prototype.plant=bh,ze.prototype.reverse=yh,ze.prototype.toJSON=ze.prototype.valueOf=ze.prototype.value=xh,ze.prototype.first=ze.prototype.head,_s&&(ze.prototype[_s]=vh),ze}),ga=Xs();Ir?((Ir.exports=ga)._=ga,dr._=ga):An._=ga}).call(lodash)})(lodash$1,lodash$1.exports)),lodash$1.exports}var lodashExports=requireLodash();const _=getDefaultExportFromCjs(lodashExports),curRoute=writable("/");curRoute.subscribe(o=>{appState.curRoute=o});function linkHandler(o){if(o.target.classList.contains("klapptrigger")){let h=o.target;o.target.classList.toggle("active");let m=h.nextElementSibling;h.classList.contains("active")?(m.classList.add("auf"),m.classList.remove("zu")):(m.classList.add("zu"),m.classList.remove("auf"))}let n=o.target.closest("A");if(!n)return;const c=n.getAttribute("target");if(c&&c!=="_self"||o.ctrlKey||o.metaKey||o.shiftKey||o.altKey)return;let d=n.getAttribute("href");if(!(/^https?:\/\//i.test(d)||/^mailto:/i.test(d)||/^tel:/i.test(d)||/\.jpg|jpeg|zip|png|gif/i.test(d)||/\.pdf/i.test(d)||/\.doc/i.test(d))){if(/^#/.test(d)){const h=document.getElementById(d.slice(1))||document.querySelector(`[name="${d.slice(1)}"]`);if(h){o.preventDefault();const m=window.scrollY;history.replaceState({...window.history.state,returnY:m},"",window.location.href),h.scrollIntoView({behavior:"smooth",block:"start"}),window.location.hash=d.slice(1)}return}o.preventDefault(),redirectTo(d)}}const handlerBackNavigation=o=>{const n=o.state||{},c=n.path||window.location.pathname;if(n.y!==void 0&&window.history.replaceState({...n,returnToY:n.y},"",window.location.href),n.y!==void 0&&!window.location.hash&&requestAnimationFrame(()=>window.scrollTo(0,n.y)),window.location.hash){const d=document.getElementById(window.location.hash.slice(1));d&&d.scrollIntoView({behavior:"smooth",block:"start"});return}curRoute.set(c),appState.cacheddoc=n.doc},redirectTo=o=>{console.log("redirect"),document.querySelectorAll(".fuellblock").forEach(m=>m.remove());let n=new URL(window.location.origin+o),c=o.split("?"),d=c[1]?c[1].split("&"):null;d&&d.reduce(function(m,p){var w=p.split("=");return m[w[0]]=w[1],m},{}),c[0];const h=window.location.pathname;window.history.replaceState({...window.history.state||{},path:h,y:window.scrollY},"",window.location.origin+h),window.history.pushState({path:n.pathname},"",window.location.origin+n.pathname),curRoute.set(n.pathname)};function commonjsRequire(o){throw new Error('Could not dynamically require "'+o+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var hjson={exports:{}};var hasRequiredHjson;function requireHjson(){return hasRequiredHjson||(hasRequiredHjson=1,(function(o,n){(function(c){o.exports=c()})(function(){return(function(){function c(d,h,m){function p(A,y){if(!h[A]){if(!d[A]){var s=typeof commonjsRequire=="function"&&commonjsRequire;if(!y&&s)return s(A,!0);if(w)return w(A,!0);var e=new Error("Cannot find module '"+A+"'");throw e.code="MODULE_NOT_FOUND",e}var f=h[A]={exports:{}};d[A][0].call(f.exports,function(g){var R=d[A][1][g];return p(R||g)},f,f.exports,c,d,h,m)}return h[A].exports}for(var w=typeof commonjsRequire=="function"&&commonjsRequire,z=0;z<m.length;z++)p(m[z]);return p}return c})()({1:[function(c,d,h){var m=c("./hjson-common");function p(R,q,H){var te;return R&&(te={b:R}),q&&((te=te||{}).a=q),H&&((te=te||{}).x=H),te}function w(R,q){if(!(R===null||typeof R!="object")){var H=m.getComment(R);H&&m.removeComment(R);var te,re,ae,ne;if(Object.prototype.toString.apply(R)==="[object Array]"){for(ne={a:{}},te=0,re=R.length;te<re;te++)y(ne.a,te,H.a[te],w(R[te]))&&(ae=!0);!ae&&H.e&&(ne.e=p(H.e[0],H.e[1]),ae=!0)}else{ne={s:{}};var oe,le=Object.keys(R);for(H&&H.o?(oe=[],H.o.concat(le).forEach(function(ue){Object.prototype.hasOwnProperty.call(R,ue)&&oe.indexOf(ue)<0&&oe.push(ue)})):oe=le,ne.o=oe,te=0,re=oe.length;te<re;te++){var ce=oe[te];y(ne.s,ce,H.c[ce],w(R[ce]))&&(ae=!0)}!ae&&H.e&&(ne.e=p(H.e[0],H.e[1]),ae=!0)}return q&&H&&H.r&&(ne.r=p(H.r[0],H.r[1])),ae?ne:void 0}}function z(){var R="";return[].forEach.call(arguments,function(q){q&&q.trim()!==""&&(R&&(R+="; "),R+=q.trim())}),R}function A(R,q){var H=[];if(f(R,q,H,[]),H.length>0){var te=g(q,null,1);te+=`
23# Orphaned comments:
24`,H.forEach(function(re){te+=("# "+re.path.join("/")+": "+z(re.b,re.a,re.e)).replace(`
25`,"\\n ")+`
26`}),g(q,te,1)}}function y(R,q,H,te){var re=p(H?H[0]:void 0,H?H[1]:void 0,te);return re&&(R[q]=re),re}
26function s(R,q){var H=p(q.b,q.a);return H.path=R,H}function e(R,q,H){if(R){var te,re;if(R.a)for(te=0,re=R.a.length;te<re;te++){var ae=H.slice().concat([te]),ne=R.a[te];ne&&(q.push(s(ae,ne)),e(ne.x,q,ae))}else R.o&&R.o.forEach(function(oe){var le=H.slice().concat([oe]),ce=R.s[oe];ce&&(q.push(s(le,ce)),e(ce.x,q,le))});R.e&&q.push(s(H,R.e))}}function f(R,q,H,te){if(R){if(q===null||typeof q!="object"){e(R,H,te);return}var re,ae=m.createComment(q);if(te.length===0&&R.r&&(ae.r=[R.r.b,R.r.a]),Object.prototype.toString.apply(q)==="[object Array]"){ae.a=[];var ne=R.a||{};for(var oe in ne)if(ne.hasOwnProperty(oe)){re=parseInt(oe);var le=R.a[oe];if(le){var ce=te.slice().concat([re]);re<q.length?(ae.a[re]=[le.b,le.a],f(le.x,q[re],H,ce)):(H.push(s(ce,le)),e(le.x,H,ce))}}re===0&&R.e&&(ae.e=[R.e.b,R.e.a])}else ae.c={},ae.o=[],(R.o||[]).forEach(function(ue){var he=te.slice().concat([ue]),ge=R.s[ue];Object.prototype.hasOwnProperty.call(q,ue)?(ae.o.push(ue),ge&&(ae.c[ue]=[ge.b,ge.a],f(ge.x,q[ue],H,he))):ge&&(H.push(s(he,ge)),e(ge.x,H,he))}),R.e&&(ae.e=[R.e.b,R.e.a])}}function g(R,q,H){var te=m.createComment(R,m.getComment(R));return te.r||(te.r=["",""]),(q||q==="")&&(te.r[H]=m.forceComment(q)),te.r[H]||""}d.exports={extract:function(R){return w(R,!0)},merge:A,header:function(R,q){return g(R,q,0)},footer:function(R,q){return g(R,q,1)}}},{"./hjson-common":2}],2:[function(c,d,h){var m=c("os");function p(s,e){var f,g="",R=0,q=!0,H=0,te;function re(){return te=s.charAt(H),H++,te}for(re(),te==="-"&&(g="-",re());te>="0"&&te<="9";)q&&(te=="0"?R++:q=!1),g+=te,re();if(q&&R--,te===".")for(g+=".";re()&&te>="0"&&te<="9";)g+=te;if(te==="e"||te==="E")for(g+=te,re(),(te==="-"||te==="+")&&(g+=te,re());te>="0"&&te<="9";)g+=te,re();for(;te&&te<=" ";)re();if(e&&(te===","||te==="}"||te==="]"||te==="#"||te==="/"&&(s[H]==="/"||s[H]==="*"))&&(te=0),f=+g,!(te||R||!isFinite(f)))return f}function w(s,e){return Object.defineProperty&&Object.defineProperty(s,"__COMMENTS__",{enumerable:!1,writable:!0}),s.__COMMENTS__=e||{}}function z(s){Object.defineProperty(s,"__COMMENTS__",{value:void 0})}function A(s){return s.__COMMENTS__}function y(s){if(!s)return"";var e=s.split(`
27`),f,g,R,q;for(R=0;R<e.length;R++)for(f=e[R],q=f.length,g=0;g<q;g++){var H=f[g];if(H==="#")break;if(H==="/"&&(f[g+1]==="/"||f[g+1]==="*")){f[g+1]==="*"&&(R=e.length);break}else if(H>" "){e[R]="# "+f;break}}return e.join(`
28`)}d.exports={EOL:m.EOL||`
29`,tryParseNumber:p,createComment:w,removeComment:z,getComment:A,forceComment:y}},{os:8}],3:[function(c,d,h){function m(e,f){if(Object.prototype.toString.apply(e)!=="[object Array]"){if(e)throw new Error("dsf option must contain an array!");return w}else if(e.length===0)return w;var g=[];function R(q){return{}.toString.call(q)==="[object Function]"}return e.forEach(function(q){if(!q.name||!R(q.parse)||!R(q.stringify))throw new Error("extension does not match the DSF interface");g.push(function(){try{if(f=="parse")return q.parse.apply(null,arguments);if(f=="stringify"){var H=q.stringify.apply(null,arguments);if(H!==void 0&&(typeof H!="string"||H.length===0||H[0]==='"'||[].some.call(H,function(te){return z(te)})))throw new Error("value may not be empty, start with a quote or contain a punctuator character except colon: "+H);return H}else throw new Error("Invalid type")}catch(te){throw new Error("DSF-"+q.name+" failed; "+te.message)}})}),p.bind(null,g)}function p(e,f){if(e)for(var g=0;g<e.length;g++){var R=e[g](f);if(R!==void 0)return R}}function w(){}function z(e){return e==="{"||e==="}"||e==="["||e==="]"||e===","}function A(){return{name:"math",parse:function(e){switch(e){case"+inf":case"inf":case"+Inf":case"Inf":return 1/0;case"-inf":case"-Inf":return-1/0;case"nan":case"NaN":return NaN}},stringify:function(e){if(typeof e=="number"){if(1/e===-1/0)return"-0";if(e===1/0)return"Inf";if(e===-1/0)return"-Inf";if(isNaN(e))return"NaN"}}}}A.description="support for Inf/inf, -Inf/-inf, Nan/naN and -0";function y(e){var f=e&&e.out;return{name:"hex",parse:function(g){if(/^0x[0-9A-Fa-f]+$/.test(g))return parseInt(g,16)},stringify:function(g){if(f&&Number.isInteger(g))return"0x"+g.toString(16)}}}y.description="parse hexadecimal numbers prefixed with 0x";function s(){return{name:"date",parse:function(e){if(/^\d{4}-\d{2}-\d{2}$/.test(e)||/^\d{4}-\d{2}-\d{2}T\d{2}\:\d{2}\:\d{2}(?:.\d+)(?:Z|[+-]\d{2}:\d{2})$/.test(e)){var f=Date.parse(e);if(!isNaN(f))return new Date(f)}},stringify:function(e){if(Object.prototype.toString.call(e)==="[object Date]"){var f=e.toISOString();return f.indexOf("T00:00:00.000Z",f.length-14)!==-1?f.substr(0,10):f}}}}s.description="support ISO dates",d.exports={loadDsf:m,std:{math:A,hex:y,date:s}}},{}],4:[function(c,d,h){d.exports=function(m,p){var w=c("./hjson-common"),z=c("./hjson-dsf"),A,y,s,e={'"':'"',"'":"'","\\":"\\","/":"/",b:"\b",f:"\f",n:`
30`,r:"\r",t:"	"},f,g;function R(){y=0,s=" "}function q(ye){return ye==="{"||ye==="}"||ye==="["||ye==="]"||ye===","||ye===":"}function H(ye){var ke,Ae=0,Ie=1;for(ke=y-1;ke>0&&A[ke]!==`
31`;ke--,Ae++);for(;ke>0;ke--)A[ke]===`
32`&&Ie++;throw new Error(ye+" at line "+Ie+","+Ae+" >>>"+A.substr(y-Ae,20)+" ...")}function te(){return s=A.charAt(y),y++,s}function re(ye){return A.charAt(y+ye)}function ae(ye){for(var ke="",Ae=s;te();){if(s===Ae)return te(),ye&&Ae==="'"&&s==="'"&&ke.length===0?(te(),ne()):ke;if(s==="\\")if(te(),s==="u"){for(var Ie=0,qe=0;qe<4;qe++){te();var Ge=s.charCodeAt(0),Je;s>="0"&&s<="9"?Je=Ge-48:s>="a"&&s<="f"?Je=Ge-97+10:s>="A"&&s<="F"?Je=Ge-65+10:H("Bad \\u char "+s),Ie=Ie*16+Je}ke+=String.fromCharCode(Ie)}else if(typeof e[s]=="string")ke+=e[s];else break;else s===`
33`||s==="\r"?H("Bad string containing newline"):ke+=s}H("Bad string")}function ne(){for(var ye="",ke=0,Ae=0;;){var Ie=re(-Ae-5);if(!Ie||Ie===`
34`)break;Ae++}function qe(){for(var Ge=Ae;s&&s<=" "&&s!==`
35`&&Ge-- >0;)te()}for(;s&&s<=" "&&s!==`
36`;)te();for(s===`
37`&&(te(),qe());;){if(!s)H("Bad multiline string");else if(s==="'"){if(ke++,te(),ke===3)return ye.slice(-1)===`
38`&&(ye=ye.slice(0,-1)),ye;continue}else for(;ke>0;)ye+="'",ke--;s===`
39`?(ye+=`
40`,te(),qe()):(s!=="\r"&&(ye+=s),te())}}function oe(){if(s==='"'||s==="'")return ae(!1);for(var ye="",ke=y,Ae=-1;;){if(s===":")return ye?Ae>=0&&Ae!==ye.length&&(y=ke+Ae,H("Found whitespace in your key name (use quotes to include)")):H("Found ':' but no key name (for an empty key name use quotes)"),ye;s<=" "?s?Ae<0&&(Ae=ye.length):H("Found EOF while looking for a key name (check your syntax)"):q(s)?H("Found '"+s+"' where a key name was expected (check your syntax or use quotes if the key name includes {}[],: or whitespace)"):ye+=s,te()}}function le(){for(;s;){for(;s&&s<=" ";)te();if(s==="#"||s==="/"&&re(0)==="/")for(;s&&s!==`
41`;)te();else if(s==="/"&&re(0)==="*"){for(te(),te();s&&!(s==="*"&&re(0)==="/");)te();s&&(te(),te())}else break}}function ce(){var ye=s;for(q(s)&&H("Found a punctuator character '"+s+"' when expecting a quoteless string (check your syntax)");;){te();var ke=s==="\r"||s===`
42`||s==="";if(ke||s===","||s==="}"||s==="]"||s==="#"||s==="/"&&(re(0)==="/"||re(0)==="*")){var Ae=ye[0];switch(Ae){case"f":if(ye.trim()==="false")return!1;break;case"n":if(ye.trim()==="null")return null;break;case"t":if(ye.trim()==="true")return!0;break;default:if(Ae==="-"||Ae>="0"&&Ae<="9"){var Ie=w.tryParseNumber(ye);if(Ie!==void 0)return Ie}}if(ke){ye=ye.trim();var qe=g(ye);return qe!==void 0?qe:ye}}ye+=s}}function ue(ye,ke){var Ae;for(ye--,Ae=y-2;Ae>ye&&A[Ae]<=" "&&A[Ae]!==`
43`;Ae--);A[Ae]===`
44`&&Ae--,A[Ae]==="\r"&&Ae--;var Ie=A.substr(ye,Ae-ye+1);for(Ae=0;Ae<Ie.length;Ae++)if(Ie[Ae]>" "){var qe=Ie.indexOf(`
45`);if(qe>=0){var Ge=[Ie.substr(0,qe),Ie.substr(qe+1)];return ke&&Ge[0].trim().length===0&&Ge.shift(),Ge}else return[Ie]}return[]}function he(ye){function ke(Ie,qe){var Ge,Je,Te,ve;switch(typeof Ie){case"string":Ie.indexOf(qe)>=0&&(ve=Ie);break;case"object":if(Object.prototype.toString.apply(Ie)==="[object Array]")for(Ge=0,Te=Ie.length;Ge<Te;Ge++)ve=ke(Ie[Ge],qe)||ve;else for(Je in Ie)Object.prototype.hasOwnProperty.call(Ie,Je)&&(ve=ke(Ie[Je],qe)||ve)}return ve}function Ae(Ie){var qe=ke(ye,Ie);return qe?"found '"+Ie+`' in a string value, your mistake could be with:
46  > `+qe+`
47  (unquoted strings contain everything up to the next line!)`:""}return Ae("}")||Ae("]")}function ge(){var ye=[],ke,Ae,Ie;try{if(f&&(ke=w.createComment(ye,{a:[]})),te(),Ae=y,le(),ke&&(Ie=ue(Ae,!0).join(`
48`)),s==="]")return te(),ke&&(ke.e=[Ie]),ye;for(;s;){if(ye.push($e()),Ae=y,le(),s===","&&(te(),Ae=y,le()),ke){var qe=ue(Ae);ke.a.push([Ie||"",qe[0]||""]),Ie=qe[1]}if(s==="]")return te(),ke&&(ke.a[ke.a.length-1][1]+=Ie||""),ye;le()}H("End of input while parsing an array (missing ']')")}catch(Ge){throw Ge.hint=Ge.hint||he(ye),Ge}}function Oe(ye){var ke="",Ae={},Ie,qe,Ge;try{if(f&&(Ie=w.createComment(Ae,{c:{},o:[]})),ye?qe=1:(te(),qe=y),le(),Ie&&(Ge=ue(qe,!0).join(`
49`)),s==="}"&&!ye)return Ie&&(Ie.e=[Ge]),te(),Ae;for(;s;){if(ke=oe(),le(),s!==":"&&H("Expected ':' instead of '"+s+"'"),te(),Ae[ke]=$e(),qe=y,le(),s===","&&(te(),qe=y,le()),Ie){var Je=ue(qe);Ie.c[ke]=[Ge||"",Je[0]||""],Ge=Je[1],Ie.o.push(ke)}if(s==="}"&&!ye)return te(),Ie&&(Ie.c[ke][1]+=Ge||""),Ae;le()}if(ye)return Ae;H("End of input while parsing an object (missing '}')")}catch(Te){throw Te.hint=Te.hint||he(Ae),Te}}function $e(){switch(le(),s){case"{":return Oe();case"[":return ge();case"'":case'"':return ae(!0);default:return ce()}}function Pe(ye,ke){var Ae=y;if(le(),s&&H("Syntax error, found trailing characters"),f){var Ie=ke.join(`
50`),qe=ue(Ae).join(`
51`);if(qe||Ie){var Ge=w.createComment(ye,w.getComment(ye));Ge.r=[Ie,qe]}}return ye}function Le(){le();var ye=f?ue(1):null;switch(s){case"{":return Pe(Oe(),ye);case"[":return Pe(ge(),ye);default:return Pe($e(),ye)}}function me(){le();var ye=f?ue(1):null;switch(s){case"{":return Pe(Oe(),ye);case"[":return Pe(ge(),ye)}try{return Pe(Oe(!0),ye)}catch(ke){R();try{return Pe($e(),ye)}catch{throw ke}}}if(typeof m!="string")throw new Error("source is not a string");var we=null,Se=!0;return p&&typeof p=="object"&&(f=p.keepWsc,we=p.dsf,Se=p.legacyRoot!==!1),g=z.loadDsf(we,"parse"),A=m,R(),Se?me():Le()}},{"./hjson-common":2,"./hjson-dsf":3}],5:[function(c,d,h){d.exports=function(m,p){var w=c("./hjson-common"),z=c("./hjson-dsf"),A={obj:["{","}"],arr:["[","]"],key:["",""],qkey:['"','"'],col:[":",""],com:[",",""],str:["",""],qstr:['"','"'],mstr:["'''","'''"],num:["",""],lit:["",""],dsf:["",""],esc:["\\",""],uni:["\\u",""],rem:["",""]},y=w.EOL,s="  ",e=!1,f=!1,g=!1,R=!1,q=0,H=1,te="",re=null,ae=!1,ne=A;if(p&&typeof p=="object"){p.quotes=p.quotes==="always"?"strings":p.quotes,(p.eol===`
52`||p.eol===`\r
53`)&&(y=p.eol),e=p.keepWsc,q=p.condense||0,f=p.bracesSameLine,g=p.quotes==="all"||p.quotes==="keys",R=p.quotes==="all"||p.quotes==="str
53ings"||p.separator===!0,R||p.multiline=="off"?H=0:H=p.multiline=="no-tabs"?2:1,te=p.separator===!0?ne.com[0]:"",re=p.dsf,ae=p.sortProps,typeof p.space=="number"?s=new Array(p.space+1).join(" "):typeof p.space=="string"&&(s=p.space),p.colors===!0&&(ne={obj:["\x1B[37m{\x1B[0m","\x1B[37m}\x1B[0m"],arr:["\x1B[37m[\x1B[0m","\x1B[37m]\x1B[0m"],key:["\x1B[33m","\x1B[0m"],qkey:['\x1B[33m"','"\x1B[0m'],col:["\x1B[37m:\x1B[0m",""],com:["\x1B[37m,\x1B[0m",""],str:["\x1B[37;1m","\x1B[0m"],qstr:['\x1B[37;1m"','"\x1B[0m'],mstr:["\x1B[37;1m'''","'''\x1B[0m"],num:["\x1B[36;1m","\x1B[0m"],lit:["\x1B[36m","\x1B[0m"],dsf:["\x1B[37m","\x1B[0m"],esc:["\x1B[31m\\","\x1B[0m"],uni:["\x1B[31m\\u","\x1B[0m"],rem:["\x1B[35m","\x1B[0m"]});var oe,le=Object.keys(A);for(oe=le.length-1;oe>=0;oe--){var ce=le[oe];ne[ce].push(A[ce][0].length,A[ce][1].length)}}var ue,he="�-Ÿ­؀-؄܏឴឵‌-‏\u2028- ⁠-\uFEFFï¿°-ï¿¿",ge=new RegExp('[\\\\\\"\0-�'+he+"]","g"),Oe=new RegExp(`^\\s|^"|^'|^#|^\\/\\*|^\\/\\/|^\\{|^\\}|^\\[|^\\]|^:|^,|\\s$|[\0-�`+he+"]","g"),$e=new RegExp("'''|^[\\s]+$|[\0-"+(H===2?"	":"\b")+"\v\f�-�"+he+"]","g"),Pe=new RegExp("^(true|false|null)\\s*((,|\\]|\\}|#|//|/\\*).*)?$"),Le={"\b":"b","	":"t","\n":"n","\f":"f","\r":"r",'"':'"',"\\":"\\"},me=/[,\{\[\}\]\s:#"']|\/\/|\/\*/,we="",Se=0;function ye(ve,et){return Se+=ve[0].length+ve[1].length-ve[2]-ve[3],ve[0]+et+ve[1]}function ke(ve){return ve.replace(ge,function(et){var mt=Le[et];return typeof mt=="string"?ye(ne.esc,mt):ye(ne.uni,("0000"+et.charCodeAt(0).toString(16)).slice(-4))})}function Ae(ve,et,mt,ht){return ve?(Oe.lastIndex=0,Pe.lastIndex=0,R||mt||Oe.test(ve)||w.tryParseNumber(ve,!0)!==void 0||Pe.test(ve)?(ge.lastIndex=0,$e.lastIndex=0,ge.test(ve)?!$e.test(ve)&&!ht&&H?Ie(ve,et):ye(ne.qstr,ke(ve)):ye(ne.qstr,ve)):ye(ne.str,ve)):ye(ne.qstr,"")}function Ie(ve,et){var mt,ht=ve.replace(/\r/g,"").split(`
54`);if(et+=s,ht.length===1)return ye(ne.mstr,ht[0]);var ct=y+et+ne.mstr[0];for(mt=0;mt<ht.length;mt++)ct+=y,ht[mt]&&(ct+=et+ht[mt]);return ct+y+et+ne.mstr[1]}function qe(ve){return ve?g||me.test(ve)?(ge.lastIndex=0,ye(ne.qkey,ge.test(ve)?ke(ve):ve)):ye(ne.key,ve):'""'}function Ge(ve,et,mt,ht){function ct(qt){return qt&&qt[qt[0]==="\r"?1:0]===`
55`}function Ue(qt){return qt&&!ct(qt)}function ot(qt,on,He){if(!qt)return"";qt=w.forceComment(qt);var Ve,pt=qt.length;for(Ve=0;Ve<pt&&qt[Ve]<=" ";Ve++);return He&&Ve>0&&(qt=qt.substr(Ve)),Ve<pt?on+ye(ne.rem,qt):qt}var bt=ue(ve);if(bt!==void 0)return ye(ne.dsf,bt);switch(typeof ve){case"string":return Ae(ve,we,et,ht);case"number":return isFinite(ve)?ye(ne.num,String(ve)):ye(ne.lit,"null");case"boolean":return ye(ne.lit,String(ve));case"object":if(!ve)return ye(ne.lit,"null");var At;e&&(At=w.getComment(ve));var ft=Object.prototype.toString.apply(ve)==="[object Array]",be=we;we+=s;var Et=y+be,St=y+we,Jt=mt||f?"":Et,Bt=[],Vt,Tt=q?[]:null,Be=R,Xe=H,Ke=te?"":ne.com[0],nt=0,xt,Mt,Ye,at,st,vt,gt,Ot,Dt;if(ft){for(xt=0,Mt=ve.length;xt<Mt;xt++){if(Vt=xt<Mt-1,At?(vt=At.a[xt]||[],gt=Ue(vt[1]),Bt.push(ot(vt[0],`
56`)+St),Tt&&(vt[0]||vt[1]||gt)&&(Tt=null)):Bt.push(St),Se=0,at=ve[xt],Bt.push(Ge(at,At?gt:!1,!0)+(Vt?te:"")),Tt){switch(typeof at){case"string":Se=0,R=!0,H=0,Tt.push(Ge(at,!1,!0)+(Vt?ne.com[0]:"")),R=Be,H=Xe;break;case"object":if(at){Tt=null;break}default:Tt.push(Bt[Bt.length-1]+(Vt?Ke:""));break}Vt&&(Se+=ne.com[0].length-ne.com[2]),nt+=Se}At&&vt[1]&&Bt.push(ot(vt[1],gt?" ":`
57`,gt))}Mt===0?At&&At.e&&Bt.push(ot(At.e[0],`
58`)+Et):Bt.push(Et),Bt.length===0?Ot=ye(ne.arr,""):(Ot=Jt+ye(ne.arr,Bt.join("")),Tt&&(Dt=Tt.join(" "),Dt.length-nt<=q&&(Ot=ye(ne.arr,Dt))))}else{var Gt=At?At.o.slice():[],Ft=[];for(Ye in ve)Object.prototype.hasOwnProperty.call(ve,Ye)&&Gt.indexOf(Ye)<0&&Ft.push(Ye);ae&&Ft.sort();var Pt=Gt.concat(Ft);for(xt=0,Mt=Pt.length;xt<Mt;xt++)if(Vt=xt<Mt-1,Ye=Pt[xt],At?(vt=At.c[Ye]||[],gt=Ue(vt[1]),Bt.push(ot(vt[0],`
59`)+St),Tt&&(vt[0]||vt[1]||gt)&&(Tt=null)):Bt.push(St),Se=0,at=ve[Ye],st=Ge(at,At&&gt),Bt.push(qe(Ye)+ne.col[0]+(ct(st)?"":" ")+st+(Vt?te:"")),At&&vt[1]&&Bt.push(ot(vt[1],gt?" ":`
60`,gt)),Tt){switch(typeof at){case"string":Se=0,R=!0,H=0,st=Ge(at,!1),R=Be,H=Xe,Tt.push(qe(Ye)+ne.col[0]+" "+st+(Vt?ne.com[0]:""));break;case"object":if(at){Tt=null;break}default:Tt.push(Bt[Bt.length-1]+(Vt?Ke:""));break}Se+=ne.col[0].length-ne.col[2],Vt&&(Se+=ne.com[0].length-ne.com[2]),nt+=Se}
60Mt===0?At&&At.e&&Bt.push(ot(At.e[0],`
61`)+Et):Bt.push(Et),Bt.length===0?Ot=ye(ne.obj,""):(Ot=Jt+ye(ne.obj,Bt.join("")),Tt&&(Dt=Tt.join(" "),Dt.length-nt<=q&&(Ot=ye(ne.obj,Dt))))}return we=be,Ot}}ue=z.loadDsf(re,"stringify");var Je="",Te=e?Te=(w.getComment(m)||{}).r:null;return Te&&Te[0]&&(Je=Te[0]+`
62`),Je+=Ge(m,null,!0,!0),Te&&(Je+=Te[1]||""),Je}},{"./hjson-common":2,"./hjson-dsf":3}],6:[function(c,d,h){d.exports="3.2.1"},{}],7:[function(c,d,h){var m=c("./hjson-common"),p=c("./hjson-version"),w=c("./hjson-parse"),z=c("./hjson-stringify"),A=c("./hjson-comments"),y=c("./hjson-dsf");d.exports={parse:w,stringify:z,endOfLine:function(){return m.EOL},setEndOfLine:function(s){(s===`
63`||s===`\r
64`)&&(m.EOL=s)},version:p,rt:{parse:function(s,e){return(e=e||{}).keepWsc=!0,w(s,e)},stringify:function(s,e){return(e=e||{}).keepWsc=!0,z(s,e)}},comments:A,dsf:y.std}},{"./hjson-comments":1,"./hjson-common":2,"./hjson-dsf":3,"./hjson-parse":4,"./hjson-stringify":5,"./hjson-version":6}],8:[function(c,d,h){},{}]},{},[7])(7)})})(hjson)),hjson.exports}var hjsonExports=requireHjson();const Hjson=getDefaultExportFromCjs(hjsonExports),decodeCache={};function getDecodeCache(o){let n=decodeCache[o];if(n)return n;n=decodeCache[o]=[];for(let c=0;c<128;c++){const d=String.fromCharCode(c);n.push(d)}for(let c=0;c<o.length;c++){const d=o.charCodeAt(c);n[d]="%"+("0"+d.toString(16).toUpperCase()).slice(-2)}return n}function decode$1(o,n){typeof n!="string"&&(n=decode$1.defaultChars);const c=getDecodeCache(n);return o.replace(/(%[a-f0-9]{2})+/gi,function(d){let h="";for(let m=0,p=d.length;m<p;m+=3){const w=parseInt(d.slice(m+1,m+3),16);if(w<128){h+=c[w];continue}if((w&224)===192&&m+3<p){const z=parseInt(d.slice(m+4,m+6),16);if((z&192)===128){const A=w<<6&1984|z&63;A<128?h+="��":h+=String.fromCharCode(A),m+=3;continue}}if((w&240)===224&&m+6<p){const z=parseInt(d.slice(m+4,m+6),16),A=parseInt(d.slice(m+7,m+9),16);if((z&192)===128&&(A&192)===128){const y=w<<12&61440|z<<6&4032|A&63;y<2048||y>=55296&&y<=57343?h+="���":h+=String.fromCharCode(y),m+=6;continue}}if((w&248)===240&&m+9<p){const z=parseInt(d.slice(m+4,m+6),16),A=parseInt(d.slice(m+7,m+9),16),y=parseInt(d.slice(m+10,m+12),16);if((z&192)===128&&(A&192)===128&&(y&192)===128){let s=w<<18&1835008|z<<12&258048|A<<6&4032|y&63;s<65536||s>1114111?h+="����":(s-=65536,h+=String.fromCharCode(55296+(s>>10),56320+(s&1023))),m+=9;continue}}h+="�"}return h})}decode$1.defaultChars=";/?:@&=+$,#";decode$1.componentChars="";const encodeCache={};function getEncodeCache(o){let n=encodeCache[o];if(n)return n;n=encodeCache[o]=[];for(let c=0;c<128;c++){const d=String.fromCharCode(c);/^[0-9a-z]$/i.test(d)?n.push(d):n.push("%"+("0"+c.toString(16).toUpperCase()).slice(-2))}for(let c=0;c<o.length;c++)n[o.charCodeAt(c)]=o[c];return n}function encode$1(o,n,c){typeof n!="string"&&(c=n,n=encode$1.defaultChars),typeof c>"u"&&(c=!0);const d=getEncodeCache(n);let h="";for(let m=0,p=o.length;m<p;m++){const w=o.charCodeAt(m);if(c&&w===37&&m+2<p&&/^[0-9a-f]{2}$/i.test(o.slice(m+1,m+3))){h+=o.slice(m,m+3),m+=2;continue}if(w<128){h+=d[w];continue}if(w>=55296&&w<=57343){if(w>=55296&&w<=56319&&m+1<p){const z=o.charCodeAt(m+1);if(z>=56320&&z<=57343){h+=encodeURIComponent(o[m]+o[m+1]),m++;continue}}h+="%EF%BF%BD";continue}h+=encodeURIComponent(o[m])}return h}encode$1.defaultChars=";/?:@&=+$,-_.!~*'()#";encode$1.componentChars="-_.!~*'()";function format(o){let n="";return n+=o.protocol||"",n+=o.slashes?"//":"",n+=o.auth?o.auth+"@":"",o.hostname&&o.hostname.indexOf(":")!==-1?n+="["+o.hostname+"]":n+=o.hostname||"",n+=o.port?":"+o.port:"",n+=o.pathname||"",n+=o.search||"",n+=o.hash||"",n}function Url(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const protocolPattern=/^([a-z0-9.+-]+:)/i,portPattern=/:[0-9]*$/,simplePathPattern=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,delims=["<",">",'"',"`"," ","\r",`
65`,"	"],unwise=["{","}","|","\\","^","`"].concat(delims),autoEscape=["'"].concat(unwise),nonHostChars=["%","/","?",";","#"].concat(autoEscape),hostEndingChars=["/","?","#"],hostnameMaxLen=255,hostnamePartPattern=/^[+a-z0-9A-Z_-]{0,63}$/,hostnamePartStart=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,hostlessProtocol={javascript:!0,"javascript:":!0},slashedProtocol={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function urlParse(o,n){if(o&&o instanceof Url)return o;const c=new Url;return c.parse(o,n),c}Url.prototype.parse=function(o,n){let c,d,h,m=o;if(m=m.trim(),!n&&o.split("#").length===1){const A=simplePathPattern.exec(m);if(A)return this.pathname=A[1],A[2]&&(this.search=A[2]),this}let p=protocolPattern.exec(m);if(p&&(p=p[0],c=p.toLowerCase(),this.protocol=p,m=m.substr(p.length)),(n||p||m.match(/^\/\/[^@\/]+@[^@\/]+/))&&(h=m.substr(0,2)==="//",h&&!(p&&hostlessProtocol[p])&&(m=m.substr(2),this.slashes=!0)),!hostlessProtocol[p]&&(h||p&&!slashedProtocol[p])){let A=-1;for(let g=0;g<hostEndingChars.length;g++)d=m.indexOf(hostEndingChars[g]),d!==-1&&(A===-1||d<A)&&(A=d);let y,s;A===-1?s=m.lastIndexOf("@"):s=m.lastIndexOf("@",A),s!==-1&&(y=m.slice(0,s),m=m.slice(s+1),this.auth=y),A=-1;for(let g=0;g<nonHostChars.length;g++)d=m.indexOf(nonHostChars[g]),d!==-1&&(A===-1||d<A)&&(A=d);A===-1&&(A=m.length),m[A-1]===":"&&A--;const e=m.slice(0,A);m=m.slice(A),this.parseHost(e),this.hostname=this.hostname||"";const f=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!f){const g=this.hostname.split(/\./);for(let R=0,q=g.length;R<q;R++){const H=g[R];
65if(H&&!H.match(hostnamePartPattern)){let te="";for(let re=0,ae=H.length;re<ae;re++)H.charCodeAt(re)>127?te+="x":te+=H[re];if(!te.match(hostnamePartPattern)){const re=g.slice(0,R),ae=g.slice(R+1),ne=H.match(hostnamePartStart);ne&&(re.push(ne[1]),ae.unshift(ne[2])),ae.length&&(m=ae.join(".")+m),this.hostname=re.join(".");break}}}}this.hostname.length>hostnameMaxLen&&(this.hostname=""),f&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const w=m.indexOf("#");w!==-1&&(this.hash=m.substr(w),m=m.slice(0,w));const z=m.indexOf("?");return z!==-1&&(this.search=m.substr(z),m=m.slice(0,z)),m&&(this.pathname=m),slashedProtocol[c]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Url.prototype.parseHost=function(o){let n=portPattern.exec(o);n&&(n=n[0],n!==":"&&(this.port=n.substr(1)),o=o.substr(0,o.length-n.length)),o&&(this.hostname=o)};const mdurl=Object.freeze(Object.defineProperty({__proto__:null,decode:decode$1,encode:encode$1,format,parse:urlParse},Symbol.toStringTag,{value:"Module"})),Any=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Cc=/[\0-\x1F\x7F-\x9F]/,regex$1=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,P$1=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,regex=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uD
65F3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,Z$1=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,ucmicro=Object.freeze(Object.defineProperty({__proto__:null,Any,Cc,Cf:regex$1,P:P$1,S:regex,Z:Z$1},Symbol.toStringTag,{value:"Module"})),htmlDecodeTree=new Uint16Array(
vendor: 8,302 bytes, line 65
65'ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms�„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;æ«§ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapÓºÓ¾cr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpÔ¦Ôªon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋ĀipÕªÕ¯sts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0Ö£mallSquare;旼erySmallSquare;斪Ͱֺ\0Ö¿\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0Ú²f;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgÜ´Ü·r;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyÞ±Þµrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āeyß¶ß»dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;æ««y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;
vendor: 18,348 bytes, line 65
65쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(
65o=>o.charCodeAt(0))),xmlDecodeTree=new Uint16Array("Ȁaglq	��\x1BÉ­�\0\0�p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(o=>o.charCodeAt(0)));var _a;const decodeMap=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),fromCodePoint$1=(_a=String.fromCodePoint)!==null&&_a!==void 0?_a:function(o){let n="";return o>65535&&(o-=65536,n+=String.fromCharCode(o>>>10&1023|55296),o=56320|o&1023),n+=String.fromCharCode(o),n};function replaceCodePoint(o){var n;return o>=55296&&o<=57343||o>1114111?65533:(n=decodeMap.get(o))!==null&&n!==void 0?n:o}var CharCodes;(function(o){o[o.NUM=35]="NUM",o[o.SEMI=59]="SEMI",o[o.EQUALS=61]="EQUALS",o[o.ZERO=48]="ZERO",o[o.NINE=57]="NINE",o[o.LOWER_A=97]="LOWER_A",o[o.LOWER_F=102]="LOWER_F",o[o.LOWER_X=120]="LOWER_X",o[o.LOWER_Z=122]="LOWER_Z",o[o.UPPER_A=65]="UPPER_A",o[o.UPPER_F=70]="UPPER_F",o[o.UPPER_Z=90]="UPPER_Z"})(CharCodes||(CharCodes={}));const TO_LOWER_BIT=32;var BinTrieFlags;(function(o){o[o.VALUE_LENGTH=49152]="VALUE_LENGTH",o[o.BRANCH_LENGTH=16256]="BRANCH_LENGTH",o[o.JUMP_TABLE=127]="JUMP_TABLE"})(BinTrieFlags||(BinTrieFlags={}));function isNumber$1(o){return o>=CharCodes.ZERO&&o<=CharCodes.NINE}function isHexadecimalCharacter(o){return o>=CharCodes.UPPER_A&&o<=CharCodes.UPPER_F||o>=CharCodes.LOWER_A&&o<=CharCodes.LOWER_F}function isAsciiAlphaNumeric(o){return o>=CharCodes.UPPER_A&&o<=CharCodes.UPPER_Z||o>=CharCodes.LOWER_A&&o<=CharCodes.LOWER_Z||isNumber$1(o)}function isEntityInAttributeInvalidEnd(o){return o===CharCodes.EQUALS||isAsciiAlphaNumeric(o)}var EntityDecoderState;(function(o){o[o.EntityStart=0]="EntityStart",o[o.NumericStart=1]="NumericStart",o[o.NumericDecimal=2]="NumericDecimal",o[o.NumericHex=3]="NumericHex",o[o.NamedEntity=4]="NamedEntity"})(EntityDecoderState||(EntityDecoderState={}));var DecodingMode;(function(o){o[o.Legacy=0]="Legacy",o[o.Strict=1]="Strict",o[o.Attribute=2]="Attribute"})(DecodingMode||(DecodingMode={}));class EntityDecoder{constructor(n,c,d){this.decodeTree=n,this.emitCodePoint=c,this.errors=d,this.state=EntityDecoderState.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=DecodingMode.Strict}startEntity(n){this.decodeMode=n,this.state=EntityDecoderState.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(n,c){switch(this.state){case EntityDecoderState.EntityStart:return n.charCo
65deAt(c)===CharCodes.NUM?(this.state=EntityDecoderState.NumericStart,this.consumed+=1,this.stateNumericStart(n,c+1)):(this.state=EntityDecoderState.NamedEntity,this.stateNamedEntity(n,c));case EntityDecoderState.NumericStart:return this.stateNumericStart(n,c);case EntityDecoderState.NumericDecimal:return this.stateNumericDecimal(n,c);case EntityDecoderState.NumericHex:return this.stateNumericHex(n,c);case EntityDecoderState.NamedEntity:return this.stateNamedEntity(n,c)}}stateNumericStart(n,c){return c>=n.length?-1:(n.charCodeAt(c)|TO_LOWER_BIT)===CharCodes.LOWER_X?(this.state=EntityDecoderState.NumericHex,this.consumed+=1,this.stateNumericHex(n,c+1)):(this.state=EntityDecoderState.NumericDecimal,this.stateNumericDecimal(n,c))}addToNumericResult(n,c,d,h){if(c!==d){const m=d-c;this.result=this.result*Math.pow(h,m)+parseInt(n.substr(c,m),h),this.consumed+=m}}stateNumericHex(n,c){const d=c;for(;c<n.length;){const h=n.charCodeAt(c);if(isNumber$1(h)||isHexadecimalCharacter(h))c+=1;else return this.addToNumericResult(n,d,c,16),this.emitNumericEntity(h,3)}return this.addToNumericResult(n,d,c,16),-1}stateNumericDecimal(n,c){const d=c;for(;c<n.length;){const h=n.charCodeAt(c);if(isNumber$1(h))c+=1;else return this.addToNumericResult(n,d,c,10),this.emitNumericEntity(h,2)}return this.addToNumericResult(n,d,c,10),-1}emitNumericEntity(n,c){var d;if(this.consumed<=c)return(d=this.errors)===null||d===void 0||d.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(n===CharCodes.SEMI)this.consumed+=1;else if(this.decodeMode===DecodingMode.Strict)return 0;return this.emitCodePoint(replaceCodePoint(this.result),this.consumed),this.errors&&(n!==CharCodes.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(n,c){const{decodeTree:d}=this;let h=d[this.treeIndex],m=(h&BinTrieFlags.VALUE_LENGTH)>>14;for(;c<n.length;c++,this.excess++){const p=n.charCodeAt(c);if(this.treeIndex=determineBranch(d,h,this.treeIndex+Math.max(1,m),p),this.treeIndex<0)return this.result===0||this.decodeMode===DecodingMode.Attribute&&(m===0||isEntityInAttributeInvalidEnd(p))?0:this.emitNotTerminatedNamedEntity();if(h=d[this.treeIndex],m=(h&BinTrieFlags.VALUE_LENGTH)>>14,m!==0){if(p===CharCodes.SEMI)return this.emitNamedEntityData(this.treeIndex,m,this.consumed+this.excess);this.decodeMode!==DecodingMode.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var n;const{result:c,decodeTree:d}=this,h=(d[c]&BinTrieFlags.VALUE_LENGTH)>>14;return this.emitNamedEntityData(c,h,this.consumed),(n=this.errors)===null||n===void 0||n.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(n,c,d){const{decodeTree:h}=this;return this.emitCodePoint(c===1?h[n]&~BinTrieFlags.VALUE_LENGTH:h[n+1],d),c===3&&this.emitCodePoint(h[n+2],d),d}end(){var n;switch(this.state){case EntityDecoderState.NamedEntity:return this.result!==0&&(this.decodeMode!==DecodingMode.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case EntityDecoderState.NumericDecimal:return this.emitNumericEntity(0,2);case EntityDecoderState.NumericHex:return this.emitNumericEntity(0,3);case EntityDecoderState.NumericStart:return(n=this.errors)===null||n===void 0||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case EntityDecoderState.EntityStart:return 0}}}function getDecoder(o){let n="";const c=new EntityDecoder(o,d=>n+=fromCodePoint$1(d));return function(h,m){let p=0,w=0;for(;(w=h.indexOf("&",w))>=0;){n+=h.slice(p,w),c.startEntity(m);const A=c.write(h,w+1);if(A<0){p=w+c.end();break}p=w+A,w=A===0?p+1:p}const z=n+h.slice(p);return n="",z}}function determineBranch(o,n,c,d){const h=(n&BinTrieFlags.BRANCH_LENGTH)>>7,m=n&BinTrieFlags.JUMP_TABLE;if(h===0)return m!==0&&d===m?c:-1;if(m){const z=d-m;return z<0||z>=h?-1:o[c+z]-1}let p=c,w=p+h-1;for(;p<=w;){const z=p+w>>>1,A=o[z];if(A<d)p=z+1;else if(A>d)w=z-1;else return o[z+h]}return-1}const htmlDecoder=getDecoder(htmlDecodeTree);getDecoder(xmlDecodeTree);function decodeHTML(o,n=DecodingMode.Legacy){return htmlDecoder(o,n)}function _class$1(o){return Object.prototype.toString.call(o)}function isString$1(o){return _class$1(o)==="[object String]"}const _hasOwnProperty=Object.prototype.hasOwnProperty;function has(o,n){return _hasOwnProperty.call(o,n)}function assign$1(o){return Array.prototype.slice.call(arguments,1
65).forEach(function(c){if(c){if(typeof c!="object")throw new TypeError(c+"must be object");Object.keys(c).forEach(function(d){o[d]=c[d]})}}),o}function arrayReplaceAt(o,n,c){return[].concat(o.slice(0,n),c,o.slice(n+1))}function isValidEntityCode(o){return!(o>=55296&&o<=57343||o>=64976&&o<=65007||(o&65535)===65535||(o&65535)===65534||o>=0&&o<=8||o===11||o>=14&&o<=31||o>=127&&o<=159||o>1114111)}function fromCodePoint(o){if(o>65535){o-=65536;const n=55296+(o>>10),c=56320+(o&1023);return String.fromCharCode(n,c)}return String.fromCharCode(o)}const UNESCAPE_MD_RE=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,ENTITY_RE=/&([a-z#][a-z0-9]{1,31});/gi,UNESCAPE_ALL_RE=new RegExp(UNESCAPE_MD_RE.source+"|"+ENTITY_RE.source,"gi"),DIGITAL_ENTITY_TEST_RE=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function replaceEntityPattern(o,n){if(n.charCodeAt(0)===35&&DIGITAL_ENTITY_TEST_RE.test(n)){const d=n[1].toLowerCase()==="x"?parseInt(n.slice(2),16):parseInt(n.slice(1),10);return isValidEntityCode(d)?fromCodePoint(d):o}const c=decodeHTML(o);return c!==o?c:o}function unescapeMd(o){return o.indexOf("\\")<0?o:o.replace(UNESCAPE_MD_RE,"$1")}function unescapeAll(o){return o.indexOf("\\")<0&&o.indexOf("&")<0?o:o.replace(UNESCAPE_ALL_RE,function(n,c,d){return c||replaceEntityPattern(n,d)})}const HTML_ESCAPE_TEST_RE=/[&<>"]/,HTML_ESCAPE_REPLACE_RE=/[&<>"]/g,HTML_REPLACEMENTS={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function replaceUnsafeChar(o){return HTML_REPLACEMENTS[o]}function escapeHtml(o){return HTML_ESCAPE_TEST_RE.test(o)?o.replace(HTML_ESCAPE_REPLACE_RE,replaceUnsafeChar):o}const REGEXP_ESCAPE_RE=/[.?*+^$[\]\\(){}|-]/g;function escapeRE$1(o){return o.replace(REGEXP_ESCAPE_RE,"\\$&")}function isSpace(o){switch(o){case 9:case 32:return!0}return!1}function isWhiteSpace(o){if(o>=8192&&o<=8202)return!0;switch(o){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function isPunctChar(o){return P$1.test(o)||regex.test(o)}function isMdAsciiPunct(o){switch(o){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function normalizeReference(o){return o=o.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(o=o.replace(/ẞ/g,"ß")),o.toLowerCase().toUpperCase()}const lib$1={mdurl,ucmicro},utils$1=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt,assign:assign$1,escapeHtml,escapeRE:escapeRE$1,fromCodePoint,has,isMdAsciiPunct,isPunctChar,isSpace,isString:isString$1,isValidEntityCode,isWhiteSpace,lib:lib$1,normalizeReference,unescapeAll,unescapeMd},Symbol.toStringTag,{value:"Module"}));function parseLinkLabel(o,n,c){let d,h,m,p;const w=o.posMax,z=o.pos;for(o.pos=n+1,d=1;o.pos<w;){if(m=o.src.charCodeAt(o.pos),m===93&&(d--,d===0)){h=!0;break}if(p=o.pos,o.md.inline.skipToken(o),m===91){if(p===o.pos-1)d++;else if(c)return o.pos=z,-1}}let A=-1;return h&&(A=o.pos),o.pos=z,A}function parseLinkDestination(o,n,c){let d,h=n;const m={ok:!1,pos:0,str:""};
65if(o.charCodeAt(h)===60){for(h++;h<c;){if(d=o.charCodeAt(h),d===10||d===60)return m;if(d===62)return m.pos=h+1,m.str=unescapeAll(o.slice(n+1,h)),m.ok=!0,m;if(d===92&&h+1<c){h+=2;continue}h++}return m}let p=0;for(;h<c&&(d=o.charCodeAt(h),!(d===32||d<32||d===127));){if(d===92&&h+1<c){if(o.charCodeAt(h+1)===32)break;h+=2;continue}if(d===40&&(p++,p>32))return m;if(d===41){if(p===0)break;p--}h++}return n===h||p!==0||(m.str=unescapeAll(o.slice(n,h)),m.pos=h,m.ok=!0),m}function parseLinkTitle(o,n,c,d){let h,m=n;const p={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(d)p.str=d.str,p.marker=d.marker;else{if(m>=c)return p;let w=o.charCodeAt(m);if(w!==34&&w!==39&&w!==40)return p;n++,m++,w===40&&(w=41),p.marker=w}for(;m<c;){if(h=o.charCodeAt(m),h===p.marker)return p.pos=m+1,p.str+=unescapeAll(o.slice(n,m)),p.ok=!0,p;if(h===40&&p.marker===41)return p;h===92&&m+1<c&&m++,m++}return p.can_continue=!0,p.str+=unescapeAll(o.slice(n,m)),p}const helpers=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination,parseLinkLabel,parseLinkTitle},Symbol.toStringTag,{value:"Module"})),default_rules={};default_rules.code_inline=function(o,n,c,d,h){const m=o[n];return"<code"+h.renderAttrs(m)+">"+escapeHtml(m.content)+"</code>"};default_rules.code_block=function(o,n,c,d,h){const m=o[n];return"<pre"+h.renderAttrs(m)+"><code>"+escapeHtml(o[n].content)+`</code></pre>
66`};default_rules.fence=function(o,n,c,d,h){const m=o[n],p=m.info?unescapeAll(m.info).trim():"";let w="",z="";if(p){const y=p.split(/(\s+)/g);w=y[0],z=y.slice(2).join("")}let A;if(c.highlight?A=c.highlight(m.content,w,z)||escapeHtml(m.content):A=escapeHtml(m.content),A.indexOf("<pre")===0)return A+`
67`;if(p){const y=m.attrIndex("class"),s=m.attrs?m.attrs.slice():[];y<0?s.push(["class",c.langPrefix+w]):(s[y]=s[y].slice(),s[y][1]+=" "+c.langPrefix+w);const e={attrs:s};return`<pre><code${h.renderAttrs(e)}>${A}</code></pre>
68`}return`<pre><code${h.renderAttrs(m)}>${A}</code></pre>
69`};default_rules.image=function(o,n,c,d,h){const m=o[n];return m.attrs[m.attrIndex("alt")][1]=h.renderInlineAsText(m.children,c,d),h.renderToken(o,n,c)};default_rules.hardbreak=function(o,n,c){return c.xhtmlOut?`<br />
70`:`<br>
71`};default_rules.softbreak=function(o,n,c){return c.breaks?c.xhtmlOut?`<br />
72`:`<br>
73`:`
74`};default_rules.text=function(o,n){return escapeHtml(o[n].content)};default_rules.html_block=function(o,n){return o[n].content};default_rules.html_inline=function(o,n){return o[n].content};function Renderer(){this.rules=assign$1({},default_rules)}Renderer.prototype.renderAttrs=function(n){let c,d,h;if(!n.attrs)return"";for(h="",c=0,d=n.attrs.length;c<d;c++)h+=" "+escapeHtml(n.attrs[c][0])+'="'+escapeHtml(n.attrs[c][1])+'"';return h};Renderer.prototype.renderToken=function(n,c,d){const h=n[c];let m="";if(h.hidden)return"";h.block&&h.nesting!==-1&&c&&n[c-1].hidden&&(m+=`
75`),m+=(h.nesting===-1?"</":"<")+h.tag,m+=this.renderAttrs(h),h.nesting===0&&d.xhtmlOut&&(m+=" /");let p=!1;if(h.block&&(p=!0,h.nesting===1&&c+1<n.length)){const w=n[c+1];(w.type==="inline"||w.hidden||w.nesting===-1&&w.tag===h.tag)&&(p=!1)}return m+=p?`>
76`:">",m};Renderer.prototype.renderInline=function(o,n,c){let d="";const h=this.rules;for(let m=0,p=o.length;m<p;m++){const w=o[m].type;typeof h[w]<"u"?d+=h[w](o,m,n,c,this):d+=this.renderToken(o,m,n)}return d};Renderer.prototype.renderInlineAsText=function(o,n,c){let d="";for(let h=0,m=o.length;h<m;h++)switch(o[h].type){case"text":d+=o[h].content;break;case"image":d+=this.renderInlineAsText(o[h].children,n,c);break;case"html_inline":case"html_block":d+=o[h].content;break;case"softbreak":case"hardbreak":d+=`
77`;break}return d};Renderer.prototype.render=function(o,n,c){let d="";const h=this.rules;for(let m=0,p=o.length;m<p;m++){const w=o[m].type;w==="inline"?d+=this.renderInline(o[m].children,n,c):typeof h[w]<"u"?d+=h[w](o,m,n,c,this):d+=this.renderToken(o,m,n,c)}return d};function Ruler(){this.__rules__=[],this.__cache__=null}Ruler.prototype.__find__=function(o){for(let n=0;n<this.__rules__.length;n++)if(this.__rules__[n].name===o)return n;return-1};Ruler.prototype.__compile__=function(){const o=this,n=[""];o.__rules__.forEach(function(c){c.enabled&&c.alt.forEach(function(d){n.indexOf(d)<0&&n.push(d)})}),o.__cache__={}
77,n.forEach(function(c){o.__cache__[c]=[],o.__rules__.forEach(function(d){d.enabled&&(c&&d.alt.indexOf(c)<0||o.__cache__[c].push(d.fn))})})};Ruler.prototype.at=function(o,n,c){const d=this.__find__(o),h=c||{};if(d===-1)throw new Error("Parser rule not found: "+o);this.__rules__[d].fn=n,this.__rules__[d].alt=h.alt||[],this.__cache__=null};Ruler.prototype.before=function(o,n,c,d){const h=this.__find__(o),m=d||{};if(h===-1)throw new Error("Parser rule not found: "+o);this.__rules__.splice(h,0,{name:n,enabled:!0,fn:c,alt:m.alt||[]}),this.__cache__=null};Ruler.prototype.after=function(o,n,c,d){const h=this.__find__(o),m=d||{};if(h===-1)throw new Error("Parser rule not found: "+o);this.__rules__.splice(h+1,0,{name:n,enabled:!0,fn:c,alt:m.alt||[]}),this.__cache__=null};Ruler.prototype.push=function(o,n,c){const d=c||{};this.__rules__.push({name:o,enabled:!0,fn:n,alt:d.alt||[]}),this.__cache__=null};Ruler.prototype.enable=function(o,n){Array.isArray(o)||(o=[o]);const c=[];return o.forEach(function(d){const h=this.__find__(d);if(h<0){if(n)return;throw new Error("Rules manager: invalid rule name "+d)}this.__rules__[h].enabled=!0,c.push(d)},this),this.__cache__=null,c};Ruler.prototype.enableOnly=function(o,n){Array.isArray(o)||(o=[o]),this.__rules__.forEach(function(c){c.enabled=!1}),this.enable(o,n)};Ruler.prototype.disable=function(o,n){Array.isArray(o)||(o=[o]);const c=[];return o.forEach(function(d){const h=this.__find__(d);if(h<0){if(n)return;throw new Error("Rules manager: invalid rule name "+d)}this.__rules__[h].enabled=!1,c.push(d)},this),this.__cache__=null,c};Ruler.prototype.getRules=function(o){return this.__cache__===null&&this.__compile__(),this.__cache__[o]||[]};function Token(o,n,c){this.type=o,this.tag=n,this.attrs=null,this.map=null,this.nesting=c,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}Token.prototype.attrIndex=function(n){if(!this.attrs)return-1;const c=this.attrs;for(let d=0,h=c.length;d<h;d++)if(c[d][0]===n)return d;return-1};Token.prototype.attrPush=function(n){this.attrs?this.attrs.push(n):this.attrs=[n]};Token.prototype.attrSet=function(n,c){const d=this.attrIndex(n),h=[n,c];d<0?this.attrPush(h):this.attrs[d]=h};Token.prototype.attrGet=function(n){const c=this.attrIndex(n);let d=null;return c>=0&&(d=this.attrs[c][1]),d};Token.prototype.attrJoin=function(n,c){const d=this.attrIndex(n);d<0?this.attrPush([n,c]):this.attrs[d][1]=this.attrs[d][1]+" "+c};function StateCore(o,n,c){this.src=o,this.env=c,this.tokens=[],this.inlineMode=!1,this.md=n}StateCore.prototype.Token=Token;const NEWLINES_RE=/\r\n?|\n/g,NULL_RE=/\0/g;function normalize$1(o){let n;n=o.src.replace(NEWLINES_RE,`
78`),n=n.replace(NULL_RE,"�"),o.src=n}function block(o){let n;o.inlineMode?(n=new o.Token("inline","",0),n.content=o.src,n.map=[0,1],n.children=[],o.tokens.push(n)):o.md.block.parse(o.src,o.md,o.env,o.tokens)}function inline(o){const n=o.tokens;for(let c=0,d=n.length;c<d;c++){const h=n[c];h.type==="inline"&&o.md.inline.parse(h.content,o.md,o.env,h.children)}}function isLinkOpen$1(o){return/^<a[>\s]/i.test(o)}function isLinkClose$1(o){return/^<\/a\s*>/i.test(o)}function linkify$1(o){const n=o.tokens;if(o.md.options.linkify)for(let c=0,d=n.length;c<d;c++){if(n[c].type!=="inline"||!o.md.linkify.pretest(n[c].content))continue;let h=n[c].children,m=0;for(let p=h.length-1;p>=0;p--){const w=h[p];if(w.type==="link_close"){for(p--;h[p].level!==w.level&&h[p].type!=="link_open";)p--;continue}if(w.type==="html_inline"&&(isLinkOpen$1(w.content)&&m>0&&m--,isLinkClose$1(w.content)&&m++),!(m>0)&&w.type==="text"&&o.md.linkify.test(w.content)){const z=w.content;let A=o.md.linkify.match(z);const y=[];let s=w.level,e=0;A.length>0&&A[0].index===0&&p>0&&h[p-1].type==="text_special"&&(A=A.slice(1));for(let f=0;f<A.length;f++){const g=A[f].url,R=o.md.normalizeLink(g);if(!o.md.validateLink(R))continue;let q=A[f].text;A[f].schema?A[f].schema==="mailto:"&&!/^mailto:/i.test(q)?q=o.md.normalizeLinkText("mailto:"+q).replace(/^mailto:/,""):q=o.md.normalizeLinkText(q):q=o.md.normalizeLinkText("http://"+q).replace(/^http:\/\//,"");const H=A[f].index;if(H>e){const ne=new o.Token("text","",0);ne.content=z.slice(e,H),ne.level=s,y.push(ne)}const te=new o.Token("link_open","a",1);te.attrs=[["href",R]],te.level=s++,te.markup="linkify",te.info="auto",y.push(te);const re=new o.Token("text","",0);re.content=q,re.level=s,y.push(re);const ae=new o.Token("link_close","a",-1);ae.level=--s,ae.markup="linkify",ae.info="auto",y.push(ae),e=A[f].lastIndex}if(e<z.length){const f=new o.Token("text","",0);f.content=z.slice(e),f.level=s,y.push(f)}n[c].children=h=arrayReplaceAt(h,p,y)}}}}const RARE_RE=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,SCOPED_ABBR_TEST_RE=/\((c|tm|r)\)/i,SCOPED_ABBR_RE=/\((c|tm|r)\)/ig,SCOPED_ABBR={c:"©",r:"®",tm:"™"};function replaceFn(o,n){return SCOPED_ABBR[n.toLowerCase()]}function replace_scoped(o){let n=0;for(let c=o.length-1;c>=0;c--){const d=o[c];d.type==="text"&&!n&&(d.content=d.content.replace(SCOPED_ABBR_RE,replaceFn)),d.type==="link_open"&&d.info==="auto"&&n--,d.type==="link_close"&&d.info==="auto"&&n++}}function replace_rare(o){let n=0;for(let c=o.length-1;c>=0;c--){const d=o[c];d.type==="text"&&!n&&RARE_RE.test(d.content)&&(d.content=d.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),d.type==="link_open"&&d.info==="auto"&&n--,d.type==="link_close"&&d.info==="auto"&&n++}}function replace(o){let n;if(o.md.options.typographer)for(n=o.tokens.length-1;n>=0;n--)o.tokens[n].type==="inline"&&(SCOPED_ABBR_TEST_RE.test(o.tokens[n].content)&&replace_scoped(o.tokens[n].children),RARE_RE.test(o.tokens[n].content)&&replace_rare(o.tokens[n].children))}
78const QUOTE_TEST_RE=/['"]/,QUOTE_RE=/['"]/g,APOSTROPHE="’";function replaceAt(o,n,c){return o.slice(0,n)+c+o.slice(n+1)}function process_inlines(o,n){let c;const d=[];for(let h=0;h<o.length;h++){const m=o[h],p=o[h].level;for(c=d.length-1;c>=0&&!(d[c].level<=p);c--);if(d.length=c+1,m.type!=="text")continue;let w=m.content,z=0,A=w.length;e:for(;z<A;){QUOTE_RE.lastIndex=z;const y=QUOTE_RE.exec(w);if(!y)break;let s=!0,e=!0;z=y.index+1;const f=y[0]==="'";let g=32;if(y.index-1>=0)g=w.charCodeAt(y.index-1);else for(c=h-1;c>=0&&!(o[c].type==="softbreak"||o[c].type==="hardbreak");c--)if(o[c].content){g=o[c].content.charCodeAt(o[c].content.length-1);break}let R=32;if(z<A)R=w.charCodeAt(z);else for(c=h+1;c<o.length&&!(o[c].type==="softbreak"||o[c].type==="hardbreak");c++)if(o[c].content){R=o[c].content.charCodeAt(0);break}const q=isMdAsciiPunct(g)||isPunctChar(String.fromCharCode(g)),H=isMdAsciiPunct(R)||isPunctChar(String.fromCharCode(R)),te=isWhiteSpace(g),re=isWhiteSpace(R);if(re?s=!1:H&&(te||q||(s=!1)),te?e=!1:q&&(re||H||(e=!1)),R===34&&y[0]==='"'&&g>=48&&g<=57&&(e=s=!1),s&&e&&(s=q,e=H),!s&&!e){f&&(m.content=replaceAt(m.content,y.index,APOSTROPHE));continue}if(e)for(c=d.length-1;c>=0;c--){let ae=d[c];if(d[c].level<p)break;if(ae.single===f&&d[c].level===p){ae=d[c];let ne,oe;f?(ne=n.md.options.quotes[2],oe=n.md.options.quotes[3]):(ne=n.md.options.quotes[0],oe=n.md.options.quotes[1]),m.content=replaceAt(m.content,y.index,oe),o[ae.token].content=replaceAt(o[ae.token].content,ae.pos,ne),z+=oe.length-1,ae.token===h&&(z+=ne.length-1),w=m.content,A=w.length,d.length=c;continue e}}s?d.push({token:h,pos:y.index,single:f,level:p}):e&&f&&(m.content=replaceAt(m.content,y.index,APOSTROPHE))}}}function smartquotes(o){if(o.md.options.typographer)for(let n=o.tokens.length-1;n>=0;n--)o.tokens[n].type!=="inline"||!QUOTE_TEST_RE.test(o.tokens[n].content)||process_inlines(o.tokens[n].children,o)}function text_join(o){let n,c;const d=o.tokens,h=d.length;for(let m=0;m<h;m++){if(d[m].type!=="inline")continue;const p=d[m].children,w=p.length;for(n=0;n<w;n++)p[n].type==="text_special"&&(p[n].type="text");for(n=c=0;n<w;n++)p[n].type==="text"&&n+1<w&&p[n+1].type==="text"?p[n+1].content=p[n].content+p[n+1].content:(n!==c&&(p[c]=p[n]),c++);n!==c&&(p.length=c)}}const _rules$2=[["normalize",normalize$1],["block",block],["inline",inline],["linkify",linkify$1],["replacements",replace],["smartquotes",smartquotes],["text_join",text_join]];function Core(){this.ruler=new Ruler;for(let o=0;o<_rules$2.length;o++)this.ruler.push(_rules$2[o][0],_rules$2[o][1])}Core.prototype.process=function(o){const n=this.ruler.getRules("");for(let c=0,d=n.length;c<d;c++)n[c](o)};Core.prototype.State=StateCore;function StateBlock(o,n,c,d){this.src=o,this.md=n,this.env=c,this.tokens=d,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const h=this.src;for(let m=0,p=0,w=0,z=0,A=h.length,y=!1;p<A;p++){const s=h.charCodeAt(p);if(!y)if(isSpace(s)){w++,s===9?z+=4-z%4:z++;continue}else y=!0;(s===10||p===A-1)&&(s!==10&&p++,this.bMarks.push(m),this.eMarks.push(p),this.tShift.push(w),this.sCount.push(z),this.bsCount.push(0),y=!1,w=0,z=0,m=p+1)}this.bMarks.push(h.length),this.eMarks.push(h.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}StateBlock.prototype.push=function(o,n,c){const d=new Token(o,n,c);return d.block=!0,c<0&&this.level--,d.level=this.level,c>0&&this.level++,this.tokens.push(d),d};StateBlock.prototype.isEmpty=function(n){return this.bMarks[n]+this.tShift[n]>=this.eMarks[n]};StateBlock.prototype.skipEmptyLines=function(n){for(let c=this.lineMax;n<c&&!(this.bMarks[n]+this.tShift[n]<this.eMarks[n]);n++);return n};StateBlock.prototype.skipSpaces=function(n){for(let c=this.src.length;n<c;n++){const d=this.src.charCodeAt(n);if(!isSpace(d))break}return n};StateBlock.prototype.skipSpacesBack=function(n,c){if(n<=c)return n;for(;n>c;)if(!isSpace(this.src.charCodeAt(--n)))return n+1;return n};StateBlock.prototype.skipChars=function(n,c){for(let d=this.src.length;
78n<d&&this.src.charCodeAt(n)===c;n++);return n};StateBlock.prototype.skipCharsBack=function(n,c,d){if(n<=d)return n;for(;n>d;)if(c!==this.src.charCodeAt(--n))return n+1;return n};StateBlock.prototype.getLines=function(n,c,d,h){if(n>=c)return"";const m=new Array(c-n);for(let p=0,w=n;w<c;w++,p++){let z=0;const A=this.bMarks[w];let y=A,s;for(w+1<c||h?s=this.eMarks[w]+1:s=this.eMarks[w];y<s&&z<d;){const e=this.src.charCodeAt(y);if(isSpace(e))e===9?z+=4-(z+this.bsCount[w])%4:z++;else if(y-A<this.tShift[w])z++;else break;y++}z>d?m[p]=new Array(z-d+1).join(" ")+this.src.slice(y,s):m[p]=this.src.slice(y,s)}return m.join("")};StateBlock.prototype.Token=Token;const MAX_AUTOCOMPLETED_CELLS=65536;function getLine(o,n){const c=o.bMarks[n]+o.tShift[n],d=o.eMarks[n];return o.src.slice(c,d)}function escapedSplit(o){const n=[],c=o.length;let d=0,h=o.charCodeAt(d),m=!1,p=0,w="";for(;d<c;)h===124&&(m?(w+=o.substring(p,d-1),p=d):(n.push(w+o.substring(p,d)),w="",p=d+1)),m=h===92,d++,h=o.charCodeAt(d);return n.push(w+o.substring(p)),n}function table(o,n,c,d){if(n+2>c)return!1;let h=n+1;if(o.sCount[h]<o.blkIndent||o.sCount[h]-o.blkIndent>=4)return!1;let m=o.bMarks[h]+o.tShift[h];if(m>=o.eMarks[h])return!1;const p=o.src.charCodeAt(m++);if(p!==124&&p!==45&&p!==58||m>=o.eMarks[h])return!1;const w=o.src.charCodeAt(m++);if(w!==124&&w!==45&&w!==58&&!isSpace(w)||p===45&&isSpace(w))return!1;for(;m<o.eMarks[h];){const ae=o.src.charCodeAt(m);if(ae!==124&&ae!==45&&ae!==58&&!isSpace(ae))return!1;m++}let z=getLine(o,n+1),A=z.split("|");const y=[];for(let ae=0;ae<A.length;ae++){const ne=A[ae].trim();if(!ne){if(ae===0||ae===A.length-1)continue;return!1}if(!/^:?-+:?$/.test(ne))return!1;ne.charCodeAt(ne.length-1)===58?y.push(ne.charCodeAt(0)===58?"center":"right"):ne.charCodeAt(0)===58?y.push("left"):y.push("")}if(z=getLine(o,n).trim(),z.indexOf("|")===-1||o.sCount[n]-o.blkIndent>=4)return!1;A=escapedSplit(z),A.length&&A[0]===""&&A.shift(),A.length&&A[A.length-1]===""&&A.pop();const s=A.length;if(s===0||s!==y.length)return!1;if(d)return!0;const e=o.parentType;o.parentType="table";const f=o.md.block.ruler.getRules("blockquote"),g=o.push("table_open","table",1),R=[n,0];g.map=R;const q=o.push("thead_open","thead",1);q.map=[n,n+1];const H=o.push("tr_open","tr",1);H.map=[n,n+1];for(let ae=0;ae<A.length;ae++){const ne=o.push("th_open","th",1);y[ae]&&(ne.attrs=[["style","text-align:"+y[ae]]]);const oe=o.push("inline","",0);oe.content=A[ae].trim(),oe.children=[],o.push("th_close","th",-1)}o.push("tr_close","tr",-1),o.push("thead_close","thead",-1);let te,re=0;for(h=n+2;h<c&&!(o.sCount[h]<o.blkIndent);h++){let ae=!1;for(let oe=0,le=f.length;oe<le;oe++)if(f[oe](o,h,c,!0)){ae=!0;break}if(ae||(z=getLine(o,h).trim(),!z)||o.sCount[h]-o.blkIndent>=4||(A=escapedSplit(z),A.length&&A[0]===""&&A.shift(),A.length&&A[A.length-1]===""&&A.pop(),re+=s-A.length,re>MAX_AUTOCOMPLETED_CELLS))break;if(h===n+2){const oe=o.push("tbody_open","tbody",1);oe.map=te=[n+2,0]}const ne=o.push("tr_open","tr",1);ne.map=[h,h+1];for(let oe=0;oe<s;oe++){const le=o.push("td_open","td",1);y[oe]&&(le.attrs=[["style","text-align:"+y[oe]]]);const ce=o.push("inline","",0);ce.content=A[oe]?A[oe].trim():"",ce.children=[],o.push("td_close","td",-1)}o.push("tr_close","tr",-1)}return te&&(o.push("tbody_close","tbody",-1),te[1]=h),o.push("table_close","table",-1),R[1]=h,o.parentType=e,o.line=h,!0}function code(o,n,c){if(o.sCount[n]-o.blkIndent<4)return!1;let d=n+1,h=d;for(;d<c;){if(o.isEmpty(d)){d++;continue}if(o.sCount[d]-o.blkIndent>=4){d++,h=d;continue}break}o.line=h;const m=o.push("code_block","code",0);return m.content=o.getLines(n,h,4+o.blkIndent,!1)+`
79`,m.map=[n,o.line],!0}function fence(o,n,c,d){let h=o.bMarks[n]+o.tShift[n],m=o.eMarks[n];if(o.sCount[n]-o.blkIndent>=4||h+3>m)return!1;const p=o.src.charCodeAt(h);if(p!==126&&p!==96)return!1;let w=h;h=o.skipChars(h,p);let z=h-w;if(z<3)return!1;const A=o.src.slice(w,h),y=o.src.slice(h,m);if(p===96&&y.indexOf(String.fromCharCode(p))>=0)return!1;if(d)return!0;let s=n,e=!1;for(;s++,!(s>=c||(h=w=o.bMarks[s]+o.tShift[s],m=o.eMarks[s],h<m&&o.sCount[s]<o.blkIndent));
79)if(o.src.charCodeAt(h)===p&&!(o.sCount[s]-o.blkIndent>=4)&&(h=o.skipChars(h,p),!(h-w<z)&&(h=o.skipSpaces(h),!(h<m)))){e=!0;break}z=o.sCount[n],o.line=s+(e?1:0);const f=o.push("fence","code",0);return f.info=y,f.content=o.getLines(n+1,s,z,!0),f.markup=A,f.map=[n,o.line],!0}function blockquote(o,n,c,d){let h=o.bMarks[n]+o.tShift[n],m=o.eMarks[n];const p=o.lineMax;if(o.sCount[n]-o.blkIndent>=4||o.src.charCodeAt(h)!==62)return!1;if(d)return!0;const w=[],z=[],A=[],y=[],s=o.md.block.ruler.getRules("blockquote"),e=o.parentType;o.parentType="blockquote";let f=!1,g;for(g=n;g<c;g++){const re=o.sCount[g]<o.blkIndent;if(h=o.bMarks[g]+o.tShift[g],m=o.eMarks[g],h>=m)break;if(o.src.charCodeAt(h++)===62&&!re){let ne=o.sCount[g]+1,oe,le;o.src.charCodeAt(h)===32?(h++,ne++,le=!1,oe=!0):o.src.charCodeAt(h)===9?(oe=!0,(o.bsCount[g]+ne)%4===3?(h++,ne++,le=!1):le=!0):oe=!1;let ce=ne;for(w.push(o.bMarks[g]),o.bMarks[g]=h;h<m;){const ue=o.src.charCodeAt(h);if(isSpace(ue))ue===9?ce+=4-(ce+o.bsCount[g]+(le?1:0))%4:ce++;else break;h++}f=h>=m,z.push(o.bsCount[g]),o.bsCount[g]=o.sCount[g]+1+(oe?1:0),A.push(o.sCount[g]),o.sCount[g]=ce-ne,y.push(o.tShift[g]),o.tShift[g]=h-o.bMarks[g];continue}if(f)break;let ae=!1;for(let ne=0,oe=s.length;ne<oe;ne++)if(s[ne](o,g,c,!0)){ae=!0;break}if(ae){o.lineMax=g,o.blkIndent!==0&&(w.push(o.bMarks[g]),z.push(o.bsCount[g]),y.push(o.tShift[g]),A.push(o.sCount[g]),o.sCount[g]-=o.blkIndent);break}w.push(o.bMarks[g]),z.push(o.bsCount[g]),y.push(o.tShift[g]),A.push(o.sCount[g]),o.sCount[g]=-1}const R=o.blkIndent;o.blkIndent=0;const q=o.push("blockquote_open","blockquote",1);q.markup=">";const H=[n,0];q.map=H,o.md.block.tokenize(o,n,g);const te=o.push("blockquote_close","blockquote",-1);te.markup=">",o.lineMax=p,o.parentType=e,H[1]=o.line;for(let re=0;re<y.length;re++)o.bMarks[re+n]=w[re],o.tShift[re+n]=y[re],o.sCount[re+n]=A[re],o.bsCount[re+n]=z[re];return o.blkIndent=R,!0}function hr(o,n,c,d){const h=o.eMarks[n];if(o.sCount[n]-o.blkIndent>=4)return!1;let m=o.bMarks[n]+o.tShift[n];const p=o.src.charCodeAt(m++);if(p!==42&&p!==45&&p!==95)return!1;let w=1;for(;m<h;){const A=o.src.charCodeAt(m++);if(A!==p&&!isSpace(A))return!1;A===p&&w++}if(w<3)return!1;if(d)return!0;o.line=n+1;const z=o.push("hr","hr",0);return z.map=[n,o.line],z.markup=Array(w+1).join(String.fromCharCode(p)),!0}function skipBulletListMarker(o,n){const c=o.eMarks[n];let d=o.bMarks[n]+o.tShift[n];const h=o.src.charCodeAt(d++);if(h!==42&&h!==45&&h!==43)return-1;if(d<c){const m=o.src.charCodeAt(d);if(!isSpace(m))return-1}return d}function skipOrderedListMarker(o,n){const c=o.bMarks[n]+o.tShift[n],d=o.eMarks[n];let h=c;if(h+1>=d)return-1;let m=o.src.charCodeAt(h++);if(m<48||m>57)return-1;for(;;){if(h>=d)return-1;if(m=o.src.charCodeAt(h++),m>=48&&m<=57){if(h-c>=10)return-1;continue}if(m===41||m===46)break;return-1}return h<d&&(m=o.src.charCodeAt(h),!isSpace(m))?-1:h}function markTightParagraphs(o,n){const c=o.level+2;for(let d=n+2,h=o.tokens.length-2;d<h;d++)o.tokens[d].level===c&&o.tokens[d].type==="paragraph_open"&&(o.tokens[d+2].hidden=!0,o.tokens[d].hidden=!0,d+=2)}function list(o,n,c,d){let h,m,p,w,z=n,A=!0;if(o.sCount[z]-o.blkIndent>=4||o.listIndent>=0&&o.sCount[z]-o.listIndent>=4&&o.sCount[z]<o.blkIndent)return!1;let y=!1;d&&o.parentType==="paragraph"&&o.sCount[z]>=o.blkIndent&&(y=!0);let s,e,f;if((f=skipOrderedListMarker(o,z))>=0){if(s=!0,p=o.bMarks[z]+o.tShift[z],e=Number(o.src.slice(p,f-1)),y&&e!==1)return!1}else if((f=skipBulletListMarker(o,z))>=0)s=!1;else return!1;if(y&&o.skipSpaces(f)>=o.eMarks[z])return!1;if(d)return!0;const g=o.src.charCodeAt(f-1),R=o.tokens.length;s?(w=o.push("ordered_list_open","ol",1),e!==1&&(w.attrs=[["start",e]])):w=o.push("bullet_list_open","ul",1);const q=[z,0];w.map=q,w.markup=String.fromCharCode(g);let H=!1;const te=o.md.block.ruler.getRules("list"),re=o.parentType;for(o.parentType="list";z<c;){m=f,h=o.eMarks[z];const ae=o.sCount[z]+f-(o.bMarks[z]+o.tShift[z]);let ne=ae;for(;m<h;){const Le=o.src.charCodeAt(m);if(Le===9)ne+=4-(ne+o.bsCount[z])%4;else if(Le===32)ne++;else break;m++}const oe=m;let le;oe>=h?le=1:le=ne-ae,le>4&&(le=1);const ce=ae+le;w=o.push("list_item_open","li",1),w.markup=String.fromCharCode(g);const ue=[z,0];w.map=ue,s&&(w.info=o.src.slice(p,f-1));const he=o.tight,ge=o.tShift[z],Oe=o.sCount[z],$e=o.listIndent;if(o.listIndent=o.blkIndent,o.blkIndent=ce,o.tight=!0,o.tShift[z]=oe-o.bMarks[z],o.sCount[z]=ne,oe>=h&&o.isEmpty(z+1)?o.line=Math.min(o.line+2,c):o.md.block.tokenize(o,z,c,!0),(!o.tight||H)&&(A=!1),H=o.line-z>1&&o.isEmpty(o.line-1),o.blkIndent=o.listIndent,o.listIndent=$e,o.tShift[z]=ge,o.sCount[z]=Oe,o.tight=he,w=o.push("list_item_close","li",-1),w.markup=String.fromCharCode(g),z=o.line,ue[1]=z,z>=c||o.sCount[z]<o.blkIndent||o.sCount[z]-o.blkIndent>=4)break;let Pe=!1;for(let Le=0,me=te.length;Le<me;Le++)if(te[Le](o,z,c,!0)){Pe=!0;break}if(Pe)break;
79if(s){if(f=skipOrderedListMarker(o,z),f<0)break;p=o.bMarks[z]+o.tShift[z]}else if(f=skipBulletListMarker(o,z),f<0)break;if(g!==o.src.charCodeAt(f-1))break}return s?w=o.push("ordered_list_close","ol",-1):w=o.push("bullet_list_close","ul",-1),w.markup=String.fromCharCode(g),q[1]=z,o.line=z,o.parentType=re,A&&markTightParagraphs(o,R),!0}function reference(o,n,c,d){let h=o.bMarks[n]+o.tShift[n],m=o.eMarks[n],p=n+1;if(o.sCount[n]-o.blkIndent>=4||o.src.charCodeAt(h)!==91)return!1;function w(te){const re=o.lineMax;if(te>=re||o.isEmpty(te))return null;let ae=!1;if(o.sCount[te]-o.blkIndent>3&&(ae=!0),o.sCount[te]<0&&(ae=!0),!ae){const le=o.md.block.ruler.getRules("reference"),ce=o.parentType;o.parentType="reference";let ue=!1;for(let he=0,ge=le.length;he<ge;he++)if(le[he](o,te,re,!0)){ue=!0;break}if(o.parentType=ce,ue)return null}const ne=o.bMarks[te]+o.tShift[te],oe=o.eMarks[te];return o.src.slice(ne,oe+1)}let z=o.src.slice(h,m+1);m=z.length;let A=-1;for(h=1;h<m;h++){const te=z.charCodeAt(h);if(te===91)return!1;if(te===93){A=h;break}else if(te===10){const re=w(p);re!==null&&(z+=re,m=z.length,p++)}else if(te===92&&(h++,h<m&&z.charCodeAt(h)===10)){const re=w(p);re!==null&&(z+=re,m=z.length,p++)}}if(A<0||z.charCodeAt(A+1)!==58)return!1;for(h=A+2;h<m;h++){const te=z.charCodeAt(h);if(te===10){const re=w(p);re!==null&&(z+=re,m=z.length,p++)}else if(!isSpace(te))break}const y=o.md.helpers.parseLinkDestination(z,h,m);if(!y.ok)return!1;const s=o.md.normalizeLink(y.str);if(!o.md.validateLink(s))return!1;h=y.pos;const e=h,f=p,g=h;for(;h<m;h++){const te=z.charCodeAt(h);if(te===10){const re=w(p);re!==null&&(z+=re,m=z.length,p++)}else if(!isSpace(te))break}let R=o.md.helpers.parseLinkTitle(z,h,m);for(;R.can_continue;){const te=w(p);if(te===null)break;z+=te,h=m,m=z.length,p++,R=o.md.helpers.parseLinkTitle(z,h,m,R)}let q;for(h<m&&g!==h&&R.ok?(q=R.str,h=R.pos):(q="",h=e,p=f);h<m;){const te=z.charCodeAt(h);if(!isSpace(te))break;h++}if(h<m&&z.charCodeAt(h)!==10&&q)for(q="",h=e,p=f;h<m;){const te=z.charCodeAt(h);if(!isSpace(te))break;h++}if(h<m&&z.charCodeAt(h)!==10)return!1;const H=normalizeReference(z.slice(1,A));return H?(d||(typeof o.env.references>"u"&&(o.env.references={}),typeof o.env.references[H]>"u"&&(o.env.references[H]={title:q,href:s}),o.line=p),!0):!1}const block_names=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],attr_name="[a-zA-Z_:][a-zA-Z0-9:._-]*",unquoted="[^\"'=<>`\\x00-\\x20]+",single_quoted="'[^']*'",double_quoted='"[^"]*"',attr_value="(?:"+unquoted+"|"+single_quoted+"|"+double_quoted+")",attribute="(?:\\s+"+attr_name+"(?:\\
79s*=\\s*"+attr_value+")?)",open_tag="<[A-Za-z][A-Za-z0-9\\-]*"+attribute+"*\\s*\\/?>",close_tag="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",comment="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",processing="<[?][\\s\\S]*?[?]>",declaration="<![A-Za-z][^>]*>",cdata="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",HTML_TAG_RE=new RegExp("^(?:"+open_tag+"|"+close_tag+"|"+comment+"|"+processing+"|"+declaration+"|"+cdata+")"),HTML_OPEN_CLOSE_TAG_RE=new RegExp("^(?:"+open_tag+"|"+close_tag+")"),HTML_SEQUENCES=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+block_names.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(HTML_OPEN_CLOSE_TAG_RE.source+"\\s*$"),/^$/,!1]];function html_block(o,n,c,d){let h=o.bMarks[n]+o.tShift[n],m=o.eMarks[n];if(o.sCount[n]-o.blkIndent>=4||!o.md.options.html||o.src.charCodeAt(h)!==60)return!1;let p=o.src.slice(h,m),w=0;for(;w<HTML_SEQUENCES.length&&!HTML_SEQUENCES[w][0].test(p);w++);if(w===HTML_SEQUENCES.length)return!1;if(d)return HTML_SEQUENCES[w][2];let z=n+1;if(!HTML_SEQUENCES[w][1].test(p)){for(;z<c&&!(o.sCount[z]<o.blkIndent);z++)if(h=o.bMarks[z]+o.tShift[z],m=o.eMarks[z],p=o.src.slice(h,m),HTML_SEQUENCES[w][1].test(p)){p.length!==0&&z++;break}}o.line=z;const A=o.push("html_block","",0);return A.map=[n,z],A.content=o.getLines(n,z,o.blkIndent,!0),!0}function heading(o,n,c,d){let h=o.bMarks[n]+o.tShift[n],m=o.eMarks[n];if(o.sCount[n]-o.blkIndent>=4)return!1;let p=o.src.charCodeAt(h);if(p!==35||h>=m)return!1;let w=1;for(p=o.src.charCodeAt(++h);p===35&&h<m&&w<=6;)w++,p=o.src.charCodeAt(++h);if(w>6||h<m&&!isSpace(p))return!1;if(d)return!0;m=o.skipSpacesBack(m,h);const z=o.skipCharsBack(m,35,h);z>h&&isSpace(o.src.charCodeAt(z-1))&&(m=z),o.line=n+1;const A=o.push("heading_open","h"+String(w),1);A.markup="########".slice(0,w),A.map=[n,o.line];const y=o.push("inline","",0);y.content=o.src.slice(h,m).trim(),y.map=[n,o.line],y.children=[];const s=o.push("heading_close","h"+String(w),-1);return s.markup="########".slice(0,w),!0}function lheading(o,n,c){const d=o.md.block.ruler.getRules("paragraph");if(o.sCount[n]-o.blkIndent>=4)return!1;const h=o.parentType;o.parentType="paragraph";let m=0,p,w=n+1;for(;w<c&&!o.isEmpty(w);w++){if(o.sCount[w]-o.blkIndent>3)continue;if(o.sCount[w]>=o.blkIndent){let f=o.bMarks[w]+o.tShift[w];const g=o.eMarks[w];if(f<g&&(p=o.src.charCodeAt(f),(p===45||p===61)&&(f=o.skipChars(f,p),f=o.skipSpaces(f),f>=g))){m=p===61?1:2;break}}if(o.sCount[w]<0)continue;let e=!1;for(let f=0,g=d.length;f<g;f++)if(d[f](o,w,c,!0)){e=!0;break}if(e)break}if(!m)return!1;const z=o.getLines(n,w,o.blkIndent,!1).trim();o.line=w+1;const A=o.push("heading_open","h"+String(m),1);A.markup=String.fromCharCode(p),A.map=[n,o.line];const y=o.push("inline","",0);y.content=z,y.map=[n,o.line-1],y.children=[];const s=o.push("heading_close","h"+String(m),-1);return s.markup=String.fromCharCode(p),o.parentType=h,!0}function paragraph(o,n,c){const d=o.md.block.ruler.getRules("paragraph"),h=o.parentType;let m=n+1;for(o.parentType="paragraph";m<c&&!o.isEmpty(m);m++){if(o.sCount[m]-o.blkIndent>3||o.sCount[m]<0)continue;let A=!1;for(let y=0,s=d.length;y<s;y++)if(d[y](o,m,c,!0)){A=!0;break}if(A)break}const p=o.getLines(n,m,o.blkIndent,!1).trim();o.line=m;const w=o.push("paragraph_open","p",1);w.map=[n,o.line];const z=o.push("inline","",0);return z.content=p,z.map=[n,o.line],z.children=[],o.push("paragraph_close","p",-1),o.parentType=h,!0}const _rules$1=[["table",table,["paragraph","reference"]],["code",code],["fence",fence,["paragraph","reference","blockquote","list"]],["blockquote",blockquote,["paragraph","reference","blockquote","list"]],["hr",hr,["paragraph","reference","blockquote","list"]],["list",list,["paragraph","reference","blockquote"]],["reference",reference],["html_block",html_block,["paragraph","reference","blockquote"]],["heading",heading,["paragraph","reference","blockquote"]],["lheading",lheading],["paragraph",paragraph]];function ParserBlock(){this.ruler=new Ruler;for(let o=0;o<_rules$1.length;o++)this.ruler.push(_rules$1[o][0],_rules$1[o][1],{alt:(_rules$1[o][2]||[]).slice()})}ParserBlock.prototype.tokenize=function(o,n,c){const d=this.ruler.getRules(""),h=d.length,m=o.md.options.maxNesting;let p=n,w=!1;for(;p<c&&(o.line=p=o.skipEmptyLines(p),!(p>=c||o.sCount[p]<o.blkIndent));){if(o.level>=m){o.line=c;break}const z=o.line;let A=!1;for(let y=0;y<h;y++)if(A=d[y](o,p,c,!1),A){if(z>=o.line)throw new Error("block rule didn't increment state.line");break}if(!A)throw new Error("none of the block rules matched");o.tight=!w,o.isEmpty(o.line-1)&&(w=!0),p=o.line,p<c&&o.isEmpty(p)&&(w=!0,p++,o.line=p)}};ParserBlock.prototype.parse=function(o,n,c,d){if(!o)return;
79const h=new this.State(o,n,c,d);this.tokenize(h,h.line,h.lineMax)};ParserBlock.prototype.State=StateBlock;function StateInline(o,n,c,d){this.src=o,this.env=c,this.md=n,this.tokens=d,this.tokens_meta=Array(d.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}StateInline.prototype.pushPending=function(){const o=new Token("text","",0);return o.content=this.pending,o.level=this.pendingLevel,this.tokens.push(o),this.pending="",o};StateInline.prototype.push=function(o,n,c){this.pending&&this.pushPending();const d=new Token(o,n,c);let h=null;return c<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),d.level=this.level,c>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],h={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(d),this.tokens_meta.push(h),d};StateInline.prototype.scanDelims=function(o,n){const c=this.posMax,d=this.src.charCodeAt(o),h=o>0?this.src.charCodeAt(o-1):32;let m=o;for(;m<c&&this.src.charCodeAt(m)===d;)m++;const p=m-o,w=m<c?this.src.charCodeAt(m):32,z=isMdAsciiPunct(h)||isPunctChar(String.fromCharCode(h)),A=isMdAsciiPunct(w)||isPunctChar(String.fromCharCode(w)),y=isWhiteSpace(h),s=isWhiteSpace(w),e=!s&&(!A||y||z),f=!y&&(!z||s||A);return{can_open:e&&(n||!f||z),can_close:f&&(n||!e||A),length:p}};StateInline.prototype.Token=Token;function isTerminatorChar(o){switch(o){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function text(o,n){let c=o.pos;for(;c<o.posMax&&!isTerminatorChar(o.src.charCodeAt(c));)c++;return c===o.pos?!1:(n||(o.pending+=o.src.slice(o.pos,c)),o.pos=c,!0)}const SCHEME_RE=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function linkify(o,n){if(!o.md.options.linkify||o.linkLevel>0)return!1;const c=o.pos,d=o.posMax;if(c+3>d||o.src.charCodeAt(c)!==58||o.src.charCodeAt(c+1)!==47||o.src.charCodeAt(c+2)!==47)return!1;const h=o.pending.match(SCHEME_RE);if(!h)return!1;const m=h[1],p=o.md.linkify.matchAtStart(o.src.slice(c-m.length));if(!p)return!1;let w=p.url;if(w.length<=m.length)return!1;let z=w.length;for(;z>0&&w.charCodeAt(z-1)===42;)z--;z!==w.length&&(w=w.slice(0,z));const A=o.md.normalizeLink(w);if(!o.md.validateLink(A))return!1;if(!n){o.pending=o.pending.slice(0,-m.length);const y=o.push("link_open","a",1);y.attrs=[["href",A]],y.markup="linkify",y.info="auto";const s=o.push("text","",0);s.content=o.md.normalizeLinkText(w);const e=o.push("link_close","a",-1);e.markup="linkify",e.info="auto"}return o.pos+=w.length-m.length,!0}function newline(o,n){let c=o.pos;if(o.src.charCodeAt(c)!==10)return!1;const d=o.pending.length-1,h=o.posMax;if(!n)if(d>=0&&o.pending.charCodeAt(d)===32)if(d>=1&&o.pending.charCodeAt(d-1)===32){let m=d-1;for(;m>=1&&o.pending.charCodeAt(m-1)===32;)m--;o.pending=o.pending.slice(0,m),o.push("hardbreak","br",0)}else o.pending=o.pending.slice(0,-1),o.push("softbreak","br",0);else o.push("softbreak","br",0);for(c++;c<h&&isSpace(o.src.charCodeAt(c));)c++;return o.pos=c,!0}const ESCAPED=[];for(let o=0;o<256;o++)ESCAPED.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(o){ESCAPED[o.charCodeAt(0)]=1});function escape$1(o,n){let c=o.pos;const d=o.posMax;if(o.src.charCodeAt(c)!==92||(c++,c>=d))return!1;let h=o.src.charCodeAt(c);if(h===10){for(n||o.push("hardbreak","br",0),c++;c<d&&(h=o.src.charCodeAt(c),!!isSpace(h));)c++;return o.pos=c,!0}let m=o.src[c];if(h>=55296&&h<=56319&&c+1<d){const w=o.src.charCodeAt(c+1);w>=56320&&w<=57343&&(m+=o.src[c+1],c++)}const p="\\"+m;if(!n){const w=o.push("text_special","",0);h<256&&ESCAPED[h]!==0?w.content=m:w.content=p,w.markup=p,w.info="escape"}return o.pos=c+1,!0}function backtick(o,n){let c=o.pos;if(o.src.charCodeAt(c)!==96)return!1;const h=c;c++;const m=o.posMax;for(;c<m&&o.src.charCodeAt(c)===96;)c++;const p=o.src.slice(h,c),w=p.length;if(o.backticksScanned&&(o.backticks[w]||0)<=h)return n||(o.pending+=p),o.pos+=w,!0;let z=c,A;
79for(;(A=o.src.indexOf("`",z))!==-1;){for(z=A+1;z<m&&o.src.charCodeAt(z)===96;)z++;const y=z-A;if(y===w){if(!n){const s=o.push("code_inline","code",0);s.markup=p,s.content=o.src.slice(c,A).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return o.pos=z,!0}o.backticks[y]=A}return o.backticksScanned=!0,n||(o.pending+=p),o.pos+=w,!0}function strikethrough_tokenize(o,n){const c=o.pos,d=o.src.charCodeAt(c);if(n||d!==126)return!1;const h=o.scanDelims(o.pos,!0);let m=h.length;const p=String.fromCharCode(d);if(m<2)return!1;let w;m%2&&(w=o.push("text","",0),w.content=p,m--);for(let z=0;z<m;z+=2)w=o.push("text","",0),w.content=p+p,o.delimiters.push({marker:d,length:0,token:o.tokens.length-1,end:-1,open:h.can_open,close:h.can_close});return o.pos+=h.length,!0}function postProcess$1(o,n){let c;const d=[],h=n.length;for(let m=0;m<h;m++){const p=n[m];if(p.marker!==126||p.end===-1)continue;const w=n[p.end];c=o.tokens[p.token],c.type="s_open",c.tag="s",c.nesting=1,c.markup="~~",c.content="",c=o.tokens[w.token],c.type="s_close",c.tag="s",c.nesting=-1,c.markup="~~",c.content="",o.tokens[w.token-1].type==="text"&&o.tokens[w.token-1].content==="~"&&d.push(w.token-1)}for(;d.length;){const m=d.pop();let p=m+1;for(;p<o.tokens.length&&o.tokens[p].type==="s_close";)p++;p--,m!==p&&(c=o.tokens[p],o.tokens[p]=o.tokens[m],o.tokens[m]=c)}}function strikethrough_postProcess(o){const n=o.tokens_meta,c=o.tokens_meta.length;postProcess$1(o,o.delimiters);for(let d=0;d<c;d++)n[d]&&n[d].delimiters&&postProcess$1(o,n[d].delimiters)}const r_strikethrough={tokenize:strikethrough_tokenize,postProcess:strikethrough_postProcess};function emphasis_tokenize(o,n){const c=o.pos,d=o.src.charCodeAt(c);if(n||d!==95&&d!==42)return!1;const h=o.scanDelims(o.pos,d===42);for(let m=0;m<h.length;m++){const p=o.push("text","",0);p.content=String.fromCharCode(d),o.delimiters.push({marker:d,length:h.length,token:o.tokens.length-1,end:-1,open:h.can_open,close:h.can_close})}return o.pos+=h.length,!0}function postProcess(o,n){const c=n.length;for(let d=c-1;d>=0;d--){const h=n[d];if(h.marker!==95&&h.marker!==42||h.end===-1)continue;const m=n[h.end],p=d>0&&n[d-1].end===h.end+1&&n[d-1].marker===h.marker&&n[d-1].token===h.token-1&&n[h.end+1].token===m.token+1,w=String.fromCharCode(h.marker),z=o.tokens[h.token];z.type=p?"strong_open":"em_open",z.tag=p?"strong":"em",z.nesting=1,z.markup=p?w+w:w,z.content="";const A=o.tokens[m.token];A.type=p?"strong_close":"em_close",A.tag=p?"strong":"em",A.nesting=-1,A.markup=p?w+w:w,A.content="",p&&(o.tokens[n[d-1].token].content="",o.tokens[n[h.end+1].token].content="",d--)}}function emphasis_post_process(o){const n=o.tokens_meta,c=o.tokens_meta.length;postProcess(o,o.delimiters);for(let d=0;d<c;d++)n[d]&&n[d].delimiters&&postProcess(o,n[d].delimiters)}const r_emphasis={tokenize:emphasis_tokenize,postProcess:emphasis_post_process};function link$1(o,n){let c,d,h,m,p="",w="",z=o.pos,A=!0;if(o.src.charCodeAt(o.pos)!==91)return!1;const y=o.pos,s=o.posMax,e=o.pos+1,f=o.md.helpers.parseLinkLabel(o,o.pos,!0);if(f<0)return!1;let g=f+1;if(g<s&&o.src.charCodeAt(g)===40){for(A=!1,g++;g<s&&(c=o.src.charCodeAt(g),!(!isSpace(c)&&c!==10));g++);if(g>=s)return!1;if(z=g,h=o.md.helpers.parseLinkDestination(o.src,g,o.posMax),h.ok){for(p=o.md.normalizeLink(h.str),o.md.validateLink(p)?g=h.pos:p="",z=g;g<s&&(c=o.src.charCodeAt(g),!(!isSpace(c)&&c!==10));g++);if(h=o.md.helpers.parseLinkTitle(o.src,g,o.posMax),g<s&&z!==g&&h.ok)for(w=h.str,g=h.pos;g<s&&(c=o.src.charCodeAt(g),!(!isSpace(c)&&c!==10));g++);}(g>=s||o.src.charCodeAt(g)!==41)&&(A=!0),g++}if(A){if(typeof o.env.references>"u")return!1;if(g<s&&o.src.charCodeAt(g)===91?(z=g+1,g=o.md.helpers.parseLinkLabel(o,g),g>=0?d=o.src.slice(z,g++):g=f+1):g=f+1,d||(d=o.src.slice(e,f)),m=o.env.references[normalizeReference(d)],!m)return o.pos=y,!1;p=m.href,w=m.title}if(!n){o.pos=e,o.posMax=f;const R=o.push("link_open","a",1),q=[["href",p]];R.attrs=q,w&&q.push(["title",w]),o.linkLevel++,o.md.inline.tokenize(o),o.linkLevel--,o.push("link_close","a",-1)}return o.pos=g,o.posMax=s,!0}function image(o,n){let c,d,h,m,p,w,z,A,y="";const s=o.pos,e=o.posMax;
79if(o.src.charCodeAt(o.pos)!==33||o.src.charCodeAt(o.pos+1)!==91)return!1;const f=o.pos+2,g=o.md.helpers.parseLinkLabel(o,o.pos+1,!1);if(g<0)return!1;if(m=g+1,m<e&&o.src.charCodeAt(m)===40){for(m++;m<e&&(c=o.src.charCodeAt(m),!(!isSpace(c)&&c!==10));m++);if(m>=e)return!1;for(A=m,w=o.md.helpers.parseLinkDestination(o.src,m,o.posMax),w.ok&&(y=o.md.normalizeLink(w.str),o.md.validateLink(y)?m=w.pos:y=""),A=m;m<e&&(c=o.src.charCodeAt(m),!(!isSpace(c)&&c!==10));m++);if(w=o.md.helpers.parseLinkTitle(o.src,m,o.posMax),m<e&&A!==m&&w.ok)for(z=w.str,m=w.pos;m<e&&(c=o.src.charCodeAt(m),!(!isSpace(c)&&c!==10));m++);else z="";if(m>=e||o.src.charCodeAt(m)!==41)return o.pos=s,!1;m++}else{if(typeof o.env.references>"u")return!1;if(m<e&&o.src.charCodeAt(m)===91?(A=m+1,m=o.md.helpers.parseLinkLabel(o,m),m>=0?h=o.src.slice(A,m++):m=g+1):m=g+1,h||(h=o.src.slice(f,g)),p=o.env.references[normalizeReference(h)],!p)return o.pos=s,!1;y=p.href,z=p.title}if(!n){d=o.src.slice(f,g);const R=[];o.md.inline.parse(d,o.md,o.env,R);const q=o.push("image","img",0),H=[["src",y],["alt",""]];q.attrs=H,q.children=R,q.content=d,z&&H.push(["title",z])}return o.pos=m,o.posMax=e,!0}const EMAIL_RE=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,AUTOLINK_RE=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function autolink(o,n){let c=o.pos;if(o.src.charCodeAt(c)!==60)return!1;const d=o.pos,h=o.posMax;for(;;){if(++c>
79=h)return!1;const p=o.src.charCodeAt(c);if(p===60)return!1;if(p===62)break}const m=o.src.slice(d+1,c);if(AUTOLINK_RE.test(m)){const p=o.md.normalizeLink(m);if(!o.md.validateLink(p))return!1;if(!n){const w=o.push("link_open","a",1);w.attrs=[["href",p]],w.markup="autolink",w.info="auto";const z=o.push("text","",0);z.content=o.md.normalizeLinkText(m);const A=o.push("link_close","a",-1);A.markup="autolink",A.info="auto"}return o.pos+=m.length+2,!0}if(EMAIL_RE.test(m)){const p=o.md.normalizeLink("mailto:"+m);if(!o.md.validateLink(p))return!1;if(!n){const w=o.push("link_open","a",1);w.attrs=[["href",p]],w.markup="autolink",w.info="auto";const z=o.push("text","",0);z.content=o.md.normalizeLinkText(m);const A=o.push("link_close","a",-1);A.markup="autolink",A.info="auto"}return o.pos+=m.length+2,!0}return!1}function isLinkOpen(o){return/^<a[>\s]/i.test(o)}function isLinkClose(o){return/^<\/a\s*>/i.test(o)}function isLetter(o){const n=o|32;return n>=97&&n<=122}function html_inline(o,n){if(!o.md.options.html)return!1;const c=o.posMax,d=o.pos;if(o.src.charCodeAt(d)!==60||d+2>=c)return!1;const h=o.src.charCodeAt(d+1);if(h!==33&&h!==63&&h!==47&&!isLetter(h))return!1;const m=o.src.slice(d).match(HTML_TAG_RE);if(!m)return!1;if(!n){const p=o.push("html_inline","",0);p.content=m[0],isLinkOpen(p.content)&&o.linkLevel++,isLinkClose(p.content)&&o.linkLevel--}return o.pos+=m[0].length,!0}const DIGITAL_RE=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,NAMED_RE=/^&([a-z][a-z0-9]{1,31});/i;function entity(o,n){const c=o.pos,d=o.posMax;if(o.src.charCodeAt(c)!==38||c+1>=d)return!1;if(o.src.charCodeAt(c+1)===35){const m=o.src.slice(c).match(DIGITAL_RE);if(m){if(!n){const p=m[1][0].toLowerCase()==="x"?parseInt(m[1].slice(1),16):parseInt(m[1],10),w=o.push("text_special","",0);w.content=isValidEntityCode(p)?fromCodePoint(p):fromCodePoint(65533),w.markup=m[0],w.info="entity"}return o.pos+=m[0].length,!0}}else{const m=o.src.slice(c).match(NAMED_RE);if(m){const p=decodeHTML(m[0]);if(p!==m[0]){if(!n){const w=o.push("text_special","",0);w.content=p,w.markup=m[0],w.info="entity"}return o.pos+=m[0].length,!0}}}return!1}function processDelimiters(o){const n={},c=o.length;if(!c)return;let d=0,h=-2;const m=[];for(let p=0;p<c;p++){const w=o[p];if(m.push(0),(o[d].marker!==w.marker||h!==w.token-1)&&(d=p),h=w.token,w.length=w.length||0,!w.close)continue;n.hasOwnProperty(w.marker)||(n[w.marker]=[-1,-1,-1,-1,-1,-1]);const z=n[w.marker][(w.open?3:0)+w.length%3];let A=d-m[d]-1,y=A;for(;A>z;A-=m[A]+1){const s=o[A];if(s.marker===w.marker&&s.open&&s.end<0){let e=!1;if((s.close||w.open)&&(s.length+w.length)%3===0&&(s.length%3!==0||w.length%3!==0)&&(e=!0),!e){const f=A>0&&!o[A-1].open?m[A-1]+1:0;m[p]=p-A+f,m[A]=f,w.open=!1,s.end=p,s.close=!1,y=-1,h=-2;break}}}y!==-1&&(n[w.marker][(w.open?3:0)+(w.length||0)%3]=y)}}function link_pairs(o){const n=o.tokens_meta,c=o.tokens_meta.length;processDelimiters(o.delimiters);for(let d=0;d<c;d++)n[d]&&n[d].delimiters&&processDelimiters(n[d].delimiters)}function fragments_join(o){let n,c,d=0;const h=o.tokens,m=o.tokens.length;for(n=c=0;n<m;n++)h[n].nesting<0&&d--,h[n].level=d,h[n].nesting>0&&d++,h[n].type==="text"&&n+1<m&&h[n+1].type==="text"?h[n+1].content=h[n].content+h[n+1].content:(n!==c&&(h[c]=h[n]),c++);n!==c&&(h.length=c)}const _rules=[["text",text],["linkify",linkify],["newline",newline],["escape",escape$1],["backticks",backtick],["strikethrough",r_strikethrough.tokenize],["emphasis",r_emphasis.tokenize],["link",link$1],["image",image],["autolink",autolink],["html_inline",html_inline],["entity",entity]],_rules2=[["balance_pairs",link_pairs],["strikethrough",r_strikethrough.postProcess],["emphasis",r_emphasis.postProcess],["fragments_join",fragments_join]];function ParserInline(){this.ruler=new Ruler;for(let o=0;o<_rules.length;o++)this.ruler.push(_rules[o][0],_rules[o][1]);this.ruler2=new Ruler;for(let o=0;o<_rules2.length;o++)this.ruler2.push(_rules2[o][0],_rules2[o][1])}ParserInline.prototype.skipToken=function(o){const n=o.pos,c=this.ruler.getRules(""),d=c.length,h=o.md.options.maxNesting,m=o.cache;if(typeof m[n]<"u"){o.pos=m[n];return}let p=!1;if(o.level<h){for(let w=0;w<d;w++)if(o.level++,p=c[w](o,!0),o.level--,p){if(n>=o.pos)throw new Error("inline rule didn't increment state.pos");break}}else o.pos=o.posMax;p||o.pos++,m[n]=o.pos};ParserInline.prototype.tokenize=function(o){const n=this.ruler.getRules(""),c=n.length,d=o.posMax,h=o.md.options.maxNesting;for(;o.pos<d;){const m=o.pos;let p=!1;if(o.level<h){for(let w=0;w<c;w++)if(p=n[w](o,!1),p){if(m>=o.pos)throw new Error("inline rule didn't increment state.pos");break}}
79if(p){if(o.pos>=d)break;continue}o.pending+=o.src[o.pos++]}o.pending&&o.pushPending()};ParserInline.prototype.parse=function(o,n,c,d){const h=new this.State(o,n,c,d);this.tokenize(h);const m=this.ruler2.getRules(""),p=m.length;for(let w=0;w<p;w++)m[w](h)};ParserInline.prototype.State=StateInline;function reFactory(o){const n={};o=o||{},n.src_Any=Any.source,n.src_Cc=Cc.source,n.src_Z=Z$1.source,n.src_P=P$1.source,n.src_ZPCc=[n.src_Z,n.src_P,n.src_Cc].join("|"),n.src_ZCc=[n.src_Z,n.src_Cc].join("|");const c="[><|]";return n.src_pseudo_letter="(?:(?!"+c+"|"+n.src_ZPCc+")"+n.src_Any+")",n.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",n.src_auth="(?:(?:(?!"+n.src_ZCc+"|[@/\\[\\]()]).)+@)?",n.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",n.src_host_terminator="(?=$|"+c+"|"+n.src_ZPCc+")(?!"+(o["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+n.src_ZPCc+"))",n.src_path="(?:[/?#](?:(?!"+n.src_ZCc+"|"+c+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+n.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+n.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+n.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+n.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+n.src_ZCc+"|[']).)+\\'|\\'(?="+n.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+n.src_ZCc+"|[.]|$)|"+(o["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+n.src_ZCc+"|$)|;(?!"+n.src_ZCc+"|$)|\\!+(?!"+n.src_ZCc+"|[!]|$)|\\?(?!"+n.src_ZCc+"|[?]|$))+|\\/)?",n.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',n.src_xn="xn--[a-z0-9\\-]{1,59}",n.src_domain_root="(?:"+n.src_xn+"|"+n.src_pseudo_letter+"{1,63})",n.src_domain="(?:"+n.src_xn+"|(?:"+n.src_pseudo_letter+")|(?:"+n.src_pseudo_letter+"(?:-|"+n.src_pseudo_letter+"){0,61}"+n.src_pseudo_letter+"))",n.src_host="(?:(?:(?:(?:"+n.src_domain+")\\.)*"+n.src_domain+"))",n.tpl_host_fuzzy="(?:"+n.src_ip4+"|(?:(?:(?:"+n.src_domain+")\\.)+(?:%TLDS%)))",n.tpl_host_no_ip_fuzzy="(?:(?:(?:"+n.src_domain+")\\.)+(?:%TLDS%))",n.src_host_strict=n.src_host+n.src_host_terminator,n.tpl_host_fuzzy_strict=n.tpl_host_fuzzy+n.src_host_terminator,n.src_host_port_strict=n.src_host+n.src_port+n.src_host_terminator,n.tpl_host_port_fuzzy_strict=n.tpl_host_fuzzy+n.src_port+n.src_host_terminator,n.tpl_host_port_no_ip_fuzzy_strict=n.tpl_host_no_ip_fuzzy+n.src_port+n.src_host_terminator,n.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+n.src_ZPCc+"|>|$))",n.tpl_email_fuzzy="(^|"+c+'|"|\\(|'+n.src_ZCc+")("+n.src_email_name+"@"+n.tpl_host_fuzzy_strict+")",n.tpl_link_fuzzy="(^|(?![.:
79/\\-_@])(?:[$+<=>^`||]|"+n.src_ZPCc+"))((?![$+<=>^`||])"+n.tpl_host_port_fuzzy_strict+n.src_path+")",n.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+n.src_ZPCc+"))((?![$+<=>^`||])"+n.tpl_host_port_no_ip_fuzzy_strict+n.src_path+")",n}function assign(o){return Array.prototype.slice.call(arguments,1).forEach(function(c){c&&Object.keys(c).forEach(function(d){o[d]=c[d]})}),o}function _class(o){return Object.prototype.toString.call(o)}function isString(o){return _class(o)==="[object String]"}function isObject(o){return _class(o)==="[object Object]"}function isRegExp(o){return _class(o)==="[object RegExp]"}function isFunction(o){return _class(o)==="[object Function]"}function escapeRE(o){return o.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const defaultOptions={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function isOptionsObj(o){return Object.keys(o||{}).reduce(function(n,c){return n||defaultOptions.hasOwnProperty(c)},!1)}const defaultSchemas={"http:":{validate:function(o,n,c){const d=o.slice(n);return c.re.http||(c.re.http=new RegExp("^\\/\\/"+c.re.src_auth+c.re.src_host_port_strict+c.re.src_path,"i")),c.re.http.test(d)?d.match(c.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(o,n,c){const d=o.slice(n);return c.re.no_http||(c.re.no_http=new RegExp("^"+c.re.src_auth+"(?:localhost|(?:(?:"+c.re.src_domain+")\\.)+"+c.re.src_domain_root+")"+c.re.src_port+c.re.src_host_terminator+c.re.src_path,"i")),c.re.no_http.test(d)?n>=3&&o[n-3]===":"||n>=3&&o[n-3]==="/"?0:d.match(c.re.no_http)[0].length:0}},"mailto:":{validate:function(o,n,c){const d=o.slice(n);return c.re.mailto||(c.re.mailto=new RegExp("^"+c.re.src_email_name+"@"+c.re.src_host_strict,"i")),c.re.mailto.test(d)?d.match(c.re.mailto)[0].length:0}}},tlds_2ch_src_re="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",tlds_default="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function resetScanCache(o){o.__index__=-1,o.__text_cache__=""}function createValidator(o){return function(n,c){const d=n.slice(c);return o.test(d)?d.match(o)[0].length:0}}function createNormalizer(){return function(o,n){n.normalize(o)}}function compile(o){const n=o.re=reFactory(o.__opts__),c=o.__tlds__.slice();o.onCompile(),o.__tlds_replaced__||c.push(tlds_2ch_src_re),c.push(n.src_xn),n.src_tlds=c.join("|");function d(w){return w.replace("%TLDS%",n.src_tlds)}n.email_fuzzy=RegExp(d(n.tpl_email_fuzzy),"i"),n.link_fuzzy=RegExp(d(n.tpl_link_fuzzy),"i"),n.link_no_ip_fuzzy=RegExp(d(n.tpl_link_no_ip_fuzzy),"i"),n.host_fuzzy_test=RegExp(d(n.tpl_host_fuzzy_test),"i");const h=[];o.__compiled__={};function m(w,z){throw new Error('(LinkifyIt) Invalid schema "'+w+'": '+z)}Object.keys(o.__schemas__).forEach(function(w){const z=o.__schemas__[w];if(z===null)return;const A={validate:null,link:null};if(o.__compiled__[w]=A,isObject(z)){isRegExp(z.validate)?A.validate=createValidator(z.validate):isFunction(z.validate)?A.validate=z.validate:m(w,z),isFunction(z.normalize)?A.normalize=z.normalize:z.normalize?m(w,z):A.normalize=createNormalizer();return}if(isString(z)){h.push(w);return}m(w,z)}),h.forEach(function(w){o.__compiled__[o.__schemas__[w]]&&(o.__compiled__[w].validate=o.__compiled__[o.__schemas__[w]].validate,o.__compiled__[w].normalize=o.__compiled__[o.__schemas__[w]].normalize)}),o.__compiled__[""]={validate:null,normalize:createNormalizer()};const p=Object.keys(o.__compiled__).filter(function(w){return w.length>0&&o.__compiled__[w]}).map(escapeRE).join("|");o.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+n.src_ZPCc+"))("+p+")","i"),o.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+n.src_ZPCc+"))("+p+")","ig"),o.re.schema_at_start=RegExp("^"+o.re.schema_search.source,"i"),o.re.pretest=RegExp("("+o.re.schema_test.source+")|("+o.re.host_fuzzy_test.source+")|@","i"),resetScanCache(o)}function Match(o,n){const c=o.__index__,d=o.__last_index__,h=o.__text_cache__.slice(c,d);this.schema=o.__schema__.toLowerCase(),this.index=c+n,this.lastIndex=d+n,this.raw=h,this.text=h,this.url=h}function createMatch(o,n){const c=new Match(o,n);return o.__compiled__[c.schema].normalize(c,o),c}function LinkifyIt(o,n){if(!(this instanceof LinkifyIt))return new LinkifyIt(o,n);n||isOptionsObj(o)&&(n=o,o={}),this.__opts__=assign({},defaultOptions,n),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=assign({},defaultSchemas,o),this.__compiled__={},this.__tlds__=tlds_default,this.__tlds_replaced__=!1,this.re={},compile(this)}LinkifyIt.prototype.add=function(n,c){return this.__schemas__[n]=c,compile(this),this};LinkifyIt.prototype.set=function(n){return this.__opts__=assign(this.__opts__,n),this};LinkifyIt.prototype.test=function(n){if(this.__text_cache__=n,this.__index__=-1,!n.length)return!1;let c,d,h,m,p,w,z,A,y;if(this.re.schema_test.test(n)){for(z=this.re.schema_search,z.lastIndex=0;(c=z.exec(n))!==null;)if(m=this.testSchemaAt(n,c[2],z.lastIndex),m){this.__schema__=c[2],this.__index__=c.index+c[1].length,this.__last_index__=c.index+c[0].length+m;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(A=n.search(this.re.host_fuzzy_test),A>=0&&(this.__index__<0||A<this.__index__)&&(d=n.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(p=d.index+d[1].length,(this.__index__<0||p<this.__index__)&&(this.__schema__="",this.__index__=p,this.__last_index__=d.index+d[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(y=n.indexOf("@"),y>=0&&(h=n.match(this.re.email_fuzzy))!==null&&(p=h.index+h[1].length,w=h.index+h[0].length,(this.__index__<0||p<this.__index__||p===this.__index__&&w>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=p,this.__last_index__=w))),this.__index__>=0};LinkifyIt.prototype.pretest=function(n){return this.re.pretest.test(n)};LinkifyIt.prototype.testSchemaAt=function(n,c,d){return this.__compiled__[c.toLowerCase()]?this.__compiled__[c.toLowerCase()].validate(n,d,this):0};LinkifyIt.prototype.match=function(n){const c=[];let d=0;this.__index__>=0&&this.__text_cache__===n&&(c.push(createMatch(this,d)),d=this.__last_index__);let h=d?n.slice(d):n;for(;this.test(h);)c.push(createMatch(this,d)),h=h.slice(this.__last_index__),d+=this.__last_index__;return c.length?c:null};LinkifyIt.prototype.matchAtStart=function(n){if(this.__text_cache__=n,this.__index__=-1,!n.length)return null;const c=this.re.schema_at_start.exec(n);if(!c)return null;const d=this.testSchemaAt(n,c[2],c[0].length);return d?(this.__schema__=c[2],this.__index__=c.index+c[1].length,this.__last_index__=c.index+c[0].length+d,createMatch(this,0)):null};LinkifyIt.prototype.tlds=function(n,c){return n=Array.isArray(n)?n:[n],c?(this.__tlds__=this.__tlds__.concat(n).sort().filter(function(d,h,m){return d!==m[h-1]}).reverse(),compile(this),this):(this.__tlds__=n.slice(),this.__tlds_replaced__=!0,compile(this),this)};LinkifyIt.prototype.normalize=function(n){n.schema||(n.url="http://"+n.url),n.schema==="mailto:"&&!/^mailto:/i.test(n.url)&&(n.url="mailto:"+n.url)};LinkifyIt.prototype.onCompile=function(){};const maxInt=2147483647,base=36,tMin=1,tMax=26,skew=38,damp=700,initialBias=72,initialN=128,delimiter="-",regexPunycode=/^xn--/,regexNonASCII=/[^\0-\x7F]/,regexSeparators=/[\x2E\u3002\uFF0E\uFF61]/g,errors={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >
79= 0x80 (not a basic code point)","invalid-input":"Invalid input"},baseMinusTMin=base-tMin,floor=Math.floor,stringFromCharCode=String.fromCharCode;function error(o){throw new RangeError(errors[o])}function map(o,n){const c=[];let d=o.length;for(;d--;)c[d]=n(o[d]);return c}function mapDomain(o,n){const c=o.split("@");let d="";c.length>1&&(d=c[0]+"@",o=c[1]),o=o.replace(regexSeparators,".");const h=o.split("."),m=map(h,n).join(".");return d+m}function ucs2decode(o){const n=[];let c=0;const d=o.length;for(;c<d;){const h=o.charCodeAt(c++);if(h>=55296&&h<=56319&&c<d){const m=o.charCodeAt(c++);(m&64512)==56320?n.push(((h&1023)<<10)+(m&1023)+65536):(n.push(h),c--)}else n.push(h)}return n}const ucs2encode=o=>String.fromCodePoint(...o),basicToDigit=function(o){return o>=48&&o<58?26+(o-48):o>=65&&o<91?o-65:o>=97&&o<123?o-97:base},digitToBasic=function(o,n){return o+22+75*(o<26)-((n!=0)<<5)},adapt=function(o,n,c){let d=0;for(o=c?floor(o/damp):o>>1,o+=floor(o/n);o>baseMinusTMin*tMax>>1;d+=base)o=floor(o/baseMinusTMin);return floor(d+(baseMinusTMin+1)*o/(o+skew))},decode=function(o){const n=[],c=o.length;let d=0,h=initialN,m=initialBias,p=o.lastIndexOf(delimiter);p<0&&(p=0);for(let w=0;w<p;++w)o.charCodeAt(w)>=128&&error("not-basic"),n.push(o.charCodeAt(w));for(let w=p>0?p+1:0;w<c;){const z=d;for(let y=1,s=base;;s+=base){w>=c&&error("invalid-input");
79const e=basicToDigit(o.charCodeAt(w++));e>=base&&error("invalid-input"),e>floor((maxInt-d)/y)&&error("overflow"),d+=e*y;const f=s<=m?tMin:s>=m+tMax?tMax:s-m;if(e<f)break;const g=base-f;y>floor(maxInt/g)&&error("overflow"),y*=g}const A=n.length+1;m=adapt(d-z,A,z==0),floor(d/A)>maxInt-h&&error("overflow"),h+=floor(d/A),d%=A,n.splice(d++,0,h)}return String.fromCodePoint(...n)},encode=function(o){const n=[];o=ucs2decode(o);const c=o.length;let d=initialN,h=0,m=initialBias;for(const z of o)z<128&&n.push(stringFromCharCode(z));const p=n.length;let w=p;for(p&&n.push(delimiter);w<c;){let z=maxInt;for(const y of o)y>=d&&y<z&&(z=y);const A=w+1;z-d>floor((maxInt-h)/A)&&error("overflow"),h+=(z-d)*A,d=z;for(const y of o)if(y<d&&++h>maxInt&&error("overflow"),y===d){let s=h;for(let e=base;;e+=base){const f=e<=m?tMin:e>=m+tMax?tMax:e-m;if(s<f)break;const g=s-f,R=base-f;n.push(stringFromCharCode(digitToBasic(f+g%R,0))),s=floor(g/R)}n.push(stringFromCharCode(digitToBasic(s,0))),m=adapt(h,A,w===p),h=0,++w}++h,++d}return n.join("")},toUnicode=function(o){return mapDomain(o,function(n){return regexPunycode.test(n)?decode(n.slice(4).toLowerCase()):n})},toASCII=function(o){return mapDomain(o,function(n){return regexNonASCII.test(n)?"xn--"+encode(n):n})},punycode={version:"2.3.1",ucs2:{decode:ucs2decode,encode:ucs2encode},decode,encode,toASCII,toUnicode},cfg_default={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},cfg_zero={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},cfg_commonmark={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},config={default:cfg_default,zero:cfg_zero,commonmark:cfg_commonmark},BAD_PROTO_RE=/^(vbscript|javascript|file|data):/,GOOD_DATA_RE=/^data:image\/(gif|png|jpeg|webp);/;function validateLink(o){const n=o.trim().toLowerCase();return BAD_PROTO_RE.test(n)?GOOD_DATA_RE.test(n):!0}const RECODE_HOSTNAME_FOR=["http:","https:","mailto:"];function normalizeLink(o){const n=urlParse(o,!0);if(n.hostname&&(!n.protocol||RECODE_HOSTNAME_FOR.indexOf(n.protocol)>=0))try{n.hostname=punycode.toASCII(n.hostname)}catch{}return encode$1(format(n))}function normalizeLinkText(o){const n=urlParse(o,!0);if(n.hostname&&(!n.protocol||RECODE_HOSTNAME_FOR.indexOf(n.protocol)>=0))try{n.hostname=punycode.toUnicode(n.hostname)}catch{}return decode$1(format(n),decode$1.defaultChars+"%")}function MarkdownIt(o,n){if(!(this instanceof MarkdownIt))return new MarkdownIt(o,n);n||isString$1(o)||(n=o||{},o="default"),this.inline=new ParserInline,this.block=new ParserBlock,this.core=new Core,this.renderer=new Renderer,this.linkify=new LinkifyIt,this.validateLink=validateLink,this.normalizeLink=normalizeLink,this.normalizeLinkText=normalizeLinkText,this.utils=utils$1,this.helpers=assign$1({},helpers),this.options={},this.configure(o),n&&this.set(n)}MarkdownIt.prototype.set=function(o){return assign$1(this.options,o),this};MarkdownIt.prototype.configure=function(o){const n=this;if(isString$1(o)){const c=o;if(o=config[c],!o)throw new Error('Wrong `markdown-it` preset "'+c+'", check name')}if(!o)throw new Error("Wrong `markdown-it` preset, can't be empty");return o.options&&n.set(o.options),o.components&&Object.keys(o.components).forEach(function(c){o.components[c].rules&&n[c].ruler.enableOnly(o.components[c].rules),o.components[c].rules2&&n[c].ruler2.enableO
79nly(o.components[c].rules2)}),this};MarkdownIt.prototype.enable=function(o,n){let c=[];Array.isArray(o)||(o=[o]),["core","block","inline"].forEach(function(h){c=c.concat(this[h].ruler.enable(o,!0))},this),c=c.concat(this.inline.ruler2.enable(o,!0));const d=o.filter(function(h){return c.indexOf(h)<0});if(d.length&&!n)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+d);return this};MarkdownIt.prototype.disable=function(o,n){let c=[];Array.isArray(o)||(o=[o]),["core","block","inline"].forEach(function(h){c=c.concat(this[h].ruler.disable(o,!0))},this),c=c.concat(this.inline.ruler2.disable(o,!0));const d=o.filter(function(h){return c.indexOf(h)<0});if(d.length&&!n)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+d);return this};MarkdownIt.prototype.use=function(o){const n=[this].concat(Array.prototype.slice.call(arguments,1));return o.apply(o,n),this};MarkdownIt.prototype.parse=function(o,n){if(typeof o!="string")throw new Error("Input data should be a String");const c=new this.core.State(o,this,n);return this.core.process(c),c.tokens};MarkdownIt.prototype.render=function(o,n){return n=n||{},this.renderer.render(this.parse(o,n),this.options,n)};MarkdownIt.prototype.parseInline=function(o,n){const c=new this.core.State(o,this,n);return c.inlineMode=!0,this.core.process(c),c.tokens};MarkdownIt.prototype.renderInline=function(o,n){return n=n||{},this.renderer.render(this.parseInline(o,n),this.options,n)};var utils={},hasRequiredUtils;function requireUtils(){if(hasRequiredUtils)return utils;hasRequiredUtils=1,utils.getAttrs=function(m,p,w){const z=/[^\t\n\f />"'=]/,f=[];let g="",R="",q=!0,H=!1;for(let te=p+w.leftDelimiter.length;te<m.length;te++){if(m.slice(te,te+w.rightDelimiter.length)===w.rightDelimiter){g!==""&&f.push([g,R]);break}const re=m.charAt(te);if(re==="="&&q){q=!1;continue}if(re==="."&&g===""){m.charAt(te+1)==="."?(g="css-module",te+=1):g="class",q=!1;continue}if(re==="#"&&g===""){g="id",q=!1;continue}if(re==='"'&&R===""&&!H){H=!0;continue}if(re==='"'&&H){H=!1;continue}if(re===" "&&!H){if(g==="")continue;f.push([g,R]),g="",R="",q=!0;continue}if(!(q&&re.search(z)===-1)){if(q){g+=re;continue}R+=re}}if(w.allowedAttributes&&w.allowedAttributes.length){const te=w.allowedAttributes;return f.filter(function(re){const ae=re[0];function ne(oe){return ae===oe||oe instanceof RegExp&&oe.test(ae)}return te.some(ne)})}return f},utils.addAttrs=function(m,p){for(let w=0,z=m.length;w<z;++w){const A=m[w][0];A==="class"?p.attrJoin("class",m[w][1]):A==="css-module"?p.attrJoin("css-module",m[w][1]):p.attrPush(m[w])}return p},utils.hasDelimiters=function(m,p){if(!m)throw new Error('Parameter `where` not passed. Should be "start", "end" or "only".');return function(w){const z=p.leftDelimiter.length+1+p.rightDelimiter.length;if(!w||typeof w!="string"||w.length<z)return!1;function A(R){const q=R.charAt(p.leftDelimiter.length)===".",H=R.charAt(p.leftDelimiter.length)==="#";return q||H?R.length>=z+1:R.length>=z}let y,s,e,f;const g=z-p.rightDelimiter.length;switch(m){case"start":e=w.slice(0,p.leftDelimiter.length),y=e===p.leftDelimiter?0:-1,s=y===-1?-1:w.indexOf(p.rightDelimiter,g),f=w.charAt(s+p.rightDelimiter.length),f&&p.rightDelimiter.indexOf(f)!==-1&&(s=-1);break;case"end":y=w.lastIndexOf(p.leftDelimiter),s=y===-1?-1:w.indexOf(p.rightDelimiter,y+g),s=s===w.length-p.rightDelimiter.length?s:-1;break;case"only":e=w.slice(0,p.leftDelimiter.length),y=e===p.leftDelimiter?0:-1,e=w.slice(w.length-p.rightDelimiter.length),s=e===p.rightDelimiter?w.length-p.rightDelimiter.length:-1;break;default:throw new Error(`Unexpected case ${m}, expected 'start', 'end' or 'only'`)}return y!==-1&&s!==-1&&A(w.substring(y,s+p.rightDelimiter.length))}},utils.removeDelimiter=function(m,p){const w=o(p.leftDelimiter),z=o(p.rightDelimiter),A=new RegExp("[ \\n]?"+w+"[^"+w+z+"]+"+z+"$"),y=m.search(A);return y!==-1?m.slice(0,y):m};function o(m){return m.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}utils.escapeRegExp=o,utils.getMatchingOpeningToken=function(m,p){if(m[p].type==="softbreak")return!1;if(m[p].nesting===0)return m[p];const w=m[p].level,z=m[p].type.replace("_close","_open");for(;p>=0;--p)if(m[p].type===z&&m[p].level===w)return m[p];return!1};const n=/[&<>"]/,c=/[&<>"]/g,d={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function h(m){return d[m]}return utils.escapeHtml=function(m){return n.test(m)?m.replace(c,h):m},utils}var patterns,hasRequiredPatterns;function requirePatterns(){if(hasRequiredPatterns)return patterns;hasRequiredPatterns=1;const o=requireUtils();patterns=d=>{const h=new RegExp("^ {0,3}[-*_]{3,} ?"+o.escapeRegExp(d.leftDelimiter)+"[^"+o.escapeRegExp(d.rightDelimiter)+"]");return[{name:"fenced code blocks",tests:[{shift:0,block:!0,info:o.hasDelimiters("end",d)}],transform:(m,p)=>{const w=m[p],z=w.info.lastIndexOf(d.leftDelimiter),A=o.getAttrs(w.info,z,d);o.addAttrs(A,w),w.info=o.removeDelimiter(w.info,d)}},{name:"inline nesting 0",tests:[{shift:0,type:"inline",children:[{shift:-1,type:m=>m==="image"||m==="code_inline"},{shift:0,type:"text",content:o.hasDelimiters("start",d)}]}],transform:(m,p,w)=>{const z=m[p].children[w],A=z.content.indexOf(d.rightDelimiter),y=m[p].children[w-1],s=o.getAttrs(z.content,0,d);o.addAttrs(s,y),z.content.length===A+d.rightDelimiter.length?m[p].children.splice(w,1):z.content=z.content.slice(A+d.rightDelimiter.length)}},{name:"tables",tests:[{shift:0,type:"table_close"},{shift:1,type:"paragraph_open"},{shift:2,type:"inline",content:o.hasDelimiters("only",d)}],transform:(m,p)=>{const w=m[p+2],z=o.getMatchingOpeningToken(m,p),A=o.getAttrs(w.content,0,d);o.addAttrs(A,z),m.splice(p+1,3)}},{name:"tables thead metadata",tests:[{shift:0,type:"tr_close"},{shift:1,type:"thead_close"},{shift:2,type:"tbody_open"}],transform:(m,p)=>{const w=o.getMatchingOpeningToken(m,p),z=m[p-1];let A=0,y=p;for(;--y;){if(m[y]===w){m[y-1].meta=Object.assign({},m[y+2].meta,{colsnum:A});break}A+=(m[y].level===z.level&&m[y].type===z.type)>>0}m[p+2].meta=Object.assign({},m[p+2].meta,{colsnum:A})}},{name:"tables tbody calculate",tests:[{shift:0,type:"tbody_close",hidden:!1}],transform:(m,p)=>{let w=p-2;
79for(;w>0&&m[--w].type!=="tbody_open";);const z=m[w].meta.colsnum>>0;if(z<2)return;const A=m[p].level+2;for(let y=w;y<p;y++){if(m[y].level>A)continue;const s=m[y],e=s.hidden?0:s.attrGet("rowspan")>>0,f=s.hidden?0:s.attrGet("colspan")>>0;if(e>1){let g=z-(f>0?f:1);for(let R=y,q=e;q>1;R++)m[R].type=="tr_open"&&(m[R].meta=Object.assign({},m[R].meta),m[R].meta&&m[R].meta.colsnum&&(g-=1),m[R].meta.colsnum=g,q--)}if(s.type=="tr_open"&&s.meta&&s.meta.colsnum){const g=s.meta.colsnum;for(let R=y,q=0;R<p;R++){if(m[R].type=="td_open")q+=1;else if(m[R].type=="tr_close")break;q>g&&(m[R].hidden||c(m[R]))}}if(f>1){const g=[];let R=y+3,q=z;for(let re=y;re>w;re--)if(m[re].type=="tr_open"){q=m[re].meta&&m[re].meta.colsnum||q;break}else m[re].type==="td_open"&&g.unshift(re);for(let re=y+2;re<p;re++)if(m[re].type=="tr_close"){R=re;break}else m[re].type=="td_open"&&g.push(re);const H=g.indexOf(y);let te=q-H;te=te>f?f:te,f>te&&s.attrSet("colspan",te+"");for(let re=g.slice(q+1-z-te)[0];re<R;re++)m[re].hidden||c(m[re])}}}},{name:"inline attributes",tests:[{shift:0,type:"inline",children:[{shift:-1,nesting:-1},{shift:0,type:"text",content:o.hasDelimiters("start",d)}]}],transform:(m,p,w)=>{const z=m[p].children[w],A=z.content,y=o.getAttrs(A,0,d),s=o.getMatchingOpeningToken(m[p].children,w-1);o.addAttrs(y,s),z.content=A.slice(A.indexOf(d.rightDelimiter)+d.rightDelimiter.length)}},{name:"list softbreak",tests:[{shift:-2,type:"list_item_open"},{shift:0,type:"inline",children:[{position:-2,type:"softbreak"},{position:-1,type:"text",content:o.hasDelimiters("only",d)}]}],transform:(m,p,w)=>{const A=m[p].children[w].content,y=o.getAttrs(A,0,d);let s=p-2;for(;m[s-1]&&m[s-1].type!=="ordered_list_open"&&m[s-1].type!=="bullet_list_open";)s--;o.addAttrs(y,m[s-1]),m[p].children=m[p].children.slice(0,-2)}},{name:"list double softbreak",tests:[{shift:0,type:m=>m==="bullet_list_close"||m==="ordered_list_close"},{shift:1,type:"paragraph_open"},{shift:2,type:"inline",content:o.hasDelimiters("only",d),children:m=>m.length===1},{shift:3,type:"paragraph_close"}],transform:(m,p)=>{const z=m[p+2].content,A=o.getAttrs(z,0,d),y=o.getMatchingOpeningToken(m,p);o.addAttrs(A,y),m.splice(p+1,3)}},{name:"list item end",tests:[{shift:-2,type:"list_item_open"},{shift:0,type:"inline",children:[{position:-1,type:"text",content:o.hasDelimiters("end",d)}]}],transform:(m,p,w)=>{const z=m[p].children[w],A=z.content,y=o.getAttrs(A,A.lastIndexOf(d.leftDelimiter),d);o.addAttrs(y,m[p-2]);const s=A.slice(0,A.lastIndexOf(d.leftDelimiter));z.content=n(s)!==" "?s:s.slice(0,-1)}},{name:`
80{.a} softbreak then curly in start`,tests:[{shift:0,type:"inline",children:[{position:-2,type:"softbreak"},{position:-1,type:"text",content:o.hasDelimiters("only",d)}]}],transform:(m,p,w)=>{const z=m[p].children[w],A=o.getAttrs(z.content,0,d);let y=p+1;for(;m[y+1]&&m[y+1].nesting===-1;)y++;const s=o.getMatchingOpeningToken(m,y);o.addAttrs(A,s),m[p].children=m[p].children.slice(0,-2)}},{name:"horizontal rule",tests:[{shift:0,type:"paragraph_open"},{shift:1,type:"inline",children:m=>m.length===1,content:m=>m.match(h)!==null},{shift:2,type:"paragraph_close"}],transform:(m,p)=>{const w=m[p];w.type="hr",w.tag="hr",w.nesting=0;const z=m[p+1].content,A=z.lastIndexOf(d.leftDelimiter),y=o.getAttrs(z,A,d);o.addAttrs(y,w),w.markup=z,m.splice(p+1,2)}},{name:"end of block",tests:[{shift:0,type:"inline",children:[{position:-1,content:o.hasDelimiters("end",d),type:m=>m!=="code_inline"&&m!=="math_inline"}]}],transform:(m,p,w)=>{const z=m[p].children[w],A=z.content,y=o.getAttrs(A,A.lastIndexOf(d.leftDelimiter),d);let s=p+1;do if(m[s]&&m[s].nesting===-1)break;while(s++<m.length);const e=o.getMatchingOpeningToken(m,s);o.addAttrs(y,e);const f=A.slice(0,A.lastIndexOf(d.leftDelimiter));z.content=n(f)!==" "?f:f.slice(0,-1)}}]};function n(d){return d.slice(-1)[0]}function c(d){d.hidden=!0,d.children&&d.children.forEach(h=>(h.content="",c(h),void 0))}return patterns}var markdownItAttrs,hasRequiredMarkdownItAttrs;function requireMarkdownItAttrs(){if(hasRequiredMarkdownItAttrs)return markdownItAttrs;hasRequiredMarkdownItAttrs=1;const o=requirePatterns(),n={leftDelimiter:"{",rightDelimiter:"}",allowedAttributes:[]};markdownItAttrs=function(z,A){let y=Object.assign({},n);y=Object.assign(y,A);const s=o(y);function e(f){const g=f.tokens;for(let R=0;R<g.length;R++)for(let q=0;q<s.length;q++){const H=s[q];let te=null;H.tests.every(ae=>{const ne=c(g,R,ae);return ne.j!==null&&(te=ne.j),ne.match})&&(H.transform(g,R,te),(H.name==="inline attributes"||H.name==="inline nesting 0")&&q--)}}z.core.ruler.before("linkify","curly_attributes",e)};function c(w,z,A){const y={match:!1,j:null},s=A.shift!==void 0?z+A.shift:A.position;if(A.shift!==void 0&&s<0)return y;const e=m(w,s);if(e===void 0)return y;for(const f of Object.keys(A))if(!(f==="shift"||f==="position")){if(e[f]===void 0)return y;if(f==="children"&&d(A.children)){if(e.children.length===0)return y;let g;const R=A.children,q=e.children;if(R.every(H=>H.position!==void 0)){if(g=R.every(H=>c(q,H.position,H).match),g){const H=p(R).position;y.j=H>=0?H:q.length+H}}else for(let H=0;H<q.length;H++)if(g=R.every(te=>c(q,H,te).match),g){y.j=H;break}if(g===!1)return y;continue}switch(typeof A[f]){case"boolean":case"number":case"string":if(e[f]!==A[f])return y;break;case"function":if(!A[f](e[f]))return y;break;
80case"object":if(h(A[f])){if(A[f].every(R=>R(e[f]))===!1)return y;break}default:throw new Error(`Unknown type of pattern test (key: ${f}). Test should be of type boolean, number, string, function or array of functions.`)}}return y.match=!0,y}function d(w){return Array.isArray(w)&&w.length&&w.every(z=>typeof z=="object")}function h(w){return Array.isArray(w)&&w.length&&w.every(z=>typeof z=="function")}function m(w,z){return z>=0?w[z]:w[w.length+z]}function p(w){return w.slice(-1)[0]||{}}return markdownItAttrs}var markdownItAttrsExports=requireMarkdownItAttrs();const MarkdownItAttrs=getDefaultExportFromCjs(markdownItAttrsExports),MARKER=43,MARKER_OPEN=62;function renderSummary(o,n,c,d,h){return`<summary>${h.render(o[n].children,c,d)}</summary>`}function skipMarker(o,n){let c=!1,d=o.skipChars(n,MARKER);o.src.charCodeAt(d)===MARKER_OPEN&&(d++,c=!0);const h=d-n,m=String.fromCharCode(MARKER).repeat(Math.max(h-1,0))+(c?">":"+");return{pos:d,isOpen:c,markerCount:h,marker:m}}function parseCollapsible(o,n,c,d){let h=!1,m=o.bMarks[n]+o.tShift[n],p=o.eMarks[n],{pos:w,isOpen:z,markerCount:A,marker:y}=skipMarker(o,m);if(A<3)return!1;const s=o.src.slice(w,p).trim();if(isWhitespace(o,w,p)||s.endsWith(y))return!1;if(d)return!0;let e=n,f=!0;for(;e++,!(e>=c||(m=o.bMarks[e]+o.tShift[e],p=o.eMarks[e],m<p&&o.sCount[e]<o.blkIndent));){if(o.src.charCodeAt(m)!==MARKER){f&&(f=isWhitespace(o,m,p));continue}if(o.sCount[e]-o.blkIndent>=4)continue;const ae=skipMarker(o,m);if(w=ae.pos,ae.marker===y&&(w=o.skipSpaces(w),!(w<p))){h=!0;break}}if(f)return!1;const g=o.parentType,R=o.lineMax;o.parentType="reference",o.lineMax=e;let q=o.push("collapsible_open","details",1);q.block=!0,q.info=s,q.markup=y,q.map=[n,e],z&&q.attrSet("open","");let H=[];const te=new o.Token("collapsible_marker","span",1);te.attrs=[["class","details-marker"]];const re=[te,new o.Token("collapsible_marker","span",-1)];if(s.match(/^#{1,6}/)){H=o.md.parse(s,o.env);const ae=H.shift();ae&&H.unshift(ae,...re)}else o.md.inline.parse(s,o.md,o.env,H),H.unshift(...re);return q=o.push("collapsible_summary","summary",0),q.content=s,q.children=H,o.md.block.tokenize(o,n+1,e),q=o.push("collapsible_close","details",-1),q.markup=o.src.slice(m,w),q.block=!0,o.parentType=g,o.lineMax=R,o.line=e+(h?1:0),!0}function isWhitespace(o,n,c){for(n;n<c;n++)if(!o.md.utils.isWhiteSpace(o.src.charCodeAt(n)))return!1;return!0}function collapsiblePlugin(o){o.block.ruler.before("fence","collapsible",parseCollapsible,{alt:["paragraph","reference","blockquote","list"]}),o.renderer.rules.collapsible_summary=renderSummary}var xdate={exports:{}};var hasRequiredXdate;function requireXdate(){return hasRequiredXdate||(hasRequiredXdate=1,(function(o){(function(n,c,d,h){var m=0,p=1,w=2,z=3,A=4,y=5,s=6,e=7,f=8,g=864e5,R="yyyy-MM-dd'T'HH:mm:ss(.fff)",q=R+"zzz",H=["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds","Day","Year"],te=["Years","Months","Days"],re=[12,31,24,60,60,1e3,1],ae=new RegExp("(([a-zA-Z])\\2*)|(\\((('.*?'|\\(.*?\\)|.)*?)\\))|('(.*?)')"),ne=n.UTC,oe=n.prototype.toUTCString,le=ce.prototype;le.length=1,le.splice=d.prototype.splice;function ce(){return ue(this instanceof ce?this:new ce,arguments)}function ue(Be,Xe){var Ke=Xe.length,nt;
80if(Bt(Xe[Ke-1])&&(nt=Xe[--Ke],Xe=be(Xe,0,Ke)),!Ke)Be[0]=new n;else if(Ke==1){var xt=Xe[0];xt instanceof n?Be[0]=new n(xt.getTime()):Jt(xt)?Be[0]=new n(xt):xt instanceof ce?Be[0]=mt(xt):St(xt)&&(Be[0]=new n(0),Be=ke(xt,nt||!1,Be))}else Be[0]=new n(ne.apply(n,Xe)),nt||(Be[0]=ot(Be[0]));return Bt(nt)&&ge(Be,nt),Be}le.getUTCMode=At(he);function he(Be){return Be[0].toString===oe}le.setUTCMode=At(ge);function ge(Be,Xe,Ke){return Xe?he(Be)||(Ke&&(Be[0]=Ue(Be[0])),Be[0].toString=oe):he(Be)&&(Ke?Be[0]=ot(Be[0]):Be[0]=new n(Be[0].getTime())),Be}le.getTimezoneOffset=function(){return he(this)?0:this[0].getTimezoneOffset()},Et(H,function(Be,Xe){le["get"+Be]=function(){return ht(this[0],he(this),Xe)},Xe!=f&&(le["getUTC"+Be]=function(){return ht(this[0],!0,Xe)}),Xe!=e&&(le["set"+Be]=function(Ke){return Oe(this,Xe,Ke,arguments,he(this)),this},Xe!=f&&(le["setUTC"+Be]=function(Ke){return Oe(this,Xe,Ke,arguments,!0),this},le["add"+(te[Xe]||Be)]=function(Ke,nt){return $e(this,Xe,Ke,nt),this},le["diff"+(te[Xe]||Be)]=function(Ke){return Pe(this,Ke,Xe)}))});function Oe(Be,Xe,Ke,nt,xt){var Mt=ft(ht,Be[0],xt),Ye=ft(ct,Be[0],xt),at,st=!1;nt.length==2&&Bt(nt[1])&&(st=nt[1],nt=[Ke]),Xe==p?at=(Ke%12+12)%12:at=Mt(p),Ye(Xe,nt),st&&Mt(p)!=at&&(Ye(p,[Mt(p)-1]),Ye(w,[bt(Mt(m),Mt(p))]))}function $e(Be,Xe,Ke,nt){Ke=Number(Ke);var xt=c.floor(Ke);Be["set"+H[Xe]](Be["get"+H[Xe]]()+xt,nt||!1),xt!=Ke&&Xe<s&&$e(Be,Xe+1,(Ke-xt)*re[Xe],nt)}function Pe(Be,Xe,Ke){Be=Be.clone().setUTCMode(!0,!0),Xe=ce(Xe).setUTCMode(!0,!0);var nt=0;if(Ke==m||Ke==p){for(var xt=s,Mt;xt>=Ke;xt--)nt/=re[xt],nt+=ht(Xe,!1,xt)-ht(Be,!1,xt);Ke==p&&(nt+=(Xe.getFullYear()-Be.getFullYear())*12)}else if(Ke==w){var Ye=Be.toDate().setUTCHours(0,0,0,0),at=Xe.toDate().setUTCHours(0,0,0,0);nt=c.round((at-Ye)/g)+(Xe-at-(Be-Ye))/g}else nt=(Xe-Be)/[36e5,6e4,1e3,1][Ke-3];return nt}le.getWeek=function(){return Le(ft(ht,this,!1))},le.getUTCWeek=function(){return Le(ft(ht,this,!0))},le.setWeek=function(Be,Xe){return ye(this,Be,Xe,!1),this},le.setUTCWeek=function(Be,Xe){return ye(this,Be,Xe,!0),this},le.addWeeks=function(Be){return this.addDays(Number(Be)*7)},le.diffWeeks=function(Be){return Pe(this,Be,w)/7};function Le(Be){return me(Be(m),Be(p),Be(w))}function me(Be,Xe,Ke){var nt=new n(ne(Be,Xe,Ke)),xt=Se(we(Be,Xe,Ke));return c.floor(c.round((nt-xt)/g)/7)+1}function we(Be,Xe,Ke){var nt=new n(ne(Be,Xe,Ke));return nt<Se(Be)?Be-1:nt>=Se(Be+1)?Be+1:Be}function Se(Be){var Xe=new n(ne(Be,0,4));return Xe.setUTCDate(Xe.getUTCDate()-(Xe.getUTCDay()+6)%7),Xe}function ye(Be,Xe,Ke,nt){var xt=ft(ht,Be,nt),Mt=ft(ct,Be,nt);Ke===h&&(Ke=we(xt(m),xt(p),xt(w)));var Ye=Se(Ke);nt||(Ye=ot(Ye)),Be.setTime(Ye.getTime()),Mt(w,[xt(w)+(Xe-1)*7])}ce.parsers=[Ae],ce.parse=function(Be){return+ce(""+Be)};function ke(Be,Xe,Ke){for(var nt=ce.parsers,xt=0,Mt;xt<nt.length;xt++)if(Mt=nt[xt](Be,Xe,Ke),Mt)return Mt;return Ke[0]=new n(Be),Ke}function Ae(Be,Xe,Ke){var nt=Be.match(/^(\d{4})(-(\d{2})(-(\d{2})([T ](\d{2}):(\d{2})(:(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/);if(nt){var xt=new n(ne(nt[1],nt[3]?nt[3]-1:0,nt[5]||1,nt[7]||0,nt[8]||0,nt[10]||0,nt[12]?+("0."+nt[12])*1e3:0));return nt[13]?nt[14]&&xt.setUTCMinutes(xt.getUTCMinutes()+(nt[15]=="-"?1:-1)*(Number(nt[16])*60+(nt[18]?Number(nt[18]):0))):Xe||(xt=ot(xt)),Ke.setTime(xt.getTime())}}le.toString=function(Be,Xe,Ke){return Be===h||!et(this)?this[0].toString():Ie(this,Be,Xe,Ke,he(this))},le.toUTCString=le.toGMTString=function(Be,Xe,Ke){return Be===h||!et(this)?this[0].toUTCString():Ie(this,Be,Xe,Ke,!0)},le.toISOString=function(){return this.toUTCString(q)},ce.defaultLocale="",ce.locales={"":{monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],amDesignator:"AM",pmDesignator:"PM"}},ce.formatters={i:R,u:q};function Ie(Be,Xe,Ke,nt,xt){var Mt=ce.locales,Ye=Mt[ce.defaultLocale]||{},at=ft(ht,Be,xt);Ke=(St(Ke)?Mt[Ke]:Ke)||{};function st(gt){return Ke[gt]||Ye[gt]}function vt(gt){if(nt)for(var Ot=(gt==e?w:gt)-1;Ot>=0;Ot--)nt.push(at(Ot));return at(gt)}return qe(Be,Xe,vt,st,xt)}function qe(Be,Xe,Ke,nt,xt){for(var Mt,Ye,at="";Mt=Xe.match(ae);)at+=Xe.substr(0,Mt.index),Mt[1]?at+=Ge(Be,Mt[1],Ke,nt,xt):Mt[3]?(Ye=qe(Be,Mt[4],Ke,nt,xt),parseInt(Ye.replace(/\D/g,""),10)&&(at+=Ye)):at+=Mt[7]||"'",Xe=Xe.substr(Mt.index+Mt[0].length);return at+Xe}function Ge(Be,Xe,Ke,nt,xt){for(var Mt=Xe.length,Ye,at="";Mt>0;)Ye=Je(Be,Xe.substr(0,Mt),Ke,nt,xt),Ye!==h?(at+=Ye,Xe=Xe.substr(Mt),Mt=Xe.length):Mt--;return at+Xe}function Je(Be,Xe,Ke,nt,xt){var Mt=ce.formatters[Xe];if(St(Mt))return qe(Be,Mt,Ke,nt,xt);if(Vt(Mt))return Mt(Be,xt||!1,nt);switch(Xe){case"fff":return Tt(Ke(s),3);case"s":return Ke(y);case"ss":return Tt(Ke(y));case"m":return Ke(A);case"mm":return Tt(Ke(A));case"h":return Ke(z)%12||12;case"hh":return Tt(Ke(z)%12||12);case"H":return Ke(z);case"HH":return Tt(Ke(z));case"d":return Ke(w);case"dd":return Tt(Ke(w));case"ddd":return nt("dayNamesShort")[Ke(e)]||"";case"dddd":return nt("dayNames")[Ke(e)]||"";case"M":return Ke(p)+1;case"MM":return Tt(Ke(p)+1);case"MMM":return nt("monthNamesShort")[Ke(p)]||"";case"MMMM":return nt("monthNames")[Ke(p)]||"";case"yy":return(Ke(m)+"").substring(2);case"yyyy":return Ke(m);case"t":return ve(Ke,nt).substr(0,1).toLowerCase();case"tt":return ve(Ke,nt).toLowerCase();case"T":return ve(Ke,nt).substr(0,1);case"TT":return ve(Ke,nt);case"z":case"zz":case"zzz":return xt?"Z":Te(Be,Xe);case"w":return Le(Ke);case"ww":return Tt(Le(Ke));case"S":var Ye=Ke(w);return Ye>10&&Ye<20?"th":["st","nd","rd"][Ye%10-1]||"th"}}function Te(Be,Xe){var Ke=Be.getTimezoneOffset(),nt=Ke<0?"+":"-",xt=c.floor(c.abs(Ke)/60),Mt=c.abs(Ke)%60,Ye=xt;return Xe=="zz"?Ye=Tt(xt):Xe=="zzz"&&(Ye=Tt(xt)+":"+Tt(Mt)),nt+Ye}function ve(Be,Xe){return Be(z)<12?Xe("amDesignator"):Xe("pmDesignator")}
80Et(["getTime","valueOf","toDateString","toTimeString","toLocaleString","toLocaleDateString","toLocaleTimeString","toJSON"],function(Be){le[Be]=function(){return this[0][Be]()}}),le.setTime=function(Be){return this[0].setTime(Be),this},le.valid=At(et);function et(Be){return!isNaN(Be[0].getTime())}le.clone=function(){return new ce(this)},le.clearTime=function(){return this.setHours(0,0,0,0)},le.toDate=function(){return new n(this[0].getTime())},ce.now=function(){return new n().getTime()},ce.today=function(){return new ce().clearTime()},ce.UTC=ne,ce.getDaysInMonth=bt;function mt(Be){var Xe=new n(Be[0].getTime());return he(Be)&&(Xe.toString=oe),Xe}function ht(Be,Xe,Ke){return Be["get"+(Xe?"UTC":"")+H[Ke]]()}function ct(Be,Xe,Ke,nt){Be["set"+(Xe?"UTC":"")+H[Ke]].apply(Be,nt)}function Ue(Be){return new n(ne(Be.getFullYear(),Be.getMonth(),Be.getDate(),Be.getHours(),Be.getMinutes(),Be.getSeconds(),Be.getMilliseconds()))}function ot(Be){return new n(Be.getUTCFullYear(),Be.getUTCMonth(),Be.getUTCDate(),Be.getUTCHours(),Be.getUTCMinutes(),Be.getUTCSeconds(),Be.getUTCMilliseconds())}function bt(Be,Xe){return 32-new n(ne(Be,Xe,32)).getUTCDate()}function At(Be){return function(){return Be.apply(h,[this].concat(be(arguments)))}}function ft(Be){var Xe=be(arguments,1);return function(){return Be.apply(h,Xe.concat(be(arguments)))}}function be(Be,Xe,Ke){return d.prototype.slice.call(Be,Xe||0,Ke===h?Be.length:Ke)}function Et(Be,Xe){for(var Ke=0;Ke<Be.length;Ke++)Xe(Be[Ke],Ke)}function St(Be){return typeof Be=="string"}function Jt(Be){return typeof Be=="number"}function Bt(Be){return typeof Be=="boolean"}function Vt(Be){return typeof Be=="function"}function Tt(Be,Xe){for(Xe=Xe||2,Be+="";Be.length<Xe;)Be="0"+Be;return Be}return o.exports&&(o.exports=ce),ce})(Date,Math,Array)})(xdate)),xdate.exports}var xdateExports=requireXdate();const XDate=getDefaultExportFromCjs(xdateExports);var sifter$1={exports:{}},sifter=sifter$1.exports,hasRequiredSifter;function requireSifter(){return hasRequiredSifter||(hasRequiredSifter=1,(function(o,n){(function(c,d){o.exports=d()})(sifter,function(){var c=function(z,A){this.items=z,this.settings=A||{diacritics:!0}};c.prototype.tokenize=function(z){if(z=h(String(z||"").toLowerCase()),!z||!z.length)return[];var A,y,s,e,f=[],g=z.split(/ +/);for(A=0,y=g.length;A<y;A++){if(s=m(g[A]),this.settings.diacritics)for(e in w)w.hasOwnProperty(e)&&(s=s.replace(new RegExp(e,"g"),w[e]));f.push({string:g[A],regex:new RegExp(s,"i")})}return f},c.prototype.iterator=function(z,A){var y;p(z)?y=Array.prototype.forEach||function(s){for(var e=0,f=this.length;e<f;e++)s(this[e],e,this)}:y=function(s){for(var e in this)this.hasOwnProperty(e)&&s(this[e],e,this)},y.apply(z,[A])},c.prototype.getScoreFunction=function(s,A){var y,s;y=this,s=y.prepareSearch(s,A),tokens=s.tokens;var e=(function(){return tokens.length?tokens.length===1?function(g){var R,q;return g=String(g||"").toLowerCase(),q=g.search(tokens[0].regex),q===-1?0:(R=tokens[0].string.length/g.length,q===0&&(R+=.5),R)}:function(g){var R,q,H,te;for(g=String(g||"").toLowerCase(),R=0,H=0,te=tokens.length;H<te;H++)q=g.search(tokens[H].regex),q!==-1&&(q===0&&(R+=.5),R+=tokens[H].string.length/g.length);return R/tokens.length}:function(){return 0}})(),f=(function(){var g=s.options.fields;if(!g||!g.length)return function(){return 0};if(g.length===1){var R=g[0];return function(q){return q.hasOwnProperty(R)?e(q[R]):0}}else return function(q){for(var H=0,te=0,re=0,ae=g.length;re<ae;re++)q.hasOwnProperty(g[re])&&(te+=e(q[g[re]]),H++);return te/H}})();return f},c.prototype.prepareSearch=function(z,A){return typeof z=="object"?z:{options:d({},A),query:String(z||"").toLowerCase(),tokens:this.tokenize(z),total:0,items:[]}},c.prototype.search=function(z,A){var y=this,s,e,f;return e=this.prepareSearch(z,A),A=e.options,z=e.query,p(A.fields)||(A.fields=[A.fields]),f=A.score||y.getScoreFunction(e),z.length?(y.iterator(y.items,function(g,R){s=f(g),s>0&&e.items.push({score:s,id:R})}),e.items.sort(function(g,R){return R.score-g.score})):(y.iterator(y.items,function(g,R){e.items.push({score:1,id:R})}),A.sort&&e.items.sort((function(){var g=A.sort,R=A.direction==="desc"?-1:1;return function(q,H){return q=q&&String(y.items[q.id][g]||"").toLowerCase(),H=H&&String(y.items[H.id][g]||"").toLowerCase(),q>H?1*R:H>q?-1*R:0}})())),e.total=e.items.length,typeof A.limit=="number"&&(e.items=e.items.slice(0,A.limit)),e};var d=function(z,A){var y,s,e,f;for(y=1,s=arguments.length;y<s;y++)if(f=arguments[y],!!f)for(e in f)f.hasOwnProperty(e)&&(z[e]=f[e]);return z},h=function(z){return(z+"").replace(/^\s+|\s+$|/g,"")},m=function(z){return(z+"").replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")},p=Array.isArray||$&&$.isArray||function(z){return Object.prototype.toString.call(z)==="[object Array]"},w={a:"[aÀÁÂÃÄÅàáâãäå]",c:"[cÇç]",e:"[eÈÉÊËèéêë]",i:"[iÌÍÎÏìíîï]",n:"[nÑñ]",o:"[oÒÓÔÕÕÖØòóôõöø]",s:"[sŠš]",u:"[uÙÚÛÜùúûü]",y:"[yŸÿý]",z:"[zŽž]"};return c})})(sifter$1)),sifter$1.exports}requireSifter();XDate.locales.de={monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthNamesShort:["Jan.","Feb.","Mär.","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],dayNames:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],dayNamesShort:["So","Mo","Di","Mi","Do","Fr","Sa"]};XDate.defaultLocale="de";function parseDate(o){var n=o.split(" "),c=n[0].split("."),d=n[1]?n[1].split(":"):0;if(c.length==3)return new XDate(parseInt(c[2],10),parseInt(c[1]?c[1]-1:0,10),parseInt(c[0],10),parseInt(d[0],10),parseInt(d[1]?d[1]:0,10),0)}function parsedmy(o){var n=o.split(".");if(n.length==3)return new XDate(parseInt(n[2],10),parseInt(n[1]?n[1]-1:0,10),parseInt(n[0],10))}XDate.parsers.push(parsedmy);XDate.parsers.push(parseDate);let md=new MarkdownIt({html:!0,xhtmlOut:!0,breaks:!0,typographer:!0});md.use(MarkdownItAttrs).use(collapsiblePlugin);const markdownit=o=>{if(!o)return"";try{return md.render(o)}catch{return o}},markdownitinline=o=>{if(!o)return"";try{return md.renderInline(o)}catch{return o}};window.getel=function(o,n){return(n||document).querySelector(o)};window.getels=function(o,n){const c=n||document;
80return _.map(c.querySelectorAll(o),function(d){return d})};const xdatelokalisiert=function(o){var n=new XDate(o,!0),c=n.getFullYear(),d=new XDate(c,2,31-(Math.floor(5*c/4)+4)%7,1,!0)<=n&&n<new XDate(c,9,31-(Math.floor(5*c/4)+1)%7,1,!0)?2:1;return n.addHours(d)},oderleer=o=>o||"",perc2color=function(o){var n,c,d=0;o<50?(n=255,c=Math.round(5.1*o)):(c=255,n=Math.round(510-5.1*o));var h=n*65536+c*256+d*1;return"#"+("000000"+h.toString(16)).slice(-6)},wiebald=o=>xdatelokalisiert(new XDate(!0)).diffHours(xdatelokalisiert(o)),spielplanmonateweise=function(o){let n=[],c=[],d=[];return _.each(o,function(h,m,p){p[m-1]?(h.beginn.substr(0,10)!=p[m-1].beginn.substr(0,10)&&(c.push(d),d=[]),h.beginn.substr(0,7)!=p[m-1].beginn.substr(0,7)&&(n.push(c),c=[]),d.push(h),p[m+1]||(c.push(d),n.push(c))):(d.push(h),o.length==1&&(c.push(d),n.push(c)))}),n},delay=o=>new Promise(n=>{const c=setTimeout(()=>{n(),clearTimeout(c)},o)}),sizzle=function(o,n){let c=document;return _.map(c.querySelectorAll(o),function(d){return d})},mauerbau=async function(o,n){let c=document.querySelectorAll(".stein");if(!c.length)return;let d=0,h=Number.isFinite(n)?n+1:0,m=document.getElementsByClassName("main")[0].getBoundingClientRect().width,p=36,w=Math.floor((m-p)/144),z=(m-p)/w-p;d=Number.isFinite(o)&&o>0?o:Math.max(Math.floor(w/3)*3,3);let A=(m-(z*d+p*(d-1)))/2-p,y=[],s=[],e=[],f=[];function g(ce){return _.map(y,function(ue,he,ge){return _.max(y.slice(he,he+ce))}).slice(0,-(ce-1))}for(var R=0;R<d;R++)y.push(270),e.push(null);document.querySelectorAll(".fuellblock").forEach(ce=>ce.remove());for(let ce=0;ce<c.length;ce++){const ue=c[ce].className.match(/(^| )w(\d)( |$)/),he=c[ce].className.match(/(^| )m(\d)( |$)/);let ge=ue?ue[0].trim():he?he[0].trim():0;var q=d>1?he?d-he[2]:ue?Math.min(ue[2],Math.floor(m/(z+p))):1:1,H=q>1?g(q):y,te=H.length?_.min(H):0,re=H.indexOf(te),ae=p+re*(z+p);let Oe=0;he?Oe=q*(z+p)-p+"px":ue?Oe=Math.min(ue[2],q)*(z+p)-p+"px":Oe=z+p-p+"px",c[ce].style.width=Oe,c[ce].style.display="block",c[ce].style.position="absolute",c[ce].style.left=ae+A+"px",c[ce].style.top=te+"px";var ne=[...y],oe=[...y],le=c[ce].sv?Oe/(c[ce].sv*1):c[ce].offsetHeight;c[ce].offsetHeight;for(let me=1;me<=q;me++)y[re+me-1]=te+le+p,oe[re+me-1]=te,e[re+me-1]=ge;s.push([...e]);let $e=_.map(ne,(me,we)=>oe[we]-me?{a:ge,o:ne[we],h:oe[we]-me-p}:{o:1,h:1});const Pe=$e.reduce((me,we,Se)=>(we.f=Se,me.length&&me[me.length-1][0].o==we.o?me[me.length-1].push(we):me.push([we]),me),[]);[...$e];let Le=_.filter(_.map(Pe,me=>(me[0].c=me.length,me[0].w=me[0].c*(z+p)-p,me[0].l=A+me[0].f*(z+p)+p,me[0])),me=>me.o!=1);Le.length&&(f=[...Le,...f])}if(d>1&&h<w&&_.filter(s,ce=>!!ce[d-1]&&ce[d-1]!="m0").length<1)window.requestAnimationFrame(function(){mauerbau(d-1,h)});else{for(let ce=0;ce<f.length;ce++){let ue=document.createElement("div");ue.setAttribute("class","kaestchen fuellblock"),ue.style.height=f[ce].h+"px",ue.style.width=f[ce].w+"px",ue.style.top=f[ce].o+"px",ue.style.left=f[ce].l+"px",document.querySelector(".mauer").appendChild(ue)}return!0}};let mauerbauTimer=null;const mauerbauDebounced=function(o=300){mauerbauTimer&&clearTimeout(mauerbauTimer),mauerbauTimer=setTimeout(()=>{mauerbauTimer=null,mauerbau()},o)};function clickOutside(o){const n=c=>{o&&!o.contains(c.target)&&!c.defaultPrevented&&o.dispatchEvent(new CustomEvent("click_outside",o))};return document.addEventListener("click",n,!0),{destroy(){document.removeEventListener("click",n,!0)}}}function spielzeitJahr(o){const n=new XDate(!0),c=n.getFullYear(),h=n.getMonth()+1>=9?c:c-1;return String(h).slice(-2)}var root_4$v=from_html('<li class="svelte-gk7mq0"><a role="menuitem" class="svelte-gk7mq0"></a></li>'),root_2$w=from_html('<ul class="column svelte-gk7mq0"><li class="svelte-gk7mq0"><h3 class="svelte-gk7mq0"> </h3> <ul class="svelte-gk7mq0"></ul></li></ul>'),root$K=from_html('<button aria-label="Menu" aria-haspopup="true" aria-controls="menu" id="hamburgermenu"><div class="hamburger-box svelte-gk7mq0"><div></div></div></button> <div aria-modal="true"><div class="nav svelte-gk7mq0" id="menu" role="menu" aria-labelledby="hamburgermenu"><!></div></div>',1);function HamburgerNav(o,n){push(n,!0);const c=function(R){try{return Hjson.parse(R)}catch{return!1}};let d=state(void 0);onMount(async()=>{let q=await(await fetch("/api/seite/navigation")).json(),H=q.rows[0]?q.rows[0].doc.kaesten[0].text:null;set(d,c(H)?c(H):null,!0)});function h(R){R.target.tagName=="A"&&(appState.isNavOpen=!1),linkHandler(R),R.stopPropagation()}const m=R=>{R.key==="Escape"&&(appState.isNavOpen=!1)},p=async()=>{appState.isNavOpen=!appState.isNavOpen};var w=root$K();
80event("keydown",$window,m);var z=first_child(w),A=child(z),y=child(A),s=sibling(z,2),e=child(s),f=child(e);{var g=R=>{var q=comment$1(),H=first_child(q);each(H,17,()=>get(d),index,(te,re)=>{var ae=root_2$w(),ne=child(ae),oe=child(ne),le=child(oe),ce=sibling(oe,2);each(ce,21,()=>get(re).items,index,(ue,he)=>{var ge=comment$1(),Oe=first_child(ge);{var $e=Pe=>{var Le=root_4$v(),me=child(Le);html(me,()=>markdownitinline(appState.sprache=="de"||appState.sprache=="ls"||appState.sprache=="es"?get(he).text:get(he).english),!0),template_effect(()=>set_attribute(me,"href",get(he).ziel)),append(Pe,Le)};if_block(Oe,Pe=>{((appState.sprache=="de"||appState.sprache=="ls"||appState.sprache=="es")&&get(he).text||appState.sprache=="en"&&get(he).english)&&Pe($e)})}append(ue,ge)}),template_effect(()=>set_text(le,appState.sprache=="de"||appState.sprache=="ls"||appState.sprache=="es"?get(re).kategorie??"":get(re).category??"")),append(te,ae)}),append(R,q)};if_block(f,R=>{get(d)&&R(g)})}template_effect(()=>{set_attribute(z,"aria-expanded",!!appState.isNavOpen),set_class(z,1,`hamburger hamburger--spring ${appState.isNavOpen?"is-active":""}`,"svelte-gk7mq0"),set_class(y,1,`hamburger-inner ${appState.doc.hero&&appState.ypsilon<740?"aufhero":""}`,"svelte-gk7mq0"),set_class(s,1,`navwrap ${appState.isNavOpen?"open":""}`,"svelte-gk7mq0")}),delegated("click",z,()=>{p()}),delegated("click",s,h),append(o,w),pop()}delegate(["click"]);enable_legacy_mode_flag();delegate(["click"]);var root$J=from_html('<div class="textareacontainer svelte-1pbmf0u"><pre aria-hidden="true" class="svelte-1pbmf0u"> </pre> <textarea class="svelte-1pbmf0u"></textarea></div>');function Textarea$1(o,n){push(n,!0);let c=prop(n,"value",15),d=prop(n,"minRows",3,1),h=user_derived(()=>`${1+d()*1.2}em`),m=user_derived(()=>n.maxRows?`${1+n.maxRows*1.2}em`:"auto"),p=user_derived(()=>c()??"");var w=root$J(),z=child(w),A=child(z),y=sibling(z,2);template_effect(()=>{set_style(z,`min-height: ${get(h)??""}; max-height: ${get(m)??""}`),set_text(A,get(p)+`
81`),set_value(y,get(p)),set_attribute(y,"title",n.title),set_attribute(y,"placeholder",n.title)}),delegated("input",y,s=>{c(s.currentTarget.value||void 0),n.oninput?.(s)}),append(o,w),pop()}delegate(["input"]);var root$I=from_html('<div class="footer svelte-st66v"><p class="svelte-st66v"><a aria-label="Tiktok" href="https://www.tiktok.com/@staatstheateraugsburg" target="_blank" rel="noopener" style="margin-right: .5rem;" class="svelte-st66v"><svg style="width:28px;vertical-align:-5px;" id="Ebene_1" data-name="Ebene 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs></defs><path class="dunkelgruen svelte-st66v" d="M293.35,421.81h-19.2a2.41,2.41,0,0,0-2.4,2.4v19.2a2.41,2.41,0,0,0,2.4,2.4h19.2a2.41,2.41,0,0,0,2.4-2.4v-19.2A2.41,2.41,0,0,0,293.35,421.81Zm-.92,10.37a7.1,7.1,0,0,1-1.72-.2,8.29,8.29,0,0,1-2.71-1.17s-.09-.09-.13-.07,0,.11,0,.16c0,2.24,0,4.48,0,6.72a6.42,6.42,0,0,1-9.31,5.72A3.32,3.32,0,0,1,278,443l-.16-.14h0a1.72,1.72,0,0,1-.33-.22,6.36,6.36,0,0,1-2.15-3.1,6.77,6.77,0,0,1-.27-1.34,6.54,6.54,0,0,1,0-1,6.38,6.38,0,0,1,4.19-5.56,6.43,6.43,0,0,1,1.69-.35,6.63,6.63,0,0,1,1.26,0c.05,0,.09,0,.09.09,0,.23,0,.46,0,.7,0,0,0,1.76,0,2.57v.09c0,.08,0,.11-.12.08a3.1,3.1,0,0,0-.68-.1,2.58,2.58,0,0,0-1,.15,2.88,2.88,0,0,0-.65,5.12c.08.06.17.11.24.17l.06.05a3.18,3.18,0,0,0,.68.22,2.84,2.84,0,0,0,2.11-.36,2.88,2.88,0,0,0,1.36-2,2.81,2.81,0,0,0,0-.5q0-6.75,0-13.49c0-.21,0-.19.17-.19h3.19c.11,0,.11,0,.11.11s.1.81.1.85c.45,2.28,3.1,3.67,3.92,3.79a5.05,5.05,0,0,0,.68.06c.09,0,.1,0,.1.09s0,2.39,0,3.18C292.64,432.18,292.61,432.18,292.43,432.18Z" transform="translate(-271.75 -421.81)"></path></svg></a> <a aria-label="facebook" style="margin-right: .5rem;" href="https://www.facebook.com/theateraugsburg" target="_blank" rel="noopener" class="svelte-st66v"><svg id="Ebene_1" xmlns="http://www.w3.org/2000/svg" style="width:28px;vertical-align:-5px;" viewBox="0 0 24 24"><defs><style>.dunkelgruen{fill:#004122;}.cls-2{fill:#fff;}</style></defs><path class="dunkelgruen svelte-st66v" d="M21.42,0H2.58C1.16,0,0,1.16,0,2.58v18.85c0,1.42,1.16,2.57,2.58,2.57h18.84c1.42,0,2.57-1.15,2.58-2.57V2.58c0-1.42-1.16-2.57-2.58-2.58Z"></path><g id="g31"><path id="path33" class="cls-2" d="M17.74,15.11l.72-3.93h-4.2v-1.39c0-2.08.81-2.87,2.92-2.87.65,0,1.18.02,1.49.05v-3.56c-.57-.16-1.98-.32-2.79-.32-4.3,0-6.28,2.03-6.28,6.4v1.69h-2.65v3.93h2.65v8.89c2.55,0,2.81,0,4.77,0l-.1-8.89h3.48Z"></path></g></svg></a> <a aria-label="instagram" href="https://www.instagram.com/staatstheater_augsburg/" target="_blank" rel="noopener" style="margin-right: .5rem;" class="svelte-st66v"><svg style="width:28px;vertical-align:-5px;" id="Ebene_1" data-name="Ebene 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs></defs>
81<path class="dunkelgruen svelte-st66v" d="M314.7,419.19H298.27a3.45,3.45,0,0,0-3.44,3.44v16.43a3.45,3.45,0,0,0,3.44,3.44H314.7a3.45,3.45,0,0,0,3.44-3.44V422.63A3.45,3.45,0,0,0,314.7,419.19Zm-8.21,7.55a3.85,3.85,0,1,1-3.85,3.85A3.86,3.86,0,0,1,306.49,426.74Zm8.45,11.26a.85.85,0,0,1-.85.85h-15a.85.85,0,0,1-.85-.85v-9.56h2.35a6.33,6.33,0,0,0-.26,1.85,6.39,6.39,0,0,0,12.78,0,6.33,6.33,0,0,0-.26-1.85h2.35v9.56Zm0-11.69a.85.85,0,0,1-.85.85h-3.84a.85.85,0,0,1-.85-.85v-3.84a.85.85,0,0,1,.85-.85h3.84a.85.85,0,0,1,.85.85v3.84Z" transform="translate(-294.83 -419.19)"></path></svg></a> <a aria-label="youtube" href="https://www.youtube.com/@StaatstheaterAugsburg" target="_blank" rel="noopener" style="margin-right: .5rem;" class="svelte-st66v"><svg style="width:28px;vertical-align:-5px;" id="Ebene_1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs><style>.cls-1{fill:#004122;}.cls-2{fill:#fff;}</style></defs><path class="cls-1" d="M21.42,0H2.58C1.16,0,0,1.16,0,2.58v18.85c0,1.42,1.16,2.57,2.58,2.57h18.84c1.42,0,2.57-1.15,2.58-2.57V2.58c0-1.42-1.16-2.57-2.58-2.58Z"></path><path class="cls-2" d="M4.8,13.12h1.2v6.51h1.14v-6.51h1.23v-1.07h-3.57v1.07ZM14.42,13.92c-.38,0-.73.21-1.06.61v-2.47h-1.02v7.58h1.02v-.55c.34.42.69.62,1.06.62.41,0,.68-.21.82-.63.07-.24.1-.62.1-1.14v-2.25c0-.53-.04-.91-.1-1.13-.14-.42-.41-.64-.82-.64ZM14.32,18.02c0,.51-.15.76-.45.76-.17,0-.34-.08-.51-.25v-3.44c.17-.17.34-.25.51-.25.3,0,.45.26.45.77v2.41ZM10.43,18.3c-.23.32-.44.48-.65.48-.14,0-.21-.08-.24-.24,0-.03,0-.16,0-.4v-4.16h-1.02v4.46c0,.4.03.67.09.84.1.29.33.42.66.42.38,0,.76-.23,1.17-.69v.62h1.02v-5.65h-1.02v4.31ZM11.31,8.77c.33,0,.49-.26.49-.79v-2.4c0-.53-.16-.79-.49-.79s-.49.26-.49.79v2.4c0,.53.16.79.49.79ZM13.69,3.92h1.03v4.2c0,.24,0,.37.01.4.02.16.1.24.24.24.21,0,.42-.16.65-.48V3.92h1.03v5.71h-1.03v-.62c-.41.47-.8.7-1.18.7-.33,0-.56-.14-.67-.42-.06-.17-.09-.45-.09-.85V3.92h0ZM9.78,5.78c0-.61.1-1.06.32-1.34.29-.39.69-.59,1.2-.59s.92.19,1.21.59c.22.29.32.73.32,1.34v2c0,.61-.1,1.06-.32,1.34-.29.39-.69.58-1.21.58s-.92-.19-1.2-.58c-.22-.29-.32-.74-.32-1.34v-2ZM7.02,1.97l.81,3.01.78-3.01h1.16l-1.38,4.56v3.1h-1.15v-3.1c-.1-.55-.33-1.35-.7-2.42-.24-.71-.49-1.42-.73-2.13h1.21ZM20.17,20.13c-.21.9-.94,1.56-1.83,1.66-2.1.23-4.22.24-6.34.23-2.11,0-4.24,0-6.34-.23-.89-.1-1.62-.76-1.83-1.66-.3-1.28-.3-2.68-.3-4s0-2.72.3-4c.21-.9.94-1.56,1.83-1.66,2.1-.23,4.22-.24,6.34-.23,2.11,0,4.24,0,6.34.23.89.1,1.62.76,1.83,1.66.29,1.28.29,2.68.29,4s0,2.72-.3,4ZM17.68,13.92c-.52,0-.93.19-1.23.58-.22.29-.32.73-.32,1.33v1.98c0,.6.11,1.04.33,1.33.3.39.7.58,1.24.58s.95-.2,1.24-.61c.12-.18.2-.39.24-.61,0-.1.02-.33.02-.66v-.15h-1.04c0,.41-.01.64-.02.69-.06.27-.21.41-.46.41-.35,0-.52-.26-.52-.78v-1h2.05v-1.17c0-.6-.1-1.04-.32-1.33-.29-.39-.69-.58-1.21-.58ZM18.18,16.14h-1.02v-.52c0-.52.17-.78.51-.78s.51.26.51.78v.52Z"></path></svg></a></p><p class="svelte-st66v"><a href="/newsletter" class="svelte-st66v">Newsletter</a> <a href="/kontakt" class="svelte-st66v">kontakt</a> <a href="/stellenangebote" class="svelte-st66v">Jobs</a> <a href="/pressematerialien" class="svelte-st66v">Presse</a> <a href="/impressum" class="svelte-st66v">Impressum</a></p></div>');function Fuss(o){var n=root$I();append(o,n)}var root_2$v=from_svg('<path class="path svelte-2mmidr"></path>'),root_4$u=from_svg('<path class="ananas svelte-2mmidr"></path>'),root$H=from_svg('<svg class="svglogo svelte-2mmidr" role="img" aria-labelledby="staug logo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 655.52 782.11"><title id="staug">Staatstheater Augsburg</title><desc id="logo">Logo</desc><defs></defs><!></svg>');function Logo(o,n){push(n,!0);let c=state(!1),d=state(!1),h=user_derived(()=>appState.doc.hero&&appState.curRoute!="/spielplan"?"#fff":"#004122");const m=async()=>{for(;;)set(c,!0),await delay(16e3),set(c,!1),await delay(1e3),set(d,!0),await delay(12e3),set(d,!1),await delay(2e3)};onMount(async()=>{m()});const p=[{type:"path",d:"M74.88,237.31v4.26c0,4.92,6.09,7.75,12.84,7.75,7.59,0,13.1-3.75,13.1-10.59,0-7.67-7.09-10.34-14.68-13.18s-15.68-6-15.68-16.26S78.72,194,88.31,194c8.34,0,16.93,3.25,16.93,9.17v6.26H99.65v-4.34c0-3.75-6.09-5.75-11.34-5.75-6.67,0-11.84,3.25-11.84,9.5,0,7.09,6.33,9.34,13.42,12.1,8.51,3.17,16.93,6.42,16.93,17.18,0,10.34-8.25,16.51-19.1,16.51-8.42,0-18.43-3.75-18.43-11.76v-5.59Z"},{type:"path",d:"M174.1,248.82h7.68V200H165.35v9.5h-5.26V195H209.3v14.51H204V200H187.61v48.78h7.68v4.84H174.1Z"},{type:"path",d:"M254.23,248.82h6L280,195h6.42l19.76,53.79h6v4.84H293.42v-4.84h6.76l-5.59-15.09H271.74l-5.5,15.09H273v4.84H254.23Zm38.78-20-8.76-24a21.78,21.78,0,0,1-.92-3.76h-.25a17.44,17.44,0,0,1-.83,3.76l-8.92,24Z"},{type:"path",d:"M359.87,248.82h6L385.64,195h6.42l19.76,53.79h6v4.84H399.06v-4.84h6.76l-5.59-15.09H377.38l-5.5,15.09h6.75v4.84H359.87Zm38.77-20-8.75-24A21.78,21.78,0,0,1,389,201h-.25a18.18,18.18,0,0,1-.83,3.76l-8.93,24Z"},{type:"path",d:"M476.77,248.82h7.67V200H468v9.5h-5.25V195H512v14.51h-5.34V200H490.28v48.78H498v4.84H476.77Z"},{type:"path",d:"M571,237.31v4.26c0,4.92,6.09,7.75,12.85,7.75,7.59,0,13.09-3.75,13.09-10.59,0-7.67-7.09-10.34-14.68-13.18s-15.68-6-15.68-16.26S574.82,194,584.41,194c8.34,0,16.93,3.25,16.93,9.17v6.26h-5.59v-4.34c0-3.75-6.09-5.75-11.34-5.75-6.67,0-11.84,3.25-11.84,9.5,0,7.09,6.34,9.34,13.42,12.1,8.51,3.17,16.93,6.42,16.93,17.18,0,10.34-8.25,16.51-19.09,16.51-8.43,0-18.43-3.75-18.43-11.76v-5.59Z"},{type:"path",d:"M0 307.31 9.78 307.31 9.78 298.38 20.53 298.38 20.53 339.95 13.3 339.95 13.3 349 38.59 349 38.59 339.95 31.36 339.95 31.36 298.38 42.11 298.38 42.11 307.31 51.89 307.31 51.89 289 0 289 0 307.31z"},{type:"path",d:"M125.61 297.97 125.61 289 100.41 289 100.41 297.97 107.55 297.97 107.55 339.95 100.41 339.95 100.41 349 125.61 349 125.61 339.95 118.39 339.95 118.39 323.69 145.36 323.69 145.36 339.95 138.14 339.95 138.14 349 163.34 349 163.34 339.95 156.2 339.95 156.2 297.97 163.34 297.97 163.34 289 138.14 289 138.14 297.97 145.36 297.97 145.36 314.32 118.39 314.32 118.39 297.97 125.61 297.97z"},{type:"path",d:"M259.37 332.73 249.59 332.73 249.59 339.63 231.78 339.63 231.78 323.45 252.07 323.45 252.07 314.07 231.78 314.07 231.78 298.38 248.21 298.38 248.21 305.03 257.99 305.03 257.99 289 213.81 289 213.81 297.97 220.95 297.97 220.95 339.95 213.81 339.95 213.81 349 259.37 349 259.37 332.73z"},{type:"path",d:"M328.88,340h-5.61l3.51-10h18.35l3.51,10h-5.53V349h22.6V340h-5.92L341.53,289H330.45L312.2,340h-5.92V349h22.6ZM336,303.19l6.15,17.53H329.77Z"},{type:"path",d:"M458.66 307.31 458.66 289 406.77 289 406.77 307.31 416.55 307.31 416.55 298.38 427.3 298.38 427.3 339.95 420.08 339.95 420.08 349 445.36 349 445.36 339.95 438.13 339.95 438.13 298.38 448.88 298.38 448.88 307.31 458.66 307.31z"},{type:"path",d:"M552.75 332.73 542.97 332.73 542.97 339.63 525.17 339.63 525.17 323.45 545.45 323.45 545.45 314.07 525.17 314.07 525.17 298.38 541.59 298.38 541.59 305.03 551.37 305.03 551.37 289 507.19 289 507.19 297.97 514.33 297.97 514.33 339.95 507.19 339.95 507.19 349 552.75 349 552.75 332.73z"},{type:"path",d:"M652.45,340c-1.83,0-2.26-.27-2.79-1.18l-8.09-14.07a8.56,8.56,0,0,0-1.08-1.6c6.71-2.61,10.65-8.69,10.65-16.67s-4-13.8-10.91-16.14c-3.21-1.07-6.59-1.29-11-1.29H603.06v9h7.14v42h-7.14V349h25V340H621V325.88h5.45c3,0,3.62.48,4.82,2.47L640.16,344c2.17,3.8,3.72,5,9.13,5h6.23V340ZM631.2,316.5H621V298.38h8.13a18.5,18.5,0,0,1,6.54.95c3,1.25,4.51,3.78,4.51,7.75C640.22,313,636.85,316.5,631.2,316.5Z"},{type:"path",d:"M127.15,457.77h34.39l6.77,19.33H158v15.71h40.62V477.1H187.83l-33.55-93.66H134.56L101,477.1H90.25v15.71h40.63V477.1h-10.5Zm17.21-49.91a.7.7,0,0,1,.06-.19,1.34,1.34,0,0,0,.09.26l11.86,33.82H132.32Z"},{type:"path",d:"M234.57,478.41c7.6,10.29,20.81,16.19,36.24,16.19,15.59,0,28.69-5.91,36-16.23,4.95-7,7.67-16.55,7.67-26.82V399h13.13V383.44h-45.4V399h13.28v52.24c0,6.27-1.3,11.79-3.74,15.94-3.86,6.39-11.48,10.06-20.92,10.06s-17-3.57-20.93-9.78c-2.43-3.92-3.72-9.47-3.72-16.07V399h13.28V383.44H213.89V399h13.28v52.54C227.17,462.67,229.66,471.71,234.57,478.41Z"},{type:"path",d:"M436.79,494.6h17.87V439h0v-.1H416.28v15.72h20.51v4.84c-.65,11.81-17.71,18.06-26.08,18.06-23,0-38.52-16.14-38.52-40.16,0-23.58,14.95-38.82,38.08-38.82,11.9,0,24.2,4.15,24.2,11.08v9.8h17.81v-15c0-15.7-24.83-22.77-42.46-22.77-33.16,0-
8157.22,23.63-57.22,56.18,0,32.89,24,56.77,57.07,56.77,9.7,0,19.44-4,27.12-10.12Z"},{type:"path",d:"M527.92,428.76l-.9-.34c-12.49-4.74-20.16-8.1-20.16-17.14s8.5-12.42,16.45-12.42c7.7,0,16,2.81,16,7.35v9.35h17.95V401.14c0-12.79-17.08-19.49-34-19.49-17.28,0-35.74,8-35.74,30.38,0,20.69,17,27.08,29.33,31.73l2.29.88c11.68,4.53,21.77,8.43,21.77,18.54,0,10.37-9.73,14.07-18.84,14.07s-19-3.63-19-10.34v-9.8H485.33v13.08c0,16,18.51,24.41,36.79,24.41,22.72,0,38-13.1,38-32.61C560.1,440.84,543,434.42,527.92,428.76Z"},{type:"path",d:"M227.59,578.09c7-5,11-13,11-22.41,0-11.47-6-21.27-15.66-25.57-5.16-2.36-10.76-3.32-19.34-3.32H153.64v15.57h13.12v78.09H153.64v15.71h51.85c6.09,0,11.21-.34,16.47-2,12.62-4.32,20.77-16.08,20.77-30C242.73,592.12,237,582.47,227.59,578.09Zm-41.83-35h17.8c4.29,0,7.37.58,9.87,1.83,3.7,2.09,5.82,6.5,5.82,12.09,0,8.54-5.28,14.06-13.46,14.06h-20Zm28.93,75.41a22.64,22.64,0,0,1-8.6,1.33H185.76V587.4h21.52c9.81,0,16.15,6.28,16.15,16C223.43,610.49,220.09,616.28,214.69,618.51Z"},{type:"path",d:"M338,542.36h13.28V594.6c0,6.27-1.3,11.78-3.74,15.94-3.85,6.39-11.48,10.05-20.91,10.05s-17-3.57-20.93-9.77c-2.44-3.92-3.72-9.47-3.72-16.07V542.36h13.27V526.79H269.67v15.57H283V594.9c0,11.12,2.49,20.16,7.4,26.86C298,632.05,311.17,638,326.6,638s28.69-5.91,36-16.23c4.95-7,7.68-16.55,7.68-26.82V542.36h13.12V526.79H338Z"},{type:"path",d:"M494.51,618l-14.87-25.88a15.59,15.59,0,0,0-2.37-3.35c12.53-4.6,19.9-15.74,19.9-30.45,0-14.34-7.2-25-19.75-29.23-5.84-2-12-2.34-20-2.34H409.72v15.57h13.12v78.09H409.72v15.71h45.09V620.45h-13V593.66h10.48c5.76,0,7,1,9.26,4.78l16.26,28.78c3.89,6.82,6.66,8.94,16.39,8.94h11V620.45H500C496.5,620.45,495.55,619.84,494.51,618ZM461,577.35H441.84V543.1h15.4a34.61,34.61,0,0,1,12.21,1.79c5.68,2.32,8.57,7.26,8.57,14.66C478,570.53,471.48,577.35,461,577.35Z"},{type:"path",d:"M340.24,726.43v15.71h20.51V747c-.65,11.81-17.71,18.06-26.08,18.06-23,0-38.52-16.14-38.52-40.16,0-23.58,15-38.82,38.07-38.82,11.91,0,24.21,4.14,24.21,11.08V707h17.81v-15c0-15.7-24.83-22.77-42.46-22.77-33.16,0-57.22,23.63-57.22,56.18,0,32.89,24,56.77,57.07,56.77,9.7,0,19.43-4,27.12-10.12v10.12h17.87V726.53h0v-.1Z"},{id:"krone",type:"path",d:"M429.71,30.91c-33.57-6.42-48.44,36.54-53.32,50.66-.92,2.66-2.17,6.19-3.67,10.36L341.28,3.32a5.83,5.83,0,0,0-10.53,0L299.31,91.93c-1.5-4.17-2.75-7.7-3.67-10.36-4.88-14.12-19.75-57.08-53.31-50.66-15.23,2.9-25.46,15.15-25.46,30.47A29.92,29.92,0,0,0,227,83.57a37.82,37.82,0,0,0,23.26,9.74L280.05,151a5.1,5.1,0,0,0,4.81,2.71,5.05,5.05,0,0,0,4.41-3.34l4.88-13.77-5.41-14.85L283.66,136l-27.82-53.6a10.54,10.54,0,0,1-3,.78c-6.19.52-13.85-2.29-19.05-7.06a19.86,19.86,0,0,1-6.84-14.76c0-10.5,6.78-18.58,17.27-20.58,16.85-3.22,30.56,11.2,41.91,44.06,1.56,4.51,4.08,11.52,7.13,19.92l6.18,16.91h0c13.45,36.65,31.1,83.9,31.35,84.58a5,5,0,0,0,4.72,3.27h1a5,5,0,0,0,4.71-3.27c.25-.68,17.9-47.93,31.35-84.58h0l6.17-16.91c3.05-8.4,5.57-15.41,7.13-19.92C397.26,52,411,37.58,427.82,40.8c10.49,2,17.27,10.08,17.27,20.58a19.89,19.89,0,0,1-6.83,14.76c-5.21,4.77-12.86,7.58-19.05,7.06a10.55,10.55,0,0,1-3-.78L388.37,136l-5.08-14.31-5.41,14.85,4.89,13.77a5,5,0,0,0,4.4,3.34A5.1,5.1,0,0,0,392,151l29.81-57.65a37.82,37.82,0,0,0,23.26-9.74,29.92,29.92,0,0,0,10.11-22.19C455.16,46.06,444.93,33.81,429.71,30.91ZM336,191.29s-21.37-57.22-31.31-84.47L336,18.62l31.32,88.2C357.38,134.07,343.06,172.39,336,191.29Z"}],w=[{type:"path",class:"ananas",d:"M295.27,463.14l31.06-37.61,31.06,37.61c4.4,6.9,4.4,15.83,0,22.85l-20.47,31.9c-5,7.74-16.19,7.74-21.07,0l-20.47-31.9c-4.64-7.02-4.64-15.95-.12-22.85"},{type:"path",class:"ananas",d:"M195.41,463.14l28.68-28.68,28.8,28.68c4.17,6.9,4.17,15.83,0,22.85l-18.92,31.78c-4.64,7.74-15,7.74-19.64,0l-18.92-31.9c-4.17-6.9-4.17-15.83,0-22.73"},{type:"path",class:"ananas",d:"M392.75,463.5l28.8-28.68,28.8,28.68c4.17,6.9,4.17,15.83,0,22.85l-18.92,31.9c-4.64,7.74-15,7.74-19.64,0l-18.92-31.9c-4.28-6.9-4.28-15.83-.12-22.85"},{type:"path",class:"ananas",d:"M295.27,604.66l31.06-41.54,31.06,41.54c4.4,6.9,4.4,15.83,0,22.73l-20.47,31.9c-5,7.74-16.19,7.74-21.07,0l-20.47-31.9c-4.64-6.9-4.64-15.83-.12-22.73"},{type:"path",class:"ananas",d:"M243.62,538.01l31.06-41.54,31.06,41.54c4.4,6.9,4.4,15.83,0,22.85l-20.47,31.78c-5,7.74-16.19,7.74-21.19,0l-20.47-31.9c-4.4-6.9-4.4-15.83,0-22.73"},{type:"path",class:"ananas",d:"M343.47,538.01l31.06-41.54,31.06,41.54c4.4,6.9,4.4,15.83,0,22.85l-20.59,31.78c-5,7.74-16.19,7.74-21.19,0l-20.35-31.9c-4.52-6.9-4.52-15.83,0-22.73"},{type:"path",class:"ananas",d:"M435.83,538.01l26.18-41.54,26.18,41.54c3.81,6.9,3.81,15.83,0,22.85l-17.26,22.97c-4.17,7.74-13.69,7.74-17.85,0l-17.26-22.97c-3.69-7.02-3.69-15.95,0-22.85"},{type:"path",class:"ananas",d:"M156.97,538.01l26.18-41.54,26.18,41.54c3.81,6.9,3.81,15.83,0,22.85l-17.26,22.97c-4.17,7.74-13.69,7.74-17.85,0l-17.26-22.97c-3.69-7.02-3.69-15.95,0-22.85"},{type:"path",class:"ananas",d:"M392.63,605.73l30.59-41.54,30.59,41.54c3.81,6.9,3.81,15.83,0,22.85l-21.66,31.9c-4.17,7.74-13.69,7.74-17.85,0l-21.66-31.9c-3.69-7.02-3.69-15.95,0-22.85"},{type:"path",class:"ananas",d:"M193.63,605.73l30.59-41.54,30.59,41.54c3.81,6.9,3.81,15.83,0,22.85l-21.66,31.9c-4.17,7.74-13.69,7.74-17.85,0l-21.66-31.9c-3.81-7.02-3.81-15.95,0-22.85"},{type:"path",class:"ananas",d:"M298.25,723.92l27.97-33.68,27.97,33.68c4.05,5.59,4.05,12.85,0,18.45l-18.45,21.42c-4.52,6.31-14.64,6.31-19.04,0l-18.45-21.42c-4.05-5.59-4.05-12.85,0-18.45"},{type:"path",class:"ananas",d:"M347.64,665.48l27.97-33.68,27.97,33.68c4.05,5.59,4.05,12.85,0,18.45l-18.45,25.83c-4.52,6.31-14.64,6.31-19.04,0l-18.45-25.83c-4.05-5.59-4.05-12.85,0-18.45"},{type:"path",class:"ananas",d:"M248.38,665.48l27.97-33.68,27.97,33.68c4.05,5.59,4.05,12.85,0,18.45l-18.45,25.83c-4.52,6.31-14.64,6.31-19.04,0l-18.45-25.83c-4.05-5.59-4.05-12.85,0-18.45"},{type:"path",class:"ananas",d:"M246.71,409.47l27.97-25.23,27.97,25.23c4.05,5.59,4.05,12.85,0,18.45l-18.45,25.83c-4.52,6.31-14.64,6.31-19.04,0l-18.45-25.83c-4.05-5.59-4.05-12.85,0-18.45"},{type:"path",class:"ananas",d:"M346.45,409.47l27.97-25.23,27.97,25.23c4.05,5.59,4.05,12.85,0,18.45l-18.45,25.83c-4.52,6.31-14.64,6.31-19.04,0l-18.45-25.83c-3.93-5.59-3.93-12.85,0-18.45"},{type:"path",class:"ananas",d:"M298.72,347.34l25.95-32.97,25.95,32.97c8.81,8.93,9.88,23.68,0,33.56l-1
817.14,15.71c-4.17,5.83-13.45,5.83-17.61,0l-17.14-15.71c-8.93-8.81-8.33-25.23,0-33.56"},{type:"path",class:"ananas",d:"M206.84,275.45c-13.81-1.9-24.88,5.83-33.21,12.14,17.97,.6,31.66,10.12,58.56,43.09-2.74-36.66-25.35-55.23-25.35-55.23"},{type:"path",class:"ananas",d:"M357.4,205.35c18.09-18.92,69.51-55.23,88.91-92,.6,65.82-60.46,117.71-60.46,117.71-8.09-12.74-20.23-19.4-28.45-25.71"},{type:"path",class:"ananas",d:"M381.44,253.31c-14.4-30.11-40.47-49.39-70.7-56.3-30.23-6.9-62.37-.71-90.93,11.31,57.25,3.45,81.65,56.65,83.79,104.38,22.02-30.11,38.44-51.18,77.84-59.39"},{type:"path",class:"ananas",d:"M328.12,136.32c2.98-43.92,53.92-90.34,61.3-122.35,6.9,18.09,6.67,42.61-4.05,55.11-26.78,31.3-57.25,67.25-57.25,67.25"},{type:"path",class:"ananas",d:"M324.79,178.21c16.07-34.99,34.75-54.63,56.89-86.17,11.54-16.42,50.23-46.06,76.77-87-21.42,91.41-27.14,125.09-113.54,191.5-6.67-7.38-20.11-18.33-20.11-18.33"},{type:"path",class:"ananas",d:"M321.34,154.41c-10-34.4-32.49-70.1-114.73-95.22,55.94,48.32,60.7,74.03,84.98,121.88,6.43-9.52,29.75-26.66,29.75-26.66"},{type:"path",class:"ananas",d:"M206.24,198.21c-10.47-19.28-26.07-35.82-44.63-47.25,14.76,3.81,28.8,10.59,41.18,19.76-10.35-19.04-20.83-38.09-31.18-57.01,16.42,15.59,40.35,19.28,60.34,29.87,16.66,8.81,30.71,22.73,39.63,39.4-18.69-.24-65.34,15.23-65.34,15.23"},{type:"path",class:"ananas",d:"M160.9,208.56c66.65,47.49,88.43,106.05,79.15,129.26,1.79,3.93,18.21,18.57,35.94,19.16,49.87-99.26-45.58-155.08-115.09-148.42"},{type:"path",class:"ananas",d:"M414.77,333.77s.6-26.54,35.11-40.59c-45.58-7.62-71.65,27.26-70.58,57.61,29.28-4.76,35.47-17.02,35.47-17.02"},{type:"path",class:"ananas",d:"M470.47,222.01c-30.95,80.34-83.43,44.39-107.71,118.78-11.9-22.49-29.87-38.44-29.87-38.44,28.09-47.25,80.1-33.09,137.59-80.34"},{type:"path",class:"ananas",d:"M513.08,684.64l-12.74-7.38-9.49-5.5-19.55-30.56-21.54,33.68c-3.09,5.59-3.09,12.85,.12,18.45l14.16,25.83c3.45,6.31,11.19,6.31,14.64,0l11.65-21.24,10.01-5.9,12.74-7.38Z"},{type:"path",class:"ananas",d:"M505.58,420.3l-12.14-7.02-6.19-3.58-22.97-21.06-24.28,22.26c-3.45,4.88-3.45,11.31,0,16.31l16.07,22.85c3.93,5.59,12.62,5.59,16.54,0l12.37-17.72,8.46-4.89,12.14-7.14Z"},{type:"path",class:"ananas",d:"M449.52,366.02l-3.38-1.99c-.35-.79-.77-1.56-1.27-2.29l-23.8-15-23.8,15c-3.45,5.12-3.45,11.66,0,16.78l15.71,23.68c3.81,5.71,12.38,5.71,16.19,0l12.18-18.27,8.17-4.82,11.31-6.55-11.31-6.55Z"},{type:"path",class:"ananas",d:"M457.14,733.91l-11.31-6.55-6.58-3.88c-.07-.14-.13-.27-.21-.41l-21.9-33.68-21.9,33.68c-3.09,5.71-3.09,12.85,.12,18.45l14.4,25.83c3.45,6.31,11.43,6.31,14.88,0l11.95-21.43,9.23-5.35,11.31-6.67Z"},{type:"path",class:"ananas",d:"M168.28,468.38l-15.71-24.04c-3.81-7.14-13.81-6.55-16.19,1.07-1.24,6.41-2.11,12.35-2.64,18.05l-8.9,5.16-12.62,7.38,12.62,7.5,8.66,5.02c.52,7.17,1.5,14.49,2.89,22.48,3.81,7.02,12.38,7.02,16.19,0l15.71-29.16c2.38-4.17,2.14-8.93,0-13.45Z"},{type:"path",class:"ananas",d:"M168.28,613.35l-15.71-29.16c-3.81-7.02-12.38-7.02-16.19,0-1.39,8-2.37,15.33-2.89,22.52l-8.66,5.1-12.62,7.38,12.62,7.38,8.9,5.16c.53,5.7,1.4,11.64,2.64,18.05,2.38,7.62,12.38,8.21,16.19,1.07l15.71-24.04c2.14-4.52,2.38-9.28,0-13.45Z"},{type:"path",class:"ananas",d:"M535.1,476l-12.62-7.38-8.9-5.16c-.53-5.7-1.4-11.64-2.64-18.05-2.38-7.62-12.38-8.21-16.19-1.07l-15.71,24.04c-2.14,4.52-2.38,9.28,0,13.45l15.71,29.16c3.81,7.02,12.38,7.02,16.19,0,1.38-7.98,2.37-15.31,2.89-22.48l8.66-5.02,12.62-7.5Z"},{type:"path",class:"ananas",d:"M535.1,619.18l-12.62-7.38-8.66-5.1c-.52-7.18-1.5-14.52-2.89-22.52-3.81-7.02-12.38-7.02-16.19,0l-15.71,29.16c-2.38,4.17-2.14,8.93,0,13.45l15.71,24.04c3.81,7.14,13.81,6.55,16.19-1.07,1.24-6.41,2.11-12.35,2.64-18.05l8.9-5.16,12.62-7.38Z"},{type:"path",class:"ananas",d:"M145.31,541.93l-10.59-16.31c-2.62-4.88-9.4-4.4-10.95,.71-.44,2.29-.81,4.49-1.13,6.62-.7,.01-1.4,.21-2.09,.64-5,3.09-12.74,7.38-12.74,7.38l-12.62,7.38,12.62,7.38s8.69,4.88,12.74,7.38c.63,.41,1.33,.53,2.06,.45,.32,2.36,.7,4.77,1.15,7.29,2.62,4.76,8.33,4.76,10.95,0l10.59-19.76c1.67-2.86,1.43-6.07,0-9.16Z"},{type:"path",class:"ananas",d:"M537.71,540.86s-8.69-4.88-12.74-7.38c-.61-.39-1.28-.52-1.98-.45-.31-2.35-.68-4.76-1.12-7.28-2.62-4.76-8.33-4.76-10.95,0l-10.59,19.76c-1.67,2.86-1.43,6.07,0,9.16l10.59,16.31c2.62,4.88,9.28,4.4,10.95-.71,.44-2.29,.81-4.49,1.11-6.62,.66-.03,1.33-.23,1.98-.64,5-3.09,12.74-7.38,12.74-7.38l12.74-7.38-12.74-7.38Z"},{type:"path",class:"ananas",d:"M197.08,671.78l-21.54-33.68-21.46,33.56-5.55,3.22-12.74,7.38,12.74,7.5,7.64,4.43,12,21.88c3.45,6.31,11.19,6.31,14.64,0l14.28-25.83c3.09-5.59,3.09-12.85,0-18.45Z"},{type:"path",class:"ananas",d:"M205.89,410.66l-24.28-22.85-23.72,22.32-5.44,3.15-12.14,7.02,12.14,7.14,8.37,4.84,12.57,18.48c3.93,5.71,12.74,5.71,16.54,0l15.95-23.45c3.45-5,3.45-11.54,0-16.66Z"},{type:"path",class:"ananas",d:"M249.09,361.98l-23.8-14.64-23.8,14.64c-.34,.5-.63,1.03-.9,1.56l-4.22,2.49-11.31,6.55,11.31,6.55,9.19,5.42,11.64,17.2c3.81,5.59,12.38,5.59,16.19,0l15.71-23.21c3.45-5,3.45-11.54,0-16.54Z"},{type:"path",class:"ananas",d:"M249.45,719.75l-21.9-33.68-21.9,33.68c-.16,.29-.31,.6-.46,.9l-5.14,3.03-11.31,6.55,11.31,6.55,7.15,4.21,12.85,23.04c3.45,6.31,11.43,6.31,14.88,0l14.52-25.83c3.09-5.59,3.09-12.85,0-18.45Z"},{type:"path",class:"ananas",d:"M251.95,764.62l22.38-24.64,22.02,25.23c3.09,3.45,3.09,7.86-.12,11.31,0,0-7.86,4.76-22.26,4.64-14.4-.24-22.14-5.24-22.14-5.24-3.09-3.57-3.09-7.97,.12-11.31"},{type:"path",class:"ananas",d:"M353.11,764.62l22.38-24.64,22.02,25.23c3.09,3.45,3.09,7.86-.12,11.31,0,0-7.74,4.76-22.26,4.64-14.4-.24-22.14-5.24-22.14-5.24-3.09-3.57-3.09-7.97,.12-11.31"}];var z=root$H(),A=sibling(child(z),3);{var y=e=>{var f=comment$1(),g=first_child(f);each(g,17,()=>p,index,(R,q,H)=>{var te=root_2$v();template_effect(()=>{set_style(te,`fill:${get(h)??""}`),set_attribute(te,"d",get(q).d)}),transition(5,te,()=>fade,()=>({delay:H*150,duration:2e3})),transition(6,te,()=>fade,()=>({delay:0,duration:1e3})),append(R,te)}),append(e,f)},s=e=>{var f=comment$1(),g=first_child(f);each(g,17,()=>_.shuffle(w),index,(R,q,H)=>{var te=root_4$u();template_effect(()=>set_attribute(te,"d",get(q).d)),transition(5,te,()=>fade,()=>({delay:H*150,duration:2e3})),transition(6,te,()=>fade,()=>({delay:0,duration:1e3})),append(R,te)}),append(e,f)};if_block(A,e=>{get(c)?e(y):get(d)&&e(s,1)})}append(o,z),pop()}var root_12$b=from_html('<a class="svelte-d4njtr"> </a>'),root_13$7=from_html("<b> </b>"),root_10$e=from_html("<!> <!>",1),root_7$d=from_html("<!> <!>",1),root_4$t=from_html('<li class="svelte-d4njtr"> <!></li>'),root_2$u=from_html('<h3 style="font-family:cooper; font-size:1.4rem"> </h3> <ul style="margin-bottom:3rem;" class="svelte-d4njtr"></ul>',1),root_24$6=from_html('<a class="svelte-d4njtr"> </a>'),root_25$5=from_html("<b> </b>"),root_22$8=from_html("<!> <!>",1),root_19$6=from_html("<!> <!>",1),root_16$8=from_html('<li class="svelte-d4njtr"> <!></li>'),root_14$5=from_html('<ul class="svelte-d4njtr"></ul>'),root$G=from_html("<!> <!>",1);function Besetzung(o,n){push(n,!0);let c=user_derived(()=>
81_.filter(appState.doc.thea_cast||appState.doc.cast,z=>(appState.doc.thea_besetzungfrei=="1"||Number(z.sortierung)<100)&&z.roleid!="34371"));var d=root$G(),h=first_child(d);{var m=z=>{var A=comment$1(),y=first_child(A);each(y,17,()=>appState.doc.thea_mehrteiler_cast,index,(s,e)=>{var f=root_2$u(),g=first_child(f),R=child(g),q=sibling(g,2);each(q,21,()=>_.filter(get(e).cast,H=>appState.doc.thea_besetzungfrei=="1"||Number(H.sortierung)<100),index,(H,te)=>{var re=comment$1(),ae=first_child(re);{var ne=oe=>{var le=root_4$t(),ce=child(le),ue=sibling(ce);{var he=ge=>{var Oe=comment$1(),$e=first_child(Oe);each($e,17,()=>get(te).besetzung[appState.doc.spielzeit]||get(te).besetzung[0],index,(Pe,Le)=>{var me=comment$1(),we=first_child(me);each(we,17,()=>get(Le),index,(Se,ye,ke)=>{var Ae=root_7$d(),Ie=first_child(Ae);{var qe=Te=>{var ve=text$1();ve.nodeValue=", ",append(Te,ve)};if_block(Ie,Te=>{ke!=0&&Te(qe)})}var Ge=sibling(Ie,2);{var Je=Te=>{var ve=comment$1(),et=first_child(ve);each(et,17,()=>get(ye).stammbesetzung,index,(mt,ht,ct)=>{var Ue=root_10$e(),ot=first_child(Ue);{var bt=Et=>{var St=text$1();St.nodeValue=" / ",append(Et,St)};if_block(ot,Et=>{ct!=0&&Et(bt)})}var At=sibling(ot,2);{var ft=Et=>{var St=root_12$b(),Jt=child(St);template_effect(()=>{set_attribute(St,"href",`/${appState.personenseiten[get(ht).name]??""}`),set_text(Jt,get(ht).name)}),append(Et,St)},be=Et=>{var St=root_13$7(),Jt=child(St);template_effect(()=>set_text(Jt,get(ht).name)),append(Et,St)};if_block(At,Et=>{appState.personenseiten[get(ht).name]?Et(ft):Et(be,-1)})}append(mt,Ue)}),append(Te,ve)};if_block(Ge,Te=>{get(ye).stammbesetzung&&get(ye).stammbesetzung.length&&Te(Je)})}append(Se,Ae)}),append(Pe,me)}),append(ge,Oe)};if_block(ue,ge=>{get(te).besetzung&&(get(te).besetzung[appState.doc.spielzeit]||get(te).besetzung[0])&&(get(te).besetzung[appState.doc.spielzeit]||get(te).besetzung[0]).length&&ge(he)})}template_effect(ge=>{set_style(le,get(te).sortierung=="100"?"margin-top:3rem":""),set_text(ce,`${ge??""} `)},[()=>["Chor","Orchester","Ballett","Statisterie"].indexOf(get(te).rolle)==-1?get(te).rolle:""]),append(oe,le)};if_block(ae,oe=>{get(te).besetzung&&oe(ne)})}append(H,re)}),template_effect(()=>set_text(R,get(e).titel)),append(s,f)}),append(z,A)};if_block(h,z=>{appState.doc.thea_mehrteiler_cast&&appState.doc.thea_mehrteiler_cast.length&&z(m)})}var p=sibling(h,2);{var w=z=>{var A=root_14$5();each(A,21,()=>get(c),index,(y,s)=>{var e=comment$1(),f=first_child(e);{var g=R=>{var q=root_16$8(),H=child(q),te=sibling(H);{var re=ae=>{var ne=comment$1(),oe=first_child(ne);each(oe,17,()=>get(s).besetzung[appState.doc.spielzeit]||get(s).besetzung[0],index,(le,ce)=>{var ue=comment$1(),he=first_child(ue);each(he,17,()=>get(ce),index,(ge,Oe,$e)=>{var Pe=root_19$6(),Le=first_child(Pe);{var me=ye=>{var ke=text$1();ke.nodeValue=", ",append(ye,ke)};if_block(Le,ye=>{$e!=0&&ye(me)})}var we=sibling(Le,2);{var Se=ye=>{var ke=comment$1(),Ae=first_child(ke);each(Ae,17,()=>get(Oe).stammbesetzung,index,(Ie,qe,Ge)=>{var Je=root_22$8(),Te=first_child(Je);{var ve=ct=>{var Ue=text$1();Ue.nodeValue=" / ",append(ct,Ue)};if_block(Te,ct=>{Ge!=0&&ct(ve)})}var et=sibling(Te,2);{var mt=ct=>{var Ue=root_24$6(),ot=child(Ue);template_effect(()=>{set_attribute(Ue,"href",`/${appState.personenseiten[get(qe).name]??""}`),set_text(ot,get(qe).name)}),append(ct,Ue)},ht=ct=>{var Ue=root_25$5(),ot=child(Ue);template_effect(()=>set_text(ot,get(qe).name)),append(ct,Ue)};if_block(et,ct=>{appState.personenseiten[get(qe).name]?ct(mt):ct(ht,-1)})}append(Ie,Je)}),append(ye,ke)};if_block(we,ye=>{get(Oe).stammbesetzung&&get(Oe).stammbesetzung.length&&ye(Se)})}append(ge,Pe)}),append(le,ue)}),append(ae,ne)};if_block(te,ae=>{get(s).besetzung&&(get(s).besetzung[appState.doc.spielzeit]||get(s).besetzung[0])&&(get(s).besetzung[appState.doc.spielzeit]||get(s).besetzung[0]).length&&ae(re)})}template_effect(ae=>{set_style(q,get(s).sortierung=="100"?"margin-top:3rem":""),set_text(H,`${ae??""} `)},[()=>["Chor","Orchester","Ballett","Statisterie"].indexOf(get(s).rolle)==-1?get(s).rolle:""]),append(R,q)};if_block(f,R=>{get(s).besetzung&&R(g)})}append(y,e)}),append(z,A)};if_block(p,z=>{get(c).length&&z(w)})}append(o,d),pop()}var smoothscroll$1={exports:{}},hasRequiredSmoothscroll;function requireSmoothscroll(){return hasRequiredSmoothscroll||(hasRequiredSmoothscroll=1,(function(o,n){(function(){function c(){var d=window,h=document;if("scrollBehavior"in h.documentElement.style&&d.__forceSmoothScrollPolyfill__!==!0)return;var m=d.HTMLElement||d.Element,p=468,w={scroll:d.scroll||d.scrollTo,scrollBy:d.scrollBy,elementScroll:m.prototype.scroll||s,scrollIntoView:m.prototype.scrollIntoView},z=d.performance&&d.performance.now?d.performance.now.bind(d.performance):Date.now;function A(ae){var ne=["MSIE ","Trident/","Edge/"];return new RegExp(ne.join("|")).test(ae)}var y=A(d.navigator.userAgent)?1:0;function s(ae,ne){this.scrollLeft=ae,this.scrollTop=ne}function e(ae){return .5*(1-Math.cos(Math.PI*ae))}function f(ae){if(ae===null||typeof ae!="object"||ae.behavior===void 0||ae.behavior==="auto"||ae.behavior==="instant")return!0;
81if(typeof ae=="object"&&ae.behavior==="smooth")return!1;throw new TypeError("behavior member of ScrollOptions "+ae.behavior+" is not a valid value for enumeration ScrollBehavior.")}function g(ae,ne){if(ne==="Y")return ae.clientHeight+y<ae.scrollHeight;if(ne==="X")return ae.clientWidth+y<ae.scrollWidth}function R(ae,ne){var oe=d.getComputedStyle(ae,null)["overflow"+ne];return oe==="auto"||oe==="scroll"}function q(ae){var ne=g(ae,"Y")&&R(ae,"Y"),oe=g(ae,"X")&&R(ae,"X");return ne||oe}function H(ae){for(;ae!==h.body&&q(ae)===!1;)ae=ae.parentNode||ae.host;return ae}function te(ae){var ne=z(),oe,le,ce,ue=(ne-ae.startTime)/p;ue=ue>1?1:ue,oe=e(ue),le=ae.startX+(ae.x-ae.startX)*oe,ce=ae.startY+(ae.y-ae.startY)*oe,ae.method.call(ae.scrollable,le,ce),(le!==ae.x||ce!==ae.y)&&d.requestAnimationFrame(te.bind(d,ae))}function re(ae,ne,oe){var le,ce,ue,he,ge=z();ae===h.body?(le=d,ce=d.scrollX||d.pageXOffset,ue=d.scrollY||d.pageYOffset,he=w.scroll):(le=ae,ce=ae.scrollLeft,ue=ae.scrollTop,he=s),te({scrollable:le,method:he,startTime:ge,startX:ce,startY:ue,x:ne,y:oe})}d.scroll=d.scrollTo=function(){if(arguments[0]!==void 0){if(f(arguments[0])===!0){w.scroll.call(d,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:d.scrollX||d.pageXOffset,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:d.scrollY||d.pageYOffset);return}re.call(d,h.body,arguments[0].left!==void 0?~~arguments[0].left:d.scrollX||d.pageXOffset,arguments[0].top!==void 0?~~arguments[0].top:d.scrollY||d.pageYOffset)}},d.scrollBy=function(){if(arguments[0]!==void 0){if(f(arguments[0])){w.scrollBy.call(d,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:0,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:0);return}re.call(d,h.body,~~arguments[0].left+(d.scrollX||d.pageXOffset),~~arguments[0].top+(d.scrollY||d.pageYOffset))}},m.prototype.scroll=m.prototype.scrollTo=function(){if(arguments[0]!==void 0){if(f(arguments[0])===!0){if(typeof arguments[0]=="number"&&arguments[1]===void 0)throw new SyntaxError("Value could not be converted");w.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left:typeof arguments[0]!="object"?~~arguments[0]:this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top:arguments[1]!==void 0?~~arguments[1]:this.scrollTop);return}var ae=arguments[0].left,ne=arguments[0].top;re.call(this,this,typeof ae>"u"?this.scrollLeft:~~ae,typeof ne>"u"?this.scrollTop:~~ne)}},m.prototype.scrollBy=function(){if(arguments[0]!==void 0){if(f(arguments[0])===!0){w.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop);return}this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})}},m.prototype.scrollIntoView=function(){if(f(arguments[0])===!0){w.scrollIntoView.call(this,arguments[0]===void 0?!0:arguments[0]);return}var ae=H(this),ne=ae.getBoundingClientRect(),oe=this.getBoundingClientRect();ae!==h.body?(re.call(this,ae,ae.scrollLeft+oe.left-ne.left,ae.scrollTop+oe.top-ne.top),d.getComputedStyle(ae).position!=="fixed"&&d.scrollBy({left:ne.left,top:ne.top,behavior:"smooth"})):d.scrollBy({left:oe.left,top:oe.top,behavior:"smooth"})}}o.exports={polyfill:c}})()})(smoothscroll$1)),smoothscroll$1.exports}var smoothscrollExports=requireSmoothscroll();const smoothscroll=getDefaultExportFromCjs(smoothscrollExports);var root$F=from_html("<img/>");function LazyImage(o,n){const c=legacy_rest_props(n,["children","$$slots","$$events","$$legacy"]),d=legacy_rest_props(c,["placeholder","src","alt","options"]);push(n,!1);const h=mutable_source();let m=prop(n,"placeholder",8),p=prop(n,"src",8),w=prop(n,"alt",8),z=prop(n,"options",24,()=>({root:null,rootMargin:"0px 0px 0px 0px",threshold:0})),A=mutable_source(),y=mutable_source(),s,e=mutable_source(!1),f=mutable_source(!1);onMount(()=>(s=new IntersectionObserver((q,H)=>{q.forEach(te=>{te.isIntersecting&&(set(e,!0),H.unobserve(get(A)))})},z()),s.observe(get(A)),()=>{s&&s.unobserve(get(A))}));function g(){!get(f)&&get(y)===p()&&set(f,!0)}legacy_pre_effect(()=>(get(e),deep_read_state(p()),deep_read_state(m())),()=>{set(y,get(e)?p():m())}),legacy_pre_effect(()=>deep_read_state(c),()=>{set(h,c.class||"")}),legacy_pre_effect_reset(),init();var R=root$F();attribute_effect(R,()=>({src:get(y),alt:w(),...d,class:`svelte-lazy-image ${get(h)??""}`,[CLASS]:{"svelte-lazy-image--loaded":get(f)}})),bind_this(R,q=>set(A,q),()=>get(A)),event("load",R,g),append(o,R),pop()}var root_3$p=from_html('<div class="play svelte-166odn7"><img src="https://staux.de/img/play-button.svg" class="playbutton svelte-166odn7" alt=""/></div>'),root_4$s=from_html('<div class="absolute top-2 left-2 text-white text-[11px] w-[260px] h-[400px]" style="text-wrap-mode: wrap"><div style="text-align:left"> <br/> </div></div>'),root_1$r=from_html('<div class="bandbild svelte-166odn7"><!> <!> <!></div>'),root_5$j=from_html('<div class="pfeil pfeillinks svelte-166odn7"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" class="svelte-166odn7"><polyline fill="none" stroke="#fff" stroke-width="12" stroke-linejoin="miter" stroke-miterlimit="2" points="50,90 50,10 10,50 50,10 90,50" transform="rotate(270,50,50)"></polyline></svg></div>'),root_6$g=from_html('<div class="pfeil pfeilrechts svelte-166odn7"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" class="svelte-166odn7"><polyline fill="none" stroke="#fff" stroke-width="12" stroke-linejoin="miter" stroke-miterlimit="2" points="50,90 50,10 10,50 50,10 90,50" transform="rotate(90,50,50)"></polyline></svg></div>'),root$E=from_html('<div class="headline svelte-166odn7" role="heading"></div> <div class="galerie-wrapper svelte-166odn7"><div class="bandfenster svelte-166odn7"><div class="band svelte-166odn7" aria-roledescription="Bilder-Band" aria-label="Inszenierungsfotos" tabindex="0"></div></div> <!> <!> <div class="credits svelte-166odn7"> </div></div>',1);function Galerie(o,n){push(n,!0),onMount(()=>
81{appState.galeriestatus[n.id]={images:n.images,dir:n.dir,credits:n.credits,headline:n.headline}});let c=user_derived(()=>appState.galeriestatus.aktivesbild),d=state(null),h=state(null),m=!1;user_effect(()=>{const ae=get(c);if(m){m=!1;return}if(ae!==void 0&&get(d)&&get(h)&&n.id===appState.galeriestatus.aktivegalerie){const ne=get(d).children[ae];ne&&p(get(h),get(d),ne)}}),smoothscroll.polyfill();function p(ae,ne,oe,le){if(!(!oe||!ae||!ne)){var ce=ae.scrollLeft+oe.getBoundingClientRect().left-ae.getBoundingClientRect().left-(ae.offsetWidth-oe.offsetWidth)/2;ae.scroll({left:ce,top:0,behavior:"smooth"})}}function w(ae){var ne=new IntersectionObserver(le=>{le.forEach(function(ce){ce.intersectionRatio>.05&&(m=!0,appState.galeriestatus.aktivesbild=Number(ce.target.dataset.index))})},{threshold:.05,rootMargin:"0px -"+(window.innerWidth-100)/2+"px"});ae.querySelectorAll("img").forEach(le=>{ne.observe(le)})}const z=function(ae){return/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/i.test(ae)};var A=root$E(),y=first_child(A);html(y,()=>markdownitinline(n.headline),!0);var s=sibling(y,2),e=child(s),f=child(e);each(f,21,()=>n.images,index,(ae,ne,oe)=>{const le=user_derived(()=>typeof get(ne)=="string"?get(ne):get(ne).src?get(ne).src:"");var ce=root_1$r(),ue=child(ce);{var he=we=>{const Se=user_derived(()=>get(le).split("/"));{let ye=user_derived(()=>get(ne).alt?": "+get(ne).alt:""),ke=user_derived(()=>get(Se).length>1?get(Se)[1]:appState.doc.uri),Ae=user_derived(()=>get(Se)[get(Se).length-1]),Ie=user_derived(()=>get(Se).length>1?get(Se)[1]:appState.doc.uri),qe=user_derived(()=>get(Se)[get(Se).length-1]);LazyImage(we,{get alt(){return`Szenenfoto Nr. ${oe}${get(ye)??""}`},get placeholder(){return`https://staatstheater-augsburg.de/img/${get(ke)??""}/x20/${get(Ae)??""}`},get src(){return`https://staatstheater-augsburg.de/img/${get(Ie)??""}/x418/${get(qe)??""}`},"data-gal":"gal1","data-index":oe})}},ge=user_derived(()=>/\.jpg|jpeg|png|gif/i.test(get(le)));if_block(ue,we=>{get(ge)&&we(he)})}var Oe=sibling(ue,2);{var $e=we=>{var Se=root_3$p();append(we,Se)},Pe=user_derived(()=>z(get(le)));if_block(Oe,we=>{get(Pe)&&we($e)})}var Le=sibling(Oe,2);{var me=we=>{var Se=root_4$s(),ye=child(Se),ke=child(ye),Ae=sibling(ke,2,!0);template_effect(()=>{set_text(ke,get(le)),set_text(Ae,get(ne).alt)}),append(we,Se)};if_block(Le,we=>{appState.eingeloggt&&appState.bearbeitungssicht&&we(me)})}delegated("click",ce,()=>{appState.galeriestatus.grossegalerieoffen=!0,appState.galeriestatus.aktivegalerie=n.id,appState.galeriestatus.aktivesbild=oe}),append(ae,ce)}),bind_this(f,ae=>set(d,ae),()=>get(d)),bind_this(e,ae=>set(h,ae),()=>get(h)),action(e,ae=>w?.(ae));var g=sibling(e,2);{var R=ae=>{var ne=root_5$j(),oe=child(ne);delegated("click",oe,()=>{const le=appState.galeriestatus.aktivesbild-1;p(get(h),get(d),get(d).children[le])}),append(ae,ne)};if_block(g,ae=>{get(c)>1&&!appState.istouch&&ae(R)})}var q=sibling(g,2);{var H=ae=>{var ne=root_6$g(),oe=child(ne);delegated("click",oe,()=>{const le=appState.galeriestatus.aktivesbild+1;p(get(h),get(d),get(d).children[le])}),append(ae,ne)};if_block(q,ae=>{get(c)<n.images.length-2&&!appState.istouch&&ae(H)})}var te=sibling(q,2),re=child(te);template_effect(()=>{set_attribute(f,"id",n.id),set_text(re,n.credits||"")}),append(o,A),pop()}delegate(["click"]);var root_2$t=from_html('<iframe id="sdn1689033579" title="3Q SDN" width="1200px" height="560px" frameborder="0" scrolling="no" allowfullscreen=""></iframe>'),root_4$r=from_html('<img class="grossesbild svelte-rber6m"/>'),root_5$i=from_html('<iframe title="" width="1280" height="768" style="border:none" allowfullscreen=""></iframe>'),root_3$o=from_html("<!> <!>",1),root_1$q=from_html('<div class="grossesbandbild svelte-rber6m"><!></div>'),root_6$f=from_html('<div class="step_left"><svg xmlns="http://www.w3.org/2000/svg" style="width:2.5rem; height:2.5rem;" viewBox="0 0 100 100"><polyline fill="none" stroke="#fff" stroke-width="12" stroke-linejoin="miter" stroke-miterlimit="2" points="50,90 50,10 10,50 50,10 90,50" transform="rotate(270,50,50)"></polyline></svg></div>'),root_7$c=from_html('<div class="step_right"><svg xmlns="http://www.w3.org/2000/svg" style="width:2.5rem; height:2.5rem;" viewBox="0 0 100 100"><polyline fill="none" stroke="#fff" stroke-width="12" stroke-linejoin="miter" stroke-miterlimit="2" points="50,90 50,10 10,50 50,10 90,50" transform="rotate(90,50,50)"></polyline></svg></div>'),root$D=from_html('<div class="grossesbandfenster svelte-rber6m"><div class="grossesband svelte-rber6m"></div></div> <!> <!> <div class="x"><svg xmlns="http://www.w3.org/2000/svg" style="height:2.5rem;width:2.3rem" viewBox="0 0 100 100"><polyline fill="none" stroke="#fff" stroke-width="12" stroke-linejoin="miter" stroke-miterlimit="2" points="10,10 90,90"></polyline><polyline fill="none" stroke="#fff" stroke-width="12" stroke-linejoin="miter" stroke-miterlimit="2" points="90,10 10,90"></polyline></svg></div>',1);function Grossegalerie(o,n){push(n,!0),smoothscroll.polyfill();let c=user_derived(()=>
81appState.galeriestatus[appState.galeriestatus.aktivegalerie]),d=user_derived(()=>get(c)?.images||[]),h=user_derived(()=>appState.galeriestatus.aktivesbild);function m(H,te){if(H){var re=H.parentNode.scrollLeft+H.getBoundingClientRect().left-H.parentNode.getBoundingClientRect().left-(H.parentNode.offsetWidth-H.offsetWidth)/2;H.parentNode.scroll({left:re,y:0,behavior:te?"smooth":"auto"})}}function p(H){w(H),m(H.children[0].children[get(h)],0)}function w(H){var te=new IntersectionObserver(ae=>{ae.forEach(function(ne){ne.intersectionRatio>.05&&(appState.galeriestatus.aktivesbild=Number(ne.target.dataset.index),m(document.getElementById(appState.galeriestatus.aktivegalerie).children[Number(ne.target.dataset.index)],0))})},{threshold:.05,rootMargin:"0px -"+(window.innerWidth-100)/2+"px"});H.querySelectorAll(".grossesbild").forEach(ae=>{te.observe(ae)})}const z=function(H){return/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/i.test(H)};var A=root$D(),y=first_child(A),s=child(y);each(s,21,()=>get(d),index,(H,te,re)=>{const ae=user_derived(()=>typeof get(te)=="string"?get(te):get(te).src?get(te).src:"");var ne=root_1$q(),oe=child(ne);{var le=he=>{var ge=root_2$t();template_effect(Oe=>set_attribute(ge,"src",`https://playout.3qsdn.com/${Oe??""}`),[()=>get(ae).replace(/\.jpg/,"")]),append(he,ge)},ce=user_derived(()=>z(get(ae))),ue=he=>{var ge=root_3$o(),Oe=first_child(ge);{var $e=Se=>{const ye=user_derived(()=>get(ae).split("/"));var ke=root_4$r();set_attribute(ke,"data-index",re),template_effect(()=>{set_attribute(ke,"alt",get(te).alt?": "+get(te).alt:""),set_attribute(ke,"src",`https://staatstheater-augsburg.de/img/${(get(ye).length>1?get(ye)[1]:appState.curRoute)??""}/1500x1000/${get(ye)[get(ye).length-1]??""}`)}),append(Se,ke)},Pe=user_derived(()=>/\.jpg|jpeg|png|gif/i.test(get(ae)));if_block(Oe,Se=>{get(Pe)&&Se($e)})}var Le=sibling(Oe,2);{var me=Se=>{var ye=root_5$i();template_effect(ke=>set_attribute(ye,"src",`https://staatstheater-augsburg.de/plyryoutube/${ke??""}`),[()=>get(ae).replace(/youtube\//,"")]),append(Se,ye)},we=user_derived(()=>/youtube/i.test(get(ae)));if_block(Le,Se=>{get(we)&&Se(me)})}append(he,ge)};if_block(oe,he=>{get(ce)?he(le):he(ue,-1)})}append(H,ne)}),action(y,H=>p?.(H));var e=sibling(y,2);{var f=H=>{var te=root_6$f();delegated("click",te,re=>{appState.galeriestatus.aktivesbild=appState.galeriestatus.aktivesbild-1,m(document.getElementsByClassName("grossesband")[0].children[appState.galeriestatus.aktivesbild],1)}),append(H,te)};if_block(e,H=>{get(h)>0&&!appState.istouch&&H(f)})}var g=sibling(e,2);{var R=H=>{var te=root_7$c();delegated("click",te,re=>{appState.galeriestatus.aktivesbild=appState.galeriestatus.aktivesbild+1,m(document.getElementsByClassName("grossesband")[0].children[appState.galeriestatus.aktivesbild],1)}),append(H,te)};if_block(g,H=>{get(h)<get(d).length-1&&!appState.istouch&&H(R)})}var q=sibling(g,2);delegated("click",q,()=>{appState.galeriestatus.grossegalerieoffen=!1}),append(o,A),pop()}delegate(["click"]);const scriptRel="modulepreload",assetsURL=function(o){return"/"+o},seen={},__vitePreload=function(n,c,d){let h=Promise.resolve();if(c&&c.length>0){let z=function(A){return Promise.all(A.map(y=>Promise.resolve(y).then(s=>({status:"fulfilled",value:s}),s=>({status:"rejected",reason:s}))))};document.getElementsByTagName("link");const p=document.querySelector("meta[property=csp-nonce]"),w=p?.nonce||p?.getAttribute("nonce");h=z(c.map(A=>{if(A=assetsURL(A),A in seen)return;seen[A]=!0;const y=A.endsWith(".css"),s=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${A}"]${s}`))return;const e=document.createElement("link");if(e.rel=y?"stylesheet":scriptRel,y||(e.as="script"),e.crossOrigin="",e.href=A,w&&e.setAttribute("nonce",w),document.head.appendChild(e),y)return new Promise((f,g)=>{e.addEventListener("load",f),e.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${A}`)))})}))}function m(p){const w=new Event("vite:preloadError",{cancelable:!0});if(w.payload=p,window.dispatchEvent(w),!w.defaultPrevented)throw p}return h.then(p=>{for(const w of p||[])w.status==="rejected"&&m(w.reason);return n().catch(m)})};var root_2$s=from_html("<div></div>"),root_3$n=from_html("<div></div>");function MapboxLazy(o,n){push(n,!0);let c=rest_props(n,["$$slots","$$events","$$legacy"]);function d(p){const w=(p??"").toString(),z=w.includes(":")?":":"/",A=w.split(z).map(Number);return A.length===2&&A[0]>0&&A[1]>0?`width:100%; aspect-ratio:${A[0]} / ${A[1]};`:"width:100%; height:600px;"}var h=comment$1(),m=first_child(h);await_block(m,()=>__vitePreload(()=>import("./Mapbox-W_696MrO.js"),__vite__mapDeps([0,1])),p=>{var w=root_3$n();template_effect(z=>set_style(w,z),[()=>d(n.ratio)]),append(p,w)},(p,w)=>{var z=user_derived(()=>{var{default:e}=get(w);return{Mapbox:e}}),A=user_derived(()=>get(z).Mapbox),y=comment$1(),s=first_child(y);component(s,()=>get(A),(e,f)=>{f(e,spread_props(()=>c))}),append(p,y)},p=>{var w=root_2$s();template_effect(z=>set_style(w,z),[()=>d(n.ratio)]),append(p,w)}),append(o,h),pop()}const orderlang={de:{TITLE:"Bestellformular",CHOOSE:"Bitte wählen",PAYMENT_METHOD:"Bezahlart:",CC:"Kreditkarte",DC:"Lastschrift",GERMANY:"Deutschland",AUSTRIA:"Österreich",SWITZERLAND:"Schweiz",EMAIL_CONFIRM:"E-Mail bestätigen",MANDATORY_FIELDS:"Pflichtfelder",NEWSLETTER:" Ich möchte über neue Inszenierungen informiert werden.",PRENAME:"Vorname:",SURNAME:"Nachname:",STREET:"Straße & Hausnr.:",ZIPCODE:"PLZ:",CITY:"Ort:",COUNTRY:"Land:",ALERT_MAX:"Die maximale Anzahl pro Inszenierung beträgt ",ALERT_MIN:"Bitte wählen Sie mindestens eine Vorstellung aus.",ALERT_MANDATORY:"Bitte füllen Sie alle Felder aus.",ALERT_MAIL_INVALID:"Die angegebene E-Mail-Adresse scheint nicht gültig zu sein.",ALERT_MAIL_CONFIRM:"Die angegebenen E-Mail-Adressen unter
81scheiden sich.",NOTIFY_PATIENCE:"Bitte etwas Geduld …",NOTIFY_ERROR:"Es ist ein Fehler aufgetreten …",TOTAL_PRICE:"Gesamtpreis: ",PAYMENT_FORM:"zum Bezahlformular",ORDER:"Bestellen",NUMBER:"Anzahl Lizenzen",INSTITUTE:"Institut"},en:{TITLE:"Order",CHOOSE:"Please choose",PAYMENT_METHOD:"Payment method:",CC:"Credit Card",DC:"Debit Charge",GERMANY:"Germany",AUSTRIA:"Austria",SWITZERLAND:"Switzerland",EMAIL_CONFIRM:"E-Mail confirmation",MANDATORY_FIELDS:"Mandatory fields",NEWSLETTER:" I want to receive news about new performances",PRENAME:"Prename:",SURNAME:"Surname:",STREET:"Streetaddress:",ZIPCODE:"Zipcode:",CITY:"City:",COUNTRY:"Country:",ALERT_MAX:"The maximum number you can order is ",ALERT_MIN:"Please choose at least one performance.",ALERT_MANDATORY:"Please fill in all fields.",ALERT_MAIL_INVALID:"The e-mail seems not to be valid.",ALERT_MAIL_CONFIRM:"The e-mail confirmation differs from the e-mail.",NOTIFY_PATIENCE:"Please be patient…",NOTIFY_ERROR:"An error happened …",TOTAL_PRICE:"Total price: ",PAYMENT_FORM:"to payment form",ORDER:"Order",NUMBER:"Number of licenses",INSTITUTE:"Organisation"}};var root_4$q=from_html('<li class="svelte-16qjhb2"> </li>'),root_3$m=from_html('<ul class="svelte-16qjhb2"></ul> <p class="svelte-16qjhb2"> </p> <label class="svelte-16qjhb2"> </label> <select style="width:8rem" class="svelte-16qjhb2"><option> </option><option>Paypal</option><option> </option><option> </option></select> <label class="svelte-16qjhb2"> </label> <input type="text"/> <label class="svelte-16qjhb2"> </label> <input type="text"/> <label class="svelte-16qjhb2"> </label> <input type="text"/> <label class="svelte-16qjhb2"> </label> <input type="text"/> <label class="svelte-16qjhb2"> </label> <input type="text"/> <label class="svelte-16qjhb2">E-Mail</label> <input type="text"/> <label class="svelte-16qjhb2"> </label> <input type="text"/> <button> </button>',1);function LiveVOrder(o,n){push(n,!0);let c=state(proxy([])),d=proxy({}),h=user_derived(()=>appState.sprache==="en"?"en":"de");user_effect(()=>{window.auftr=d}),user_effect(()=>{window.repe=get(c)});const m=async()=>{let q=await(await fetch("/api/order_repertoire")).json();return set(c,[..._.map(q.live,H=>({...H,sorte:"live"}))],!0),d.warenkorb=_.mapValues(_.groupBy(get(c),H=>H.kuerzel),H=>(H=0,H)),d.warenkorb[get(c)[0].kuerzel]=1,d.type="live",get(c)};onMount(async()=>{m()});const p=function(R){return!R.payment_method||!R.vorname||!R.nachname||!R.strasse||!R.email_conf||!R.plz||!R.ort||!R.email?(alert(orderlang[get(h)].ALERT_MANDATORY),!1):/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(R.email)?R.email!==R.email_conf?(alert(orderlang[get(h)].ALERT_MAIL_CONFIRM),!1):!0:(alert(orderlang[get(h)].ALERT_MAIL_INVALID),!1)};let w=proxy({});const z=async()=>{if(!p(d))return;w.message=orderlang[get(h)].NOTIFY_PATIENCE;const q=await(await fetch("/order_anmeldung",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(d)})).json();q.rc==="0"&&(document.location=q.redirect)};let A=user_derived(()=>y(d.warenkorb));const y=function(){if(!d.warenkorb||!get(c).length)return"0,00 €";var R=0;for(const q of Object.keys(d.warenkorb))if(d.warenkorb[q])for(const H of get(c))q===H.kuerzel&&(R+=H.preis*d.warenkorb[q]);return(R/100).toFixed(2).replace(/\./g,",")+" €"};var s=comment$1(),e=first_child(s);{var f=R=>{var q=text$1();template_effect(()=>set_text(q,w.message)),append(R,q)},g=R=>{var q=comment$1(),H=first_child(q);{var te=re=>{var ae=root_3$m(),ne=first_child(ae);each(ne,21,()=>get(c),index,(St,Jt)=>{var Bt=root_4$q(),Vt=child(Bt);template_effect(()=>set_text(Vt,get(Jt).titel)),append(St,Bt)});var oe=sibling(ne,2),le=child(oe),ce=sibling(oe,2),ue=child(ce),he=sibling(ce,2),ge=child(he),Oe=child(ge);ge.value=ge.__value="";var $e=sibling(ge);$e.value=$e.__value="paypal";var Pe=sibling($e),Le=child(Pe);Pe.value=Pe.__value="creditcard";var me=sibling(Pe),we=child(me);me.value=me.__value="lastschrift";var Se=sibling(he,2),ye=child(Se),ke=sibling(Se,2),Ae=sibling(ke,2),Ie=child(Ae),qe=sibling(Ae,2),Ge=sibling(qe,2),Je=child(Ge),Te=sibling(Ge,2),ve=sibling(Te,2),et=child(ve),mt=sibling(ve,2),ht=sibling(mt,2),ct=child(ht),Ue=sibling(ht,2),ot=sibling(Ue,4),bt=sibling(ot,2),At=child(bt),ft=sibling(bt,2),be=sibling(ft,2),Et=child(be);template_effect(()=>{set_text(le,`${orderlang[get(h)].TOTAL_PRICE??""}: ${get(A)??""}`),set_text(ue,orderlang[get(h)].PAYMENT_METHOD),set_text(Oe,orderlang[get(h)].CHOOSE),set_text(Le,orderlang[get(h)].CC),set_text(we,orderlang[get(h)].DC),set_text(ye,orderlang[get(h)].PRENAME),set_text(Ie,orderlang[get(h)].SURNAME),set_text(Je,orderlang[get(h)].STREET),set_text(et,orderlang[get(h)].ZIPCODE),set_text(ct,orderlang[get(h)].CITY),set_text(At,orderlang[get(h)].EMAIL_CONFIRM),set_text(Et,orderlang[get(h)].ORDER)}),event("blur",he,()=>{d.warenkorb=d.warenkorb}),bind_select_value(he,()=>d.payment_method,St=>d.payment_method=St),bind_value(ke,()=>d.vorname,St=>d.vorname=St),bind_value(qe,()=>d.nachname,St=>d.nachname=St),bind_value(Te,()=>d.strasse,St=>
81d.strasse=St),bind_value(mt,()=>d.plz,St=>d.plz=St),bind_value(Ue,()=>d.ort,St=>d.ort=St),bind_value(ot,()=>d.email,St=>d.email=St),bind_value(ft,()=>d.email_conf,St=>d.email_conf=St),delegated("click",be,z),append(re,ae)};if_block(H,re=>{get(c).length&&re(te)})}append(R,q)};if_block(e,R=>{w.message?R(f):R(g,-1)})}append(o,s),pop()}delegate(["click"]);var root_1$p=from_html('<div style="--aspect-ratio: 16/9; margin-bottom: 0rem"><iframe id="sdn291490795" title="3Q SDN" width="100%" height="360px" frameborder="0" scrolling="no" allowfullscreen=""></iframe></div>');function Videopaywall(o,n){push(n,!0);let c=proxy(window.msg&&window.msg!="{{ msg }}"&&JSON.parse(window.msg.replace(/&quot;/g,'"'))?JSON.parse(window.msg.replace(/&quot;/g,'"')):{});onMount(async()=>{});var d=comment$1(),h=first_child(d);{var m=p=>{var w=root_1$p(),z=child(w);template_effect(()=>set_attribute(z,"src",`https://playout.3qsdn.com/${c.playoutid??""}?key=${c.key??""}&timestamp=${c.timestamp??""}`)),append(p,w)};if_block(h,p=>{c&&p(m)})}append(o,d),pop()}var imagesloaded$1={exports:{}},evEmitter$1={exports:{}},evEmitter=evEmitter$1.exports,hasRequiredEvEmitter;function requireEvEmitter(){return hasRequiredEvEmitter||(hasRequiredEvEmitter=1,(function(o){(function(n,c){o.exports?o.exports=c():n.EvEmitter=c()})(typeof window<"u"?window:evEmitter,function(){function n(){}let c=n.prototype;return c.on=function(d,h){if(!d||!h)return this;let m=this._events=this._events||{},p=m[d]=m[d]||[];return p.includes(h)||p.push(h),this},c.once=function(d,h){if(!d||!h)return this;this.on(d,h);let m=this._onceEvents=this._onceEvents||{},p=m[d]=m[d]||{};return p[h]=!0,this},c.off=function(d,h){let m=this._events&&this._events[d];if(!m||!m.length)return this;let p=m.indexOf(h);return p!=-1&&m.splice(p,1),this},c.emitEvent=function(d,h){let m=this._events&&this._events[d];if(!m||!m.length)return this;m=m.slice(0),h=h||[];let p=this._onceEvents&&this._onceEvents[d];for(let w of m)p&&p[w]&&(this.off(d,w),delete p[w]),w.apply(this,h);return this},c.allOff=function(){return delete this._events,delete this._onceEvents,this},n})})(evEmitter$1)),evEmitter$1.exports}var imagesloaded=imagesloaded$1.exports,hasRequiredImagesloaded;function requireImagesloaded(){return hasRequiredImagesloaded||(hasRequiredImagesloaded=1,(function(o){(function(n,c){o.exports?o.exports=c(n,requireEvEmitter()):n.imagesLoaded=c(n,n.EvEmitter)})(typeof window<"u"?window:imagesloaded,function(c,d){let h=c.jQuery,m=c.console;function p(e){return Array.isArray(e)?e:typeof e=="object"&&typeof e.length=="number"?[...e]:[e]}function w(e,f,g){if(!(this instanceof w))return new w(e,f,g);let R=e;if(typeof e=="string"&&(R=document.querySelectorAll(e)),!R){m.error(`Bad element for imagesLoaded ${R||e}`);return}this.elements=p(R),this.options={},typeof f=="function"?g=f:Object.assign(this.options,f),g&&this.on("always",g),this.getImages(),h&&(this.jqDeferred=new h.Deferred),setTimeout(this.check.bind(this))}w.prototype=Object.create(d.prototype),w.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)};const z=[1,9,11];w.prototype.addElementImages=function(e){e.nodeName==="IMG"&&this.addImage(e),this.options.background===!0&&this.addElementBackgroundImages(e);let{nodeType:f}=e;if(!f||!z.includes(f))return;let g=e.querySelectorAll("img");for(let R of g)this.addImage(R);if(typeof this.options.background=="string"){let R=e.querySelectorAll(this.options.background);for(let q of R)this.addElementBackgroundImages(q)}};const A=/url\((['"])?(.*?)\1\)/gi;w.prototype.addElementBackgroundImages=function(e){let f=getComputedStyle(e);if(!f)return;let g=A.exec(f.backgroundImage);for(;g!==null;){let R=g&&g[2];R&&this.addBackground(R,e),g=A.exec(f.backgroundImage)}},w.prototype.addImage=function(e){let f=new y(e);this.images.push(f)},w.prototype.addBackground=function(e,f){let g=new s(e,f);this.images.push(g)},w.prototype.check=function(){if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length){this.complete();return}let e=(f,g,R)=>{setTimeout(()=>{this.progress(f,g,R)})};
81this.images.forEach(function(f){f.once("progress",e),f.check()})},w.prototype.progress=function(e,f,g){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded,this.emitEvent("progress",[this,e,f]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,e),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&m&&m.log(`progress: ${g}`,e,f)},w.prototype.complete=function(){let e=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(e,[this]),this.emitEvent("always",[this]),this.jqDeferred){let f=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[f](this)}};function y(e){this.img=e}y.prototype=Object.create(d.prototype),y.prototype.check=function(){if(this.getIsImageComplete()){this.confirm(this.img.naturalWidth!==0,"naturalWidth");return}this.proxyImage=new Image,this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src},y.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},y.prototype.confirm=function(e,f){this.isLoaded=e;let{parentNode:g}=this.img,R=g.nodeName==="PICTURE"?g:this.img;this.emitEvent("progress",[this,R,f])},y.prototype.handleEvent=function(e){let f="on"+e.type;this[f]&&this[f](e)},y.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},y.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},y.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)};function s(e,f){this.url=e,this.element=f,this.img=new Image}return s.prototype=Object.create(y.prototype),s.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(this.img.naturalWidth!==0,"naturalWidth"),this.unbindEvents())},s.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype.confirm=function(e,f){this.isLoaded=e,this.emitEvent("progress",[this,this.element,f])},w.makeJQueryPlugin=function(e){e=e||c.jQuery,e&&(h=e,h.fn.imagesLoaded=function(f,g){return new w(this,f,g).jqDeferred.promise(h(this))})},w.makeJQueryPlugin(),w})})(imagesloaded$1)),imagesloaded$1.exports}var imagesloadedExports=requireImagesloaded();const ImagesLoaded=getDefaultExportFromCjs(imagesloadedExports);let modulePromise=null;function connectYjs(){appState.eingeloggt&&(modulePromise||(modulePromise=__vitePreload(()=>import("./nchan-provider-BfIYjqTB.js").then(o=>o.n),[])),modulePromise.then(o=>o.connectYjs()).catch(o=>{console.error("[Yjs] Fehler beim Laden des Kollaborations-Moduls:",o)}))}const CLASS_PART_SEPARATOR="-",createClassGroupUtils=o=>{const n=createClassMap(o),{conflictingClassGroups:c,conflictingClassGroupModifiers:d}=o;return{getClassGroupId:p=>{const w=p.split(CLASS_PART_SEPARATOR);return w[0]===""&&w.length!==1&&w.shift(),getGroupRecursive(w,n)||getGroupIdForArbitraryProperty(p)},getConflictingClassGroupIds:(p,w)=>{const z=c[p]||[];return w&&d[p]?[...z,...d[p]]:z}}},getGroupRecursive=(o,n)=>{if(o.length===0)return n.classGroupId;const c=o[0],d=n.nextPart.get(c),h=d?getGroupRecursive(o.slice(1),d):void 0;if(h)return h;if(n.validators.length===0)return;const m=o.join(CLASS_PART_SEPARATOR);return n.validators.find(({validator:p})=>p(m))?.classGroupId},arbitraryPropertyRegex=/^\[(.+)\]$/,getGroupIdForArbitraryProperty=o=>{if(arbitraryPropertyRegex.test(o)){const n=arbitraryPropertyRegex.exec(o)[1],c=n?.substring(0,n.indexOf(":"));if(c)return"arbitrary.."+c}},createClassMap=o=>{const{theme:n,prefix:c}=o,d={nextPart:new Map,validators:[]};return getPrefixedClassGroupEntries(Object.entries(o.classGroups),c).forEach(([m,p])=>{processClassesRecursively(p,d,m,n)}),d},processClassesRecursively=(o,n,c,d)=>{o.forEach(h=>{if(typeof h=="string"){const m=h===""?n:getPart(n,h);m.classGroupId=c;return}if(typeof h=="function"){if(isThemeGetter(h)){processClassesRecursively(h(d),n,c,d);return}n.validators.push({validator:h,classGroupId:c});return}
vendor: 6,167 bytes, line 81
81Object.entries(h).forEach(([m,p])=>{processClassesRecursively(p,getPart(n,m),c,d)})})},getPart=(o,n)=>{let c=o;return n.split(CLASS_PART_SEPARATOR).forEach(d=>{c.nextPart.has(d)||c.nextPart.set(d,{nextPart:new Map,validators:[]}),c=c.nextPart.get(d)}),c},isThemeGetter=o=>o.isThemeGetter,getPrefixedClassGroupEntries=(o,n)=>n?o.map(([c,d])=>{const h=d.map(m=>typeof m=="string"?n+m:typeof m=="object"?Object.fromEntries(Object.entries(m).map(([p,w])=>[n+p,w])):m);return[c,h]}):o,createLruCache=o=>{if(o<1)return{get:()=>{},set:()=>{}};let n=0,c=new Map,d=new Map;const h=(m,p)=>{c.set(m,p),n++,n>o&&(n=0,d=c,c=new Map)};return{get(m){let p=c.get(m);if(p!==void 0)return p;if((p=d.get(m))!==void 0)return h(m,p),p},set(m,p){c.has(m)?c.set(m,p):h(m,p)}}},IMPORTANT_MODIFIER="!",createParseClassName=o=>{const{separator:n,experimentalParseClassName:c}=o,d=n.length===1,h=n[0],m=n.length,p=w=>{const z=[];let A=0,y=0,s;for(let q=0;q<w.length;q++){let H=w[q];if(A===0){if(H===h&&(d||w.slice(q,q+m)===n)){z.push(w.slice(y,q)),y=q+m;continue}if(H==="/"){s=q;continue}}H==="["?A++:H==="]"&&A--}const e=z.length===0?w:w.substring(y),f=e.startsWith(IMPORTANT_MODIFIER),g=f?e.substring(1):e,R=s&&s>y?s-y:void 0;return{modifiers:z,hasImportantModifier:f,baseClassName:g,maybePostfixModifierPosition:R}};return c?w=>c({className:w,parseClassName:p}):p},sortModifiers=o=>{if(o.length<=1)return o;const n=[];let c=[];return o.forEach(d=>{d[0]==="["?(n.push(...c.sort(),d),c=[]):c.push(d)}),n.push(...c.sort()),n},createConfigUtils=o=>({cache:createLruCache(o.cacheSize),parseClassName:createParseClassName(o),...createClassGroupUtils(o)}),SPLIT_CLASSES_REGEX=/\s+/,mergeClassList=(o,n)=>{const{parseClassName:c,getClassGroupId:d,getConflictingClassGroupIds:h}=n,m=[],p=o.trim().split(SPLIT_CLASSES_REGEX);let w="";for(let z=p.length-1;z>=0;z-=1){const A=p[z],{modifiers:y,hasImportantModifier:s,baseClassName:e,maybePostfixModifierPosition:f}=c(A);let g=!!f,R=d(g?e.substring(0,f):e);if(!R){if(!g){w=A+(w.length>0?" "+w:w);continue}if(R=d(e),!R){w=A+(w.length>0?" "+w:w);continue}g=!1}const q=sortModifiers(y).join(":"),H=s?q+IMPORTANT_MODIFIER:q,te=H+R;if(m.includes(te))continue;m.push(te);const re=h(R,g);for(let ae=0;ae<re.length;++ae){const ne=re[ae];m.push(H+ne)}w=A+(w.length>0?" "+w:w)}return w};function twJoin(){let o=0,n,c,d="";for(;o<arguments.length;)(n=arguments[o++])&&(c=toValue(n))&&(d&&(d+=" "),d+=c);return d}const toValue=o=>{if(typeof o=="string")return o;let n,c="";for(let d=0;d<o.length;d++)o[d]&&(n=toValue(o[d]))&&(c&&(c+=" "),c+=n);return c};function createTailwindMerge(o,...n){let c,d,h,m=p;function p(z){const A=n.reduce((y,s)=>s(y),o());return c=createConfigUtils(A),d=c.cache.get,h=c.cache.set,m=w,w(z)}function w(z){const A=d(z);if(A)return A;const y=mergeClassList(z,c);return h(z,y),y}return function(){return m(twJoin.apply(null,arguments))}}const fromTheme=o=>{const n=c=>c[o]||[];return n.isThemeGetter=!0,n},arbitraryValueRegex=/^\[(?:([a-z-]+):)?(.+)\]$/i,fractionRegex=/^\d+\/\d+$/,stringLengths=new Set(["px","full","screen"]),tshirtUnitRegex=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lengthUnitRegex=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,colorFunctionRegex=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,shadowRegex=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,imageRegex=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,isLength=o=>isNumber(o)||stringLengths.has(o)||fractionRegex.test(o),isArbitraryLength=o=>getIsArbitraryValue(o,"length",isLengthOnly),isNumber=o=>!!o&&!Number.isNaN(Number(o)),isArbitraryNumber=o=>getIsArbitraryValue(o,"number",isNumber),isInteger=o=>!!o&&Number.isInteger(Number(o)),isPercent=o=>o.endsWith("%")&&isNumber(o.slice(0,-1)),isArbitraryValue=o=>arbitraryValueRegex.test(o),isTshirtSize=o=>tshirtUnitRegex.test(o),sizeLabels=new Set(["length","size","percentage"]),isArbitrarySize=o=>getIsArbitraryValue(o,sizeLabels,isNever),isArbitraryPosition=o=>getIsArbitraryValue(o,"position",isNever),imageLabels=new Set(["image","url"]),isArbitraryImage=o=>getIsArbitraryValue(o,imageLabels,isImage),isArbitraryShadow=o=>getIsArbitraryValue(o,"",isShadow),isAny=()=>!0,getIsArbitraryValue=(o,n,c)=>{const d=arbitraryValueRegex.exec(o);return d?d[1]?typeof n=="string"?d[1]===n:n.has(d[1]):c(d[2]):!1},isLengthOnly=o=>lengthUnitRegex.test(o)&&!colorFunctionRegex.test(o),isNever=()=>!1,isShadow=o=>shadowRegex.test(o),isImage=o=>imageRegex.test(o),getDefaultConfig=()=>{const o=fromTheme("colors"),n=fromTheme("spacing"),c=fromTheme("blur"),d=fromTheme("brightness"),h=fromTheme("borderColor"),m=fromTheme("borderRadius"),p=fromTheme("borderSpacing"),w=fromTheme("borderWidth"),z=fromTheme("contrast"),A=fromTheme("grayscale"),y=fromTheme("hueRotate"),s=fromTheme("invert"),e=fromTheme("gap"),f=fromTheme("gradientColorStops"),g=fromTheme("gradientColorStopPositions"),R=fromTheme("inset"),q=fromTheme("margin"),H=fromTheme("opacity"),te=fromTheme("padding"),re=fromTheme("saturate"),ae=fromTheme("scale"),ne=fromTheme("sepia"),oe=fromTheme("skew"),le=fromTheme("space"),ce=fromTheme("translate"),ue=()=>["auto","contain","none"],he=()=>["auto","hidden","clip","visible","scroll"],ge=()=>["auto",isArbitraryValue,n],Oe=()=>[isArbitraryValue,n],$e=()=>["",isLength,isArbitraryLength],Pe=()=>["auto",isNumber,isArbitraryValue],Le=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],me=()=>["solid","dashed","dotted","double","none"],we=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Se=()=>["start","end","center","between","around","evenly","stretch"],ye=()=>["","0",isArbitraryValue],ke=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Ae=()=>[isNumber,isArbitraryValue];return{cacheSize:500,separator:":",theme:{colors:[isAny],spacing:[isLength,isArbitraryLength],blur:["none","",isTshirtSize,isArbitraryValue],brightness:Ae(),borderColor:[o],borderRadius:["n
81one","","full",isTshirtSize,isArbitraryValue],borderSpacing:Oe(),borderWidth:$e(),contrast:Ae(),grayscale:ye(),hueRotate:Ae(),invert:ye(),gap:Oe(),gradientColorStops:[o],gradientColorStopPositions:[isPercent,isArbitraryLength],inset:ge(),margin:ge(),opacity:Ae(),padding:Oe(),saturate:Ae(),scale:Ae(),sepia:ye(),skew:Ae(),space:Oe(),translate:Oe()},classGroups:{aspect:[{aspect:["auto","square","video",isArbitraryValue]}],container:["container"],columns:[{columns:[isTshirtSize]}],"break-after":[{"break-after":ke()}],"break-before":[{"break-before":ke()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Le(),isArbitraryValue]}],overflow:[{overflow:he()}],"overflow-x":[{"overflow-x":he()}],"overflow-y":[{"overflow-y":he()}],overscroll:[{overscroll:ue()}],"overscroll-x":[{"overscroll-x":ue()}],"overscroll-y":[{"overscroll-y":ue()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[R]}],"inset-x":[{"inset-x":[R]}],"inset-y":[{"inset-y":[R]}],start:[{start:[R]}],end:[{end:[R]}],top:[{top:[R]}],right:[{right:[R]}],bottom:[{bottom:[R]}],left:[{left:[R]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",isInteger,isArbitraryValue]}],basis:[{basis:ge()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",isArbitraryValue]}],grow:[{grow:ye()}],shrink:[{shrink:ye()}],order:[{order:["first","last","none",isInteger,isArbitraryValue]}],"grid-cols":[{"grid-cols":[isAny]}],"col-start-end":[{col:["auto",{span:["full",isInteger,isArbitraryValue]},isArbitraryValue]}],"col-start":[{"col-start":Pe()}],"col-end":[{"col-end":Pe()}],"grid-rows":[{"grid-rows":[isAny]}],"row-start-end":[{row:["auto",{span:[isInteger,isArbitraryValue]},isArbitraryValue]}],"row-start":[{"row-start":Pe()}],"row-end":[{"row-end":Pe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",isArbitraryValue]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",isArbitraryValue]}],gap:[{gap:[e]}],"gap-x":[{"gap-x":[e]}],"gap-y":[{"gap-y":[e]}],"justify-content":[{justify:["normal",...Se()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Se(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Se(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[te]}],px:[{px:[te]}],py:[{py:[te]}],ps:[{ps:[te]}],pe:[{pe:[te]}],pt:[{pt:[te]}],pr:[{pr:[te]}],pb:[{pb:[te]}],pl:[{pl:[te]}],m:[{m:[q]}],mx:[{mx:[q]}],my:[{my:[q]}],ms:[{ms:[q]}],me:[{me:[q]}],mt:[{mt:[q]}],mr:[{mr:[q]}],mb:[{mb:[q]}],ml:[{ml:[q]}],"space-x":[{"space-x":[le]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[le]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",isArbitraryValue,n]}],"min-w":[{"min-w":[isArbitraryValue,n,"min","max","fit"]}],"max-w":[{"max-w":[isArbitraryValue,n,"none","full","min","max","fit","prose",{screen:[isTshirtSize]},isTshirtSize]}],h:[{h:[isArbitraryValue,n,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[isArbitraryValue,n,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[isArbitraryValue,n,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[isArbitraryValue,n,"auto","min","max","fit"]}],"font-size":[{text:["base",isTshirtSize,isArbitraryLength]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",isArbitraryNumber]}
vendor: 8,200 bytes, line 81
81],"font-family":[{font:[isAny]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",isArbitraryValue]}],"line-clamp":[{"line-clamp":["none",isNumber,isArbitraryNumber]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",isLength,isArbitraryValue]}],"list-image":[{"list-image":["none",isArbitraryValue]}],"list-style-type":[{list:["none","disc","decimal",isArbitraryValue]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[o]}],"placeholder-opacity":[{"placeholder-opacity":[H]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[o]}],"text-opacity":[{"text-opacity":[H]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...me(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",isLength,isArbitraryLength]}],"underline-offset":[{"underline-offset":["auto",isLength,isArbitraryValue]}],"text-decoration-color":[{decoration:[o]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:Oe()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",isArbitraryValue]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",isArbitraryValue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[H]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Le(),isArbitraryPosition]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",isArbitrarySize]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},isArbitraryImage]}],"bg-color":[{bg:[o]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[m]}],"rounded-s":[{"rounded-s":[m]}],"rounded-e":[{"rounded-e":[m]}],"rounded-t":[{"rounded-t":[m]}],"rounded-r":[{"rounded-r":[m]}],"rounded-b":[{"rounded-b":[m]}],"rounded-l":[{"rounded-l":[m]}],"rounded-ss":[{"rounded-ss":[m]}],"rounded-se":[{"rounded-se":[m]}],"rounded-ee":[{"rounded-ee":[m]}],"rounded-es":[{"rounded-es":[m]}],"rounded-tl":[{"rounded-tl":[m]}],"rounded-tr":[{"rounded-tr":[m]}],"rounded-br":[{"rounded-br":[m]}],"rounded-bl":[{"rounded-bl":[m]}],"border-w":[{border:[w]}],"border-w-x":[{"border-x":[w]}],"border-w-y":[{"border-y":[w]}],"border-w-s":[{"border-s":[w]}],"border-w-e":[{"border-e":[w]}],"border-w-t":[{"border-t":[w]}],"border-w-r":[{"border-r":[w]}],"border-w-b":[{"border-b":[w]}],"border-w-l":[{"border-l":[w]}],"border-opacity":[{"border-opacity":[H]}],"border-style":[{border:[...me(),"hidden"]}],"divide-x":[{"divide-x":[w]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[w]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[H]}],"divide-style":[{divide:me()}],"border-color":[{border:[h]}],"border-color-x":[{"border-x":[h]}],"border-color-y":[{"border-y":[h]}],"border-color-s":[{"border-s":[h]}],"border-color-e":[{"border-e":[h]}],"border-color-t":[{"border-t":[h]}],"border-color-r":[{"border-r":[h]}],"border-color-b":[{"border-b":[h]}],"border-color-l":[{"border-l":[h]}],"divide-color":[{divide:[h]}],"outline-style":[{outline:["",...me()]}],"outline-offset":[{"outline-offset":[isLength,isArbitraryValue]}],"outline-w":[{outline:[isLength,isArbitraryLength]}],"outline-color":[{outline:[o]}],"ring-w":[{ring:$e()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[o]}],"ring-opacity":[{"ring-opacity":[H]}],"ring-offset-w":[{"ring-offset":[isLength,isArbitraryLength]}],"ring-offset-color":[{"ring-offset":[o]}],shadow:[{shadow:["","inner","none",isTshirtSize,isArbitraryShadow]}],"shadow-color":[{shadow:[isAny]}],opacity:[{opacity:[H]}],"mix-blend":[{"mix-blend":[...we(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":we()}],filter:[{filter:["","none"]}],blur:[{blur:[c]}],brightness:[{brightness:[d]}],contrast:[{contrast:[z]}],"drop-shadow":[{"drop-shadow":["","none",isTshirtSize,isArbitraryValue]}],grayscale:[{grayscale:[A]}],"hue-rotate":[{"hue-rotate":[y]}],invert:[{invert:[s]}],saturate:[{saturate:[re]}],sepia:[{sepia:[ne]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[c]}],"backdrop-brightness":[{"backdrop-brightness":[d]}],"backdrop-contrast":[{"backdrop-contrast":[z]}],"backdrop-grayscale":[{"backdrop-grayscale":[A]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[y]}],"backdrop-invert":[{"backdrop-invert":[s]}],"backdrop-opacity":[{"backdrop-opacity":[H]}],"backdrop-saturate":[{"backdrop-saturate":[re]}],"backdrop-sepia":[{"backdrop-sepia":[ne]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[p]}],"border-spacing-x":[{"border-spacing-x":[p]}],"border-spacing-y":[{"border-spacing-y":[p]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",isArbitraryValue]}],duration:[{duration:Ae()}],ease:[{ease:["linear","in","out","in-out",isArbitraryValue]}],delay:[{delay:Ae()}],animate:[{animate:["none","spin","ping","pulse","bounce",isArbitraryValue]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[ae]}],"scale-x":[{"scale-x":[ae]}],"scale-y":[{"scale-y":[ae]}],rotate:[{rotate:[isInteger,isArbitraryValue]}],"translate-x":[{"translate-x":[ce]}],"translate-y":[{"translate-y":[ce]}],"skew-x":[{"skew-x":[oe]}],"skew-y":[{"skew-y":[oe]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",isArbitraryValue]}],accent:[{accent:["auto",o]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",isArbitraryValue]}],"caret-color":[{caret:[o]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":Oe()}],"scroll-mx":[{"scroll-mx":Oe()}],"scroll-my":[{"scroll-my":Oe()}],"scroll-ms":[{"scroll-ms":Oe()}],"scroll-me":[{"scroll-me":Oe()}],"scroll-mt":[{"scroll-mt":Oe()}],"scroll-mr":[{"scroll-mr":Oe()}],"scroll-mb":[{"scroll-mb":Oe()}],"scroll-ml":[{"scroll-ml":Oe()}],"scroll-p":[{"scroll-p":Oe()}],"scroll-px":[{"scroll-px":Oe()}],"scroll-py":[{"scroll-py":Oe()}],"scroll-ps":[{"scroll-ps":Oe()}],"scroll-pe":[{"scroll-pe":Oe()}],"scroll-pt":[{"scroll-pt":Oe()}],"scroll-pr":[{"scroll-pr":Oe()}],"scroll-pb":[{"scroll-pb":Oe()}],"scroll-pl":[{"scroll-pl":Oe()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",isArbitraryValue]}],fill:[{fill:[o,"none"]}],"stroke-w":[{stroke:[isLength,isArbitraryLength,isArbitraryNumber]}
81],stroke:[{stroke:[o,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},twMerge=createTailwindMerge(getDefaultConfig);var root_3$l=from_svg('<svg fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z" clip-rule="evenodd"></path></svg>'),root_2$r=from_html('<div><label for="table-search" class="sr-only">Search</label> <div><div><!></div> <input type="text" id="table-search"/></div> <!></div>'),root$C=from_html("<div><!> <table><!></table></div>");function Table(o,n){const c=legacy_rest_props(n,["children","$$slots","$$events","$$legacy"]),d=legacy_rest_props(c,["divClass","striped","hoverable","noborder","shadow","color","customeColor","items","filter","placeholder","innerDivClass","searchClass","svgDivClass","svgClass","inputClass","classInput","classSvgDiv"]);push(n,!1);let h=prop(n,"divClass",8,"relative overflow-x-auto"),m=prop(n,"striped",8,!1),p=prop(n,"hoverable",8,!1),w=prop(n,"noborder",8,!1),z=prop(n,"shadow",8,!1),A=prop(n,"color",8,"default"),y=prop(n,"customeColor",8,""),s=prop(n,"items",24,()=>[]),e=prop(n,"filter",8,null),f=prop(n,"placeholder",8,"Search"),g=prop(n,"innerDivClass",8,"p-4"),R=prop(n,"searchClass",8,"relative mt-1"),q=prop(n,"svgDivClass",8,"absolute inset-y-0 start-0 flex items-center ps-3 pointer-events-none"),H=prop(n,"svgClass",8,"w-5 h-5 text-gray-500 dark:text-gray-400"),te=prop(n,"inputClass",8,"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-80 p-2.5 ps-10 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"),re=prop(n,"classInput",8,""),ae=prop(n,"classSvgDiv",8,""),ne=mutable_source(""),oe=twMerge(te(),re()),le=twMerge(q(),ae());const ce={default:"text-gray-500 dark:text-gray-400",blue:"text-blue-100 dar
81k:text-blue-100",green:"text-green-100 dark:text-green-100",red:"text-red-100 dark:text-red-100",yellow:"text-yellow-100 dark:text-yellow-100",purple:"text-purple-100 dark:text-purple-100",indigo:"text-indigo-100 dark:text-indigo-100",pink:"text-pink-100 dark:text-pink-100",custom:y()},ue=writable(get(ne)),he=writable(e());setContext("searchTerm",ue),setContext("filter",he),setContext("sorter",writable(null)),legacy_pre_effect(()=>deep_read_state(m()),()=>{setContext("striped",m())}),legacy_pre_effect(()=>deep_read_state(p()),()=>{setContext("hoverable",p())}),legacy_pre_effect(()=>deep_read_state(w()),()=>{setContext("noborder",w())}),legacy_pre_effect(()=>deep_read_state(A()),()=>{setContext("color",A())}),legacy_pre_effect(()=>deep_read_state(s()),()=>{setContext("items",s())}),legacy_pre_effect(()=>get(ne),()=>{ue.set(get(ne))}),legacy_pre_effect(()=>deep_read_state(e()),()=>{e()&&he.set(e())}),legacy_pre_effect_reset(),init();var ge=root$C(),Oe=child(ge);{var $e=me=>{var we=comment$1(),Se=first_child(we);slot(Se,n,"search",{},ye=>{var ke=root_2$r(),Ae=sibling(child(ke),2),Ie=child(Ae),qe=child(Ie);slot(qe,n,"svgSearch",{},Te=>{var ve=root_3$l();template_effect(()=>set_class(ve,0,clsx(H()))),append(Te,ve)});var Ge=sibling(Ie,2),Je=sibling(Ae,2);slot(Je,n,"header",{},null),template_effect(()=>{set_class(ke,1,clsx(g())),set_class(Ae,1,clsx(R())),set_class(Ie,1,clsx(le)),set_class(Ge,1,clsx(oe)),set_attribute(Ge,"placeholder",f())}),bind_value(Ge,()=>get(ne),Te=>set(ne,Te)),append(ye,ke)}),append(me,we)};if_block(Oe,me=>{e()&&me($e)})}var Pe=sibling(Oe,2);attribute_effect(Pe,me=>({...d,class:me}),[()=>(deep_read_state(twMerge),deep_read_state(A()),deep_read_state(c),untrack(()=>twMerge("w-full text-left text-sm",ce[A()],c.class)))]);var Le=child(Pe);slot(Le,n,"default",{},null),template_effect(me=>set_class(ge,1,me),[()=>clsx((deep_read_state(twJoin),deep_read_state(h()),deep_read_state(z()),untrack(()=>twJoin(h(),z()&&"shadow-md sm:rounded-lg"))))]),append(o,ge),pop()}var root$B=from_html("<tbody><!><!></tbody>");function TableBody(o,n){const c=legacy_rest_props(n,["children","$$slots","$$events","$$legacy"]),d=legacy_rest_props(c,["tableBodyClass"]);push(n,!1);const h=()=>store_get(f,"$filter",w),m=()=>store_get(g,"$searchTerm",w),p=()=>store_get(R,"$sorter",w),[w,z]=setup_stores(),A=mutable_source(),y=mutable_source(),s=mutable_source();let e=prop(n,"tableBodyClass",24,()=>{}),f=getContext("filter"),g=getContext("searchTerm"),R=getContext("sorter");legacy_pre_effect(()=>getContext,()=>{set(A,getContext("items")||[])}),legacy_pre_effect(()=>(h(),get(A),m()),()=>{set(y,h()?get(A).filter(re=>h()(re,m())):get(A))}),legacy_pre_effect(()=>(p(),get(y)),()=>{set(s,p()?get(y).toSorted((re,ae)=>p().sortDirection*p().sort(re,ae)):get(y))}),legacy_pre_effect_reset(),init();var q=root$B();attribute_effect(q,()=>({...d,class:e()}));var H=child(q);slot(H,n,"default",{},null);var te=sibling(H);each(te,1,()=>get(s),index,(re,ae)=>{var ne=comment$1(),oe=first_child(ne);slot(oe,n,"row",{get item(){return get(ae)}},null),append(re,ne)}),append(o,q),pop(),z()}var root_1$o=from_html("<button><!></button>"),root$A=from_html("<td><!></td>");function TableBodyCell(o,n){const c=legacy_rest_props(n,["children","$$slots","$$events","$$legacy"]),d=legacy_rest_props(c,["tdClass"]);push(n,!1);let h=prop(n,"tdClass",8,"px-6 py-4 whitespace-nowrap font-medium "),m=mutable_source("default");set(m,getContext("color"));let p=mutable_source();legacy_pre_effect(()=>(deep_read_state(h()),get(m),deep_read_state(c)),()=>{set(p,twMerge(h(),get(m)==="default"?"text-gray-900 dark:text-white":"text-blue-50 whitespace-nowrap dark:text-blue-100",c.class))}),legacy_pre_effect_reset(),init();var w=root$A();attribute_effect(w,()=>({...d,class:get(p)}));var z=child(w);{var A=s=>{var e=root_1$o(),f=child(e);slot(f,n,"default",{},null),event("click",e,function(...g){c.onclick?.apply(this,g)}),append(s,e)},y=s=>{var e=comment$1(),f=first_child(e);slot(f,n,"default",{},null),append(s,e)};if_block(z,s=>{deep_read_state(c),untrack(()=>c.onclick)?s(A):s(y,-1)})}append(o,w),pop()}var root$z=from_html("<tr><!></tr>");function TableBodyRow(o,n){const c=legacy_rest_props(n,["children","$$slots","$$events","$$legacy"]),d=legacy_rest_props(c,["color"]);push(n,!1);let h=prop(n,"color",24,()=>getContext("color"));const m={default:"bg-white dark:bg-gray-800 dark:border-gray-700",blue:"bg-blue-500 border-blue-400",green:"bg-green-500 border-green-400",red:"bg-red-500 border-red-400",yellow:"bg-yellow-500 border-yellow-400",purple:"bg-purple-500 border-purple-400",custom:""},p={default:"hover:bg-gray-50 dark:hover:bg-gray-600",blue:"hover:bg-blue-400",green:"hover:bg-green-400",red:"hover:bg-red-400",yellow:"hover:bg-yellow-400",purple:"hover:bg-purple-400",custom:""},w={default:"odd:bg-white even:bg-gray-50 odd:dark:bg-gray-800 even:dark:bg-gray-700",blue:"odd:bg-blue-800 even:bg-blue-700 odd:dark:bg-blue-800 even:dark:bg-blue-700",green:"odd:bg-green-800 even:bg-green-700 odd:dark:bg-green-800 even:dark:bg-green-700",red:"odd:bg-red-800 even:bg-red-700 odd:dark:bg-red-800 even:dark:bg-red-700",yellow:"odd:bg-yellow-800 even:bg-yellow-700 odd:dark:bg-yellow-800 even:dark:bg-yellow-700",purple:"odd:bg-purple-800 even:bg-purple-700 odd:dark:bg-purple-800 even:dark:bg-purple-700",custom:""};let z=mutable_source();legacy_pre_effect(()=>(deep_read_state(h()),deep_read_state(c)),()=>{set(z,twMerge([!getContext("noborder")&&"border-b last:border-b-0",m[h()],getContext("hoverable")&&p[h()],getContext("striped")&&w[h()],c.class]))}),legacy_pre_effect_reset(),init();var A=root$z();attribute_effect(A,()=>({...d,class:get(z)}));var y=child(A);
81slot(y,n,"default",{},null),event("click",A,function(s){bubble_event.call(this,n,s)}),event("contextmenu",A,function(s){bubble_event.call(this,n,s)}),event("dblclick",A,function(s){bubble_event.call(this,n,s)}),append(o,A),pop()}function dispatchCallback(o,n){o&&o(n)}function reverseDictionary(o){return Object.fromEntries(Object.entries(o).map(([n,c])=>[c,n]))}const Callable=class{constructor(){let o=function(...n){return o._call(...n)};return Object.setPrototypeOf(o,new.target.prototype)}_call(...o){throw Error("Must implement _call method in subclass")}};function isTypedArray(o){return o?.prototype?.__proto__?.constructor?.name==="TypedArray"}function isIntegralNumber(o){return Number.isInteger(o)||typeof o=="bigint"}function exists(o){return o!=null}function mergeArrays(...o){return Array.prototype.concat.apply([],o)}const sharp={},ONNX_NODE=Object.freeze(Object.defineProperty({__proto__:null,default:sharp},Symbol.toStringTag,{value:"Module"}));var ortWeb_min$1={exports:{}};const backends={},backendsSortedByPriority=[],registerBackend=(o,n,c)=>{if(n&&typeof n.init=="function"&&typeof n.createSessionHandler=="function"){const d=backends[o];if(d===void 0)backends[o]={backend:n,priority:c};else{if(d.priority>c)return;if(d.priority===c&&d.backend!==n)throw new Error(`cannot register backend "${o}" using priority ${c}`)}if(c>=0){const h=backendsSortedByPriority.indexOf(o);h!==-1&&backendsSortedByPriority.splice(h,1);for(let m=0;m<backendsSortedByPriority.length;m++)if(backends[backendsSortedByPriority[m]].priority<=c){backendsSortedByPriority.splice(m,0,o);return}backendsSortedByPriority.push(o)}return}throw new TypeError("not a valid backend")},resolveBackend=async o=>{const n=o.length===0?backendsSortedByPriority:o,c=[];for(const d of n){const h=backends[d];if(h){if(h.initialized)return h.backend;if(h.aborted)continue;const m=!!h.initPromise;try{return m||(h.initPromise=h.backend.init()),await h.initPromise,h.initialized=!0,h.backend}catch(p){m||c.push({name:d,err:p}),h.aborted=!0}finally{delete h.initPromise}}}throw new Error(`no available backend found. ERR: ${c.map(d=>`[${d.name}] ${d.err}`).join(", ")}`)};class EnvImpl{constructor(){this.wasm={},this.webgl={},this.logLevelInternal="warning"}set logLevel(n){if(n!==void 0){if(typeof n!="string"||["verbose","info","warning","error","fatal"].indexOf(n)===-1)throw new Error(`Unsupported logging level: ${n}`);this.logLevelInternal=n}}get logLevel(){return this.logLevelInternal}}const env$2=new EnvImpl,isBigInt64ArrayAvailable=typeof BigInt64Array<"u"&&typeof BigInt64Array.from=="function",isBigUint64ArrayAvailable=typeof BigUint64Array<"u"&&typeof BigUint64Array.from=="function",NUMERIC_TENSOR_TYPE_TO_TYPEDARRAY_MAP=new Map([["float32",Float32Array],["uint8",Uint8Array],["int8",Int8Array],["uint16",Uint16Array],["int16",Int16Array],["int32",Int32Array],["bool",Uint8Array],["float64",Float64Array],["uint32",Uint32Array]]),NUMERIC_TENSOR_TYPEDARRAY_TO_TYPE_MAP=new Map([[Float32Array,"float32"],[Uint8Array,"uint8"],[Int8Array,"int8"],[Uint16Array,"uint16"],[Int16Array,"int16"],[Int32Array,"int32"],[Float64Array,"float64"],[Uint32Array,"uint32"]]);isBigInt64ArrayAvailable&&(NUMERIC_TENSOR_TYPE_TO_TYPEDARRAY_MAP.set("int64",BigInt64Array),NUMERIC_TENSOR_TYPEDARRAY_TO_TYPE_MAP.set(BigInt64Array,"int64"));isBigUint64ArrayAvailable&&(NUMERIC_TENSOR_TYPE_TO_TYPEDARRAY_MAP.set("uint64",BigUint64Array),NUMERIC_TENSOR_TYPEDARRAY_TO_TYPE_MAP.set(BigUint64Array,"uint64"));const calculateSize=o=>{let n=1;for(let c=0;c<o.length;c++){const d=o[c];if(typeof d!="number"||!Number.isSafeInteger(d))throw new TypeError(`dims[${c}] must be an integer, got: ${d}`);if(d<0)throw new RangeError(`dims[${c}] must be a non-negative integer, got: ${d}`);n*=d}return n};let Tensor$2=class Bs{constructor(n,c,d){let h,m,p;if(typeof n=="string")if(h=n,p=d,n==="string"){if(!Array.isArray(c))throw new TypeError("A string tensor's data must be a string array.");m=c}else{const z=NUMERIC_TENSOR_TYPE_TO_TYPEDARRAY_MAP.get(n);if(z===void 0)throw new TypeError(`Unsupported tensor type: ${n}.`);if(Array.isArray(c))m=z.from(c);else if(c instanceof z)m=c;else throw new TypeError(`A ${h} tensor's data must be type of ${z}`)}else if(p=c,Array.isArray(n)){if(n.length===0)throw new TypeError("Tensor type cannot be inferred from an empty array.");const z=typeof n[0];if(z==="string")h="string",m=n;else if(z==="boolean")h="bool",m=Uint8Array.from(n);else throw new TypeError(`Invalid element type of data array: ${z}.`)}else{const z=NUMERIC_TENSOR_TYPEDARRAY_TO_TYPE_MAP.get(n.constructor);if(z===void 0)throw new TypeError(`Unsupported type for tensor data: ${n.constructor}.`);h=z,m=n}if(p===void 0)p=[m.length];else if(!Array.isArray(p))throw new TypeError("A tensor's dims must be a number array");const w=calculateSize(p);if(w!==m.length)throw new Error(`Tensor's size(${w}) does not match data length(${m.length}).`);this.dims=p,this.type=h,this.data=m,this.size=w}static bufferToTensor(n,c){if(n===void 0)throw new Error("Image buffer must be defined");if(c.height===void 0||c.width===void 0)throw new Error("Image height and width must be defined");const{height:d,width:h}=c,m=c.norm;let p,w;m===void 0||m.mean===void 0?p=255:p=m.mean,m===void 0||m.bias===void 0?w=0:w=m.b
81ias;const z=c.bitmapFormat!==void 0?c.bitmapFormat:"RGBA",A=c.tensorFormat!==void 0&&c.tensorFormat!==void 0?c.tensorFormat:"RGB",y=d*h,s=A==="RGBA"?new Float32Array(y*4):new Float32Array(y*3);let e=4,f=0,g=1,R=2,q=3,H=0,te=y,re=y*2,ae=-1;z==="RGB"&&(e=3,f=0,g=1,R=2,q=-1),A==="RGBA"?ae=y*3:A==="RBG"?(H=0,re=y,te=y*2):A==="BGR"&&(re=0,te=y,H=y*2);for(let oe=0;oe<y;oe++,f+=e,R+=e,g+=e,q+=e)s[H++]=(n[f]+w)/p,s[te++]=(n[g]+w)/p,s[re++]=(n[R]+w)/p,ae!==-1&&q!==-1&&(s[ae++]=(n[q]+w)/p);return A==="RGBA"?new Bs("float32",s,[1,4,d,h]):new Bs("float32",s,[1,3,d,h])}static async fromImage(n,c){const d=typeof HTMLImageElement<"u"&&n instanceof HTMLImageElement,h=typeof ImageData<"u"&&n instanceof ImageData,m=typeof ImageBitmap<"u"&&n instanceof ImageBitmap,p=typeof String<"u"&&(n instanceof String||typeof n=="string");let w,z={};if(d){const A=document.createElement("canvas"),y=A.getContext("2d");if(y!=null){let s=n.naturalHeight,e=n.naturalWidth;if(c!==void 0&&c.resizedHeight!==void 0&&c.resizedWidth!==void 0&&(s=c.resizedHeight,e=c.resizedWidth),c!==void 0){if(z=c,c.tensorFormat!==void 0)throw new Error("Image input config format must be RGBA for HTMLImageElement");if(z.tensorFormat="RGBA",c.height!==void 0&&c.height!==s)throw new Error("Image input config height doesn't match HTMLImageElement height");if(z.height=s,c.width!==void 0&&c.width!==e)throw new Error("Image input config width doesn't match HTMLImageElement width");z.width=e}else z.tensorFormat="RGBA",z.height=s,z.width=e;A.width=e,A.height=s,y.drawImage(n,0,0,e,s),w=y.getImageData(0,0,e,s).data}else throw new Error("Can not access image data")}else if(h){const A="RGBA";let y,s;if(c!==void 0&&c.resizedWidth!==void 0&&c.resizedHeight!==void 0?(y=c.resizedHeight,s=c.resizedWidth):(y=n.height,s=n.width),c!==void 0){if(z=c,c.bitmapFormat!==void 0&&c.bitmapFormat!==A)throw new Error("Image input config format must be RGBA for ImageData");z.bitmapFormat="RGBA"}else z.bitmapFormat="RGBA";if(z.height=y,z.width=s,c!==void 0){const e=document.createElement("canvas");e.width=s,e.height=y;const f=e.getContext("2d");if(f!=null)f.putImageData(n,0,0),w=f.getImageData(0,0,s,y).data;else throw new Error("Can not access image data")}else w=n.data}else if(m){if(c===void 0)throw new Error("Please provide image config with format for Imagebitmap");if(c.bitmapFormat!==void 0)throw new Error("Image input config format must be defined for ImageBitmap");const A=document.createElement("canvas").getContext("2d");if(A!=null){const y=n.height,s=n.width;if(A.drawImage(n,0,0,s,y),w=A.getImageData(0,0,s,y).data,c!==void 0){if(c.height!==void 0&&c.height!==y)throw new Error("Image input config height doesn't match ImageBitmap height");if(z.height=y,c.width!==void 0&&c.width!==s)throw new Error("Image input config width doesn't match ImageBitmap width");z.width=s}else z.height=y,z.width=s;return Bs.bufferToTensor(w,z)}else throw new Error("Can not access image data")}else{if(p)return new Promise((A,y)=>{const s=document.createElement("canvas"),e=s.getContext("2d");if(!n||!e)return y();const f=new Image;f.crossOrigin="Anonymous",f.src=n,f.onload=()=>{s.width=f.width,s.height=f.height,e.drawImage(f,0,0,s.width,s.height);const g=e.getImageData(0,0,s.width,s.height);if(c!==void 0){if(c.height!==void 0&&c.height!==s.height)throw new Error("Image input config height doesn't match ImageBitmap height");if(z.height=s.height,c.width!==void 0&&c.width!==s.width)throw new Error("Image input config width doesn't match ImageBitmap width");z.width=s.width}else z.height=s.height,z.width=s.width;A(Bs.bufferToTensor(g.data,z))}});throw new Error("Input data provided is not supported - aborted tensor creation")}if(w!==void 0)return Bs.bufferToTensor(w,z);throw new Error("Input data provided is not supported - aborted tensor creation")}toImageData(n){var c,d;const h=document.createElement("canvas").getContext("2d");let m;if(h!=null){const p=this.dims[3],w=this.dims[2],z=this.dims[1],A=n!==void 0&&n.format!==void 0?n.format:"RGB",y=n!==void 0&&((c=n.norm)===null||c===void 0?void 0:c.mean)!==void 0?n.norm.mean:255,s=n!==void 0&&((d=n.norm)===null||d===void 0?void 0:d.bias)!==void 0?n.norm.bias:0,e=w*p;if(n!==void 0){if(n.height!==void 0&&n.height!==w)throw new Error("Image output config height doesn't match tensor height");if(n.width!==void 0&&n.width!==p)throw new Error("Image output config width doesn't match tensor width");
81if(n.format!==void 0&&z===4&&n.format!=="RGBA"||z===3&&n.format!=="RGB"&&n.format!=="BGR")throw new Error("Tensor format doesn't match input tensor dims")}const f=4;let g=0,R=1,q=2,H=3,te=0,re=e,ae=e*2,ne=-1;A==="RGBA"?(te=0,re=e,ae=e*2,ne=e*3):A==="RGB"?(te=0,re=e,ae=e*2):A==="RBG"&&(te=0,ae=e,re=e*2),m=h.createImageData(p,w);for(let oe=0;oe<w*p;g+=f,R+=f,q+=f,H+=f,oe++)m.data[g]=(this.data[te++]-s)*y,m.data[R]=(this.data[re++]-s)*y,m.data[q]=(this.data[ae++]-s)*y,m.data[H]=ne===-1?255:(this.data[ne++]-s)*y}else throw new Error("Can not access image data");return m}reshape(n){return new Bs(this.type,this.data,n)}};const Tensor$1=Tensor$2;let InferenceSession$2=class Dc{constructor(n){this.handler=n}async run(n,c,d){const h={};let m={};if(typeof n!="object"||n===null||n instanceof Tensor$1||Array.isArray(n))throw new TypeError("'feeds' must be an object that use input names as keys and OnnxValue as corresponding values.");let p=!0;if(typeof c=="object"){if(c===null)throw new TypeError("Unexpected argument[1]: cannot be null.");if(c instanceof Tensor$1)throw new TypeError("'fetches' cannot be a Tensor");if(Array.isArray(c)){if(c.length===0)throw new TypeError("'fetches' cannot be an empty array.");p=!1;for(const A of c){if(typeof A!="string")throw new TypeError("'fetches' must be a string array or an object.");if(this.outputNames.indexOf(A)===-1)throw new RangeError(`'fetches' contains invalid output name: ${A}.`);h[A]=null}if(typeof d=="object"&&d!==null)m=d;else if(typeof d<"u")throw new TypeError("'options' must be an object.")}else{let A=!1;const y=Object.getOwnPropertyNames(c);for(const s of this.outputNames)if(y.indexOf(s)!==-1){const e=c[s];(e===null||e instanceof Tensor$1)&&(A=!0,p=!1,h[s]=e)}if(A){if(typeof d=="object"&&d!==null)m=d;else if(typeof d<"u")throw new TypeError("'options' must be an object.")}else m=c}}else if(typeof c<"u")throw new TypeError("Unexpected argument[1]: must be 'fetches' or 'options'.");for(const A of this.inputNames)if(typeof n[A]>"u")throw new Error(`input '${A}' is missing in 'feeds'.`);if(p)for(const A of this.outputNames)h[A]=null;const w=await this.handler.run(n,h,m),z={};for(const A in w)Object.hasOwnProperty.call(w,A)&&(z[A]=new Tensor$1(w[A].type,w[A].data,w[A].dims));return z}static async create(n,c,d,h){let m,p={};if(typeof n=="string"){if(m=n,typeof c=="object"&&c!==null)p=c;else if(typeof c<"u")throw new TypeError("'options' must be an object.")}else if(n instanceof Uint8Array){if(m=n,typeof c=="object"&&c!==null)p=c;else if(typeof c<"u")throw new TypeError("'options' must be an object.")}else if(n instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&n instanceof SharedArrayBuffer){const s=n;let e=0,f=n.byteLength;if(typeof c=="object"&&c!==null)p=c;else if(typeof c=="number"){if(e=c,!Number.isSafeInteger(e))throw new RangeError("'byteOffset' must be an integer.");if(e<0||e>=s.byteLength)throw new RangeError(`'byteOffset' is out of range [0, ${s.byteLength}).`);if(f=n.byteLength-e,typeof d=="number"){if(f=d,!Number.isSafeInteger(f))throw new RangeError("'byteLength' must be an integer.");if(f<=0||e+f>s.byteLength)throw new RangeError(`'byteLength' is out of range (0, ${s.byteLength-e}].`);if(typeof h=="object"&&h!==null)p=h;else if(typeof h<"u")throw new TypeError("'options' must be an object.")}else if(typeof d<"u")throw new TypeError("'byteLength' must be a number.")}else if(typeof c<"u")throw new TypeError("'options' must be an object.");m=new Uint8Array(s,e,f)}else throw new TypeError("Unexpected argument[0]: must be 'path' or 'buffer'.");const z=(p.executionProviders||[]).map(s=>typeof s=="string"?s:s.name),y=await(await resolveBackend(z)).createSessionHandler(m,p);return new Dc(y)}startProfiling(){this.handler.startProfiling()}endProfiling(){this.handler.endProfiling()}get inputNames(){return this.handler.inputNames}get outputNames(){return this.handler.outputNames}};const InferenceSession$1=InferenceSession$2,lib=Object.freeze(Object.defineProperty({__proto__:null,InferenceSession:InferenceSession$1,Tensor:Tensor$1,env:env$2,registerBackend},Symbol.toStringTag,{value:"Module"})),require$$0$1=getAugmentedNamespace(lib);var hasRequiredOrtWeb_min;function requireOrtWeb_min(){return hasRequiredOrtWeb_min||(hasRequiredOrtWeb_min=1,(function(module,exports$1){(function(o,n){module.exports=n(require$$0$1)})(self,(__WEBPACK_EXTERNAL_MODULE__1670__=>(()=>{var __webpack_modules__={3474:(o,n,c)=>{var d,h=(d=(d=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0)||"/index.js",function(m){function p(){return ye.buffer!=Ae&&ot(ye.buffer),Ie}function w(){return ye.buffer!=Ae&&ot(ye.buffer),qe}function z(){return ye.buffer!=Ae&&ot(ye.buffer),Ge}function A(){return ye.buffer!=Ae&&ot(ye.buffer),Je}function y(){return ye.buffer!=Ae&&ot(ye.buffer),Te}var s,e,f;m=m||{},s||(s=m!==void 0?m:{}),s.ready=new Promise((function(_e,Fe){e=_e,f=Fe}));var g,R,q,H,te,re,ae=Object.assign({},s),ne="./this.program",oe=(_e,Fe)=>{throw Fe},le=typeof window=="object",ce=typeof importScripts=="function",ue=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string",he=s.ENVIRONMENT_IS_PTHREAD||!1,ge="";function Oe(_e){return s.locateFile?s.locateFile(_e,ge):ge+_e}if(ue){let _e;ge=ce?c(908).dirname(ge)+"/":"//",re=()=>{te||(H=c(1384),te=c(908))},g=function(Fe,je){return re(),Fe=te.normalize(Fe),H.readFileSync(Fe,je?void 0:"utf8")},q=Fe=>((Fe=g(Fe,!0)).buffer||(Fe=new Uint8Array(Fe)),Fe),R=(Fe,je,it)=>{re(),Fe=te.normalize(Fe),H.readFile(Fe,(function(kt,$t){kt?it(kt):je($t.buffer)}))},1<process.argv.length&&(ne=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2),process.on("uncaughtException",(function(Fe){if(!(Fe instanceof Mt))throw Fe})),process.on("unhandledRejection",(function(Fe){throw Fe})),oe=(Fe,je)=>{if(Jt())throw process.exitCode=Fe,je;je instanceof Mt||we("exiting due to exception: "+je),process.exit(Fe)},s.inspect=function(){return"[Emscripten Module object]"};try{_e=c(9925)}catch(Fe){throw console.error('The "worker_threads" module is not supported in this node.js build - perhaps a newer version is needed?'),Fe}c.g.Worker=_e.Worker}else(le||ce)&&(ce?ge=self.location.href:typeof document<"u"&&document.currentScript&&(ge=document.currentScript.src),d&&(ge=d),ge=ge.indexOf("blob:")!==0?ge.substr(0,ge.replace(/[?#].*/,"").lastIndexOf("/")+1):"",ue||(g=_e=>{var Fe=new XMLHttpRequest;return Fe.open("GET",_e,!1),Fe.send(null),Fe.responseText},ce&&(q=_e=>{var Fe=new XMLHttpRequest;return Fe.open("GET",_e,!1),Fe.responseType="arraybuffer",Fe.send(null),new Uint8Array(Fe.response)}),R=(_e,Fe,je)=>{var it=new XMLHttpRequest;it.open("GET",_e,!0),it.responseType="arraybuffer",it.onload=()=>{it.status==200||it.status==0&&it.response?Fe(it.response):je()},it.onerror=je,it.send(null)}));ue&&typeof performance>"u"&&(c.g.performance=c(6953).performance);var $e=console.log.bind(console),Pe=console.warn.bind(console);ue&&(re(),$e=_e=>H.writeSync(1,_e+`
82`),Pe=_e=>H.writeSync(2,_e+`
83`));var Le,me=s.print||$e,we=s.printErr||Pe;Object.assign(s,ae),ae=null,s.thisProgram&&(ne=s.thisProgram),s.quit&&(oe=s.quit),s.wasmBinary&&(Le=s.wasmBinary);var Se=s.noExitRuntime||!1;typeof WebAssembly!="object"&&Xe("no native wasm support detected");var ye,ke,Ae,Ie,qe,Ge,Je,Te,ve=!1,et=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function mt(_e,Fe,je){var it=(Fe>>>=0)+je;for(je=Fe;_e[je]&&!(je>=it);)++je;if(16<je-Fe&&_e.buffer&&et)return et.decode(_e.buffer instanceof SharedArrayBuffer?_e.slice(Fe,je):_e.subarray(Fe,je));for(it="";Fe<je;){var kt=_e[Fe++];if(128&kt){var $t=63&_e[Fe++];if((224&kt)==192)it+=String.fromCharCode((31&kt)<<6|$t);else{var pn=63&_e[Fe++];65536>(kt=(240&kt)==224?(15&kt)<<12|$t<<6|pn:(7&kt)<<18|$t<<12|pn<<6|63&_e[Fe++])?it+=String.fromCharCode(kt):(kt-=65536,it+=String.fromCharCode(55296|kt>>10,56320|1023&kt))}}else it+=String.fromCharCode(kt)}return it}function ht(_e,Fe){return(_e>>>=0)?mt(w(),_e,Fe):""}function ct(_e,Fe,je,it){if(!(0<it))return 0;var kt=je>>>=0;it=je+it-1;for(var $t=0;$t<_e.length;++$t){var pn=_e.charCodeAt($t);if(55296<=pn&&57343>=pn&&(pn=65536+((1023&pn)<<10)|1023&_e.charCodeAt(++$t)),127>=pn){if(je>=it)break;Fe[je++>>>0]=pn}else{if(2047>=pn){if(je+1>=it)break;Fe[je++>>>0]=192|pn>>6}else{if(65535>=pn){if(je+2>=it)break;Fe[je++>>>0]=224|pn>>12}else{if(je+3>=it)break;Fe[je++>>>0]=240|pn>>18,Fe[je++>>>0]=128|pn>>12&63}Fe[je++>>>0]=128|pn>>6&63}Fe[je++>>>0]=128|63&pn}}return Fe[je>>>0]=0,je-kt}function Ue(_e){for(var Fe=0,je=0;je<_e.length;++je){var it=_e.charCodeAt(je);127>=it?Fe++:2047>=it?Fe+=2:55296<=it&&57343>=it?(Fe+=4,++je):Fe+=3}return Fe}function ot(_e){Ae=_e,s.HEAP8=Ie=new Int8Array(_e),s.HEAP16=new Int16Array(_e),s.HEAP32=Ge=new Int32Array(_e),s.HEAPU8=qe=new Uint8Array(_e),s.HEAPU16=new Uint16Array(_e),s.HEAPU32=Je=new Uint32Array(_e),s.HEAPF32=new Float32Array(_e),s.HEAPF64=Te=new Float64Array(_e)}he&&(Ae=s.buffer);var bt=s.INITIAL_MEMORY||16777216;if(he)ye=s.wasmMemory,Ae=s.buffer;else if(s.wasmMemory)ye=s.wasmMemory;else if(!((ye=new WebAssembly.Memory({initial:bt/65536,maximum:65536,shared:!0})).buffer instanceof SharedArrayBuffer))throw we("requested a shared WebAssembly.Memory but the returned buffer is not a SharedArrayBuffer, indicating that while the browser has SharedArrayBuffer it does not have WebAssembly threads support - you may 
83need to set a flag"),ue&&console.log("(on node you may need: --experimental-wasm-threads --experimental-wasm-bulk-memory and also use a recent version)"),Error("bad memory");ye&&(Ae=ye.buffer),bt=Ae.byteLength,ot(Ae);var At,ft=[],be=[],Et=[],St=[];function Jt(){return Se||!1}function Bt(){var _e=s.preRun.shift();ft.unshift(_e)}var Vt,Tt=0,Be=null;function Xe(_e){throw he?postMessage({cmd:"onAbort",arg:_e}):s.onAbort&&s.onAbort(_e),we(_e="Aborted("+_e+")"),ve=!0,_e=new WebAssembly.RuntimeError(_e+". Build with -sASSERTIONS for more info."),f(_e),_e}function Ke(){return Vt.startsWith("data:application/octet-stream;base64,")}function nt(){var _e=Vt;try{if(_e==Vt&&Le)return new Uint8Array(Le);if(q)return q(_e);throw"both async and sync fetching of the wasm failed"}catch(Fe){Xe(Fe)}}Vt="ort-wasm-threaded.wasm",Ke()||(Vt=Oe(Vt));var xt={};function Mt(_e){this.name="ExitStatus",this.message="Program terminated with exit("+_e+")",this.status=_e}function Ye(_e){(_e=gt.Vb[_e])||Xe(),gt.mc(_e)}function at(_e){var Fe=gt.Cc();if(!Fe)return 6;gt.ac.push(Fe),gt.Vb[_e.Ub]=Fe,Fe.Ub=_e.Ub;var je={cmd:"run",start_routine:_e.Ic,arg:_e.zc,pthread_ptr:_e.Ub};return Fe.$b=()=>{je.time=performance.now(),Fe.postMessage(je,_e.Nc)},Fe.loaded&&(Fe.$b(),delete Fe.$b),0}function st(_e){if(he)return fn(1,1,_e);Jt()||(gt.oc(),s.onExit&&s.onExit(_e),ve=!0),oe(_e,new Mt(_e))}function vt(_e,Fe){if(!Fe&&he)throw Gt(_e),"unwind";Jt()||he||(tn(),Ot(Et),Xt(0),lr[1].length&&ii(1,10),lr[2].length&&ii(2,10),gt.oc()),st(_e)}var gt={Yb:[],ac:[],qc:[],Vb:{},fc:function(){he&&gt.Ec()},Pc:function(){},Ec:function(){gt.receiveObjectTransfer=gt.Gc,gt.threadInitTLS=gt.pc,gt.setExitStatus=gt.nc,Se=!1},nc:function(){},oc:function(){for(var _e of Object.values(gt.Vb))gt.mc(_e);for(_e of gt.Yb)_e.terminate();gt.Yb=[]},mc:function(_e){var Fe=_e.Ub;delete gt.Vb[Fe],gt.Yb.push(_e),gt.ac.splice(gt.ac.indexOf(_e),1),_e.Ub=0,Fn(Fe)},Gc:function(){},pc:function(){gt.qc.forEach((_e=>_e()))},Fc:function(_e,Fe){_e.onmessage=je=>{var it=(je=je.data).cmd;if(_e.Ub&&(gt.Bc=_e.Ub),je.targetThread&&je.targetThread!=Lt()){var kt=gt.Vb[je.Qc];kt?kt.postMessage(je,je.transferList):we('Internal error! Worker sent a message "'+it+'" to target pthread '+je.targetThread+", but that thread no longer exists!")}else it==="processProxyingQueue"?_t(je.queue):it==="spawnThread"?at(je):it==="cleanupThread"?Ye(je.thread):it==="killThread"?(je=je.thread,it=gt.Vb[je],delete gt.Vb[je],it.terminate(),Fn(je),gt.ac.splice(gt.ac.indexOf(it),1),it.Ub=0):it==="cancelThread"?gt.Vb[je.thread].postMessage({cmd:"cancel"}):it==="loaded"?(_e.loaded=!0,Fe&&Fe(_e),_e.$b&&(_e.$b(),delete _e.$b)):it==="print"?me("Thread "+je.threadId+": "+je.text):it==="printErr"?we("Thread "+je.threadId+": "+je.text):it==="alert"?alert("Thread "+je.threadId+": "+je.text):je.target==="setimmediate"?_e.postMessage(je):it==="onAbort"?s.onAbort&&s.onAbort(je.arg):it&&we("worker sent an unknown command "+it);gt.Bc=void 0},_e.onerror=je=>{throw we("worker sent an error! "+je.filename+":"+je.lineno+": "+je.message),je},ue&&(_e.on("message",(function(je){_e.onmessage({data:je})})),_e.on("error",(function(je){_e.onerror(je)})),_e.on("detachedExit",(function(){}))),_e.postMessage({cmd:"load",urlOrBlob:s.mainScriptUrlOrBlob||d,wasmMemory:ye,wasmModule:ke})},yc:function(){var _e=Oe("ort-wasm-threaded.worker.js");gt.Yb.push(new Worker(_e))},Cc:function(){return gt.Yb.length==0&&(gt.yc(),gt.Fc(gt.Yb[0])),gt.Yb.pop()}};function Ot(_e){for(;0<_e.length;)_e.shift()(s)}function Dt(_e){var Fe=En();return _e=_e(),On(Fe),_e}function Gt(_e){if(he)return fn(2,0,_e);try{vt(_e)}catch(Fe){Fe instanceof Mt||Fe=="unwind"||oe(1,Fe)}}s.PThread=gt,s.establishStackSpace=function(){var _e=Lt(),Fe=z()[_e+44>>2>>>0];_e=z()[_e+48>>2>>>0],$n(Fe,Fe-_e),On(Fe)};var Ft=[];function Pt(_e){var Fe=Ft[_e];return Fe||(_e>=Ft.length&&(Ft.length=_e+1),Ft[_e]=Fe=At.get(_e)),Fe}s.invokeEntryPoint=function(_e,Fe){_e=Pt(_e)(Fe),Jt()?gt.nc(_e):zn(_e)};var qt,on,He=[],Ve=0,pt=0;function wt(_e){this.Zb=_e,this.Sb=_e-24,this.xc=function(Fe){A()[this.Sb+4>>2>>>0]=Fe},this.bc=function(){return A()[this.Sb+4>>2>>>0]},this.wc=function(Fe){A()[this.Sb+8>>2>>>0]=Fe},this.Dc=function(){return A()[this.Sb+8>>2>>>0]},this.rc=function(){z()[this.Sb>>2>>>0]=0},this.hc=function(Fe){Fe=Fe?1:0,p()[this.Sb+12>>0>>>0]=Fe},this.uc=function(){return p()[this.Sb+12>>0>>>0]!=0},this.ic=function(Fe){Fe=Fe?1:0,p()[this.Sb+13>>0>>>0]=Fe},this.kc=function(){return p()[this.Sb+13>>0>>>0]!=0},this.fc=function(Fe,je){this.cc(0),this.xc(Fe),this.wc(je),this.rc(),this.hc(!1),this.ic(!1)},this.sc=function(){Atomics.add(z(),this.Sb>>2,1)},this.Hc=function(){return Atomics.sub(z(),this.Sb>>2,1)===1},this.cc=function(Fe){A()[this.Sb+16>>2>>>0]=Fe},this.tc=function(){return A()[this.Sb+16>>2>>>0]},this.vc=function(){if(Kr(this.bc()))return A()[this.Zb>>2>>>0];var Fe=this.tc();return Fe!==0?Fe:this.Zb}}function nn(_e){return Ut(new wt(_e).Sb)}
vendor: 12,145 bytes, lines 83-84
83function Wt(_e,Fe,je,it){return he?fn(3,1,_e,Fe,je,it):ln(_e,Fe,je,it)}function ln(_e,Fe,je,it){if(typeof SharedArrayBuffer>"u")return we("Current environment does not support SharedArrayBuffer, pthreads are not available!"),6;var kt=[];return he&&kt.length===0?Wt(_e,Fe,je,it):(_e={Ic:je,Ub:_e,zc:it,Nc:kt},he?(_e.Oc="spawnThread",postMessage(_e,kt),0):at(_e))}function _n(_e,Fe,je){return he?fn(4,1,_e,Fe,je):0}function xn(_e,Fe){if(he)return fn(5,1,_e,Fe)}function rn(_e,Fe){if(he)return fn(6,1,_e,Fe)}function vn(_e,Fe,je){if(he)return fn(7,1,_e,Fe,je)}function Yn(_e,Fe,je){return he?fn(8,1,_e,Fe,je):0}function Nn(_e,Fe){if(he)return fn(9,1,_e,Fe)}function gn(_e,Fe,je){if(he)return fn(10,1,_e,Fe,je)}function pr(_e,Fe,je,it){if(he)return fn(11,1,_e,Fe,je,it)}function Ln(_e,Fe,je,it){if(he)return fn(12,1,_e,Fe,je,it)}function Xn(_e,Fe,je,it){if(he)return fn(13,1,_e,Fe,je,it)}function Tr(_e){if(he)return fn(14,1,_e)}function De(_e,Fe){if(he)return fn(15,1,_e,Fe)}function Ze(_e,Fe,je){if(he)return fn(16,1,_e,Fe,je)}function _t(_e){Atomics.store(z(),_e>>2,1),Lt()&&Pn(_e),Atomics.compareExchange(z(),_e>>2,1,0)}function dt(_e){return A()[_e>>>2]+4294967296*z()[_e+4>>>2]}function lt(_e,Fe,je,it,kt,$t){return he?fn(17,1,_e,Fe,je,it,kt,$t):-52}function Ct(_e,Fe,je,it,kt,$t){if(he)return fn(18,1,_e,Fe,je,it,kt,$t)}function en(_e){var Fe=Ue(_e)+1,je=Nt(Fe);return je&&ct(_e,p(),je,Fe),je}function mn(_e,Fe,je){function it(Jn){return(Jn=Jn.toTimeString().match(/\(([A-Za-z ]+)\)$/))?Jn[1]:"GMT"}if(he)return fn(19,1,_e,Fe,je);var kt=new Date().getFullYear(),$t=new Date(kt,0,1),pn=new Date(kt,6,1);kt=$t.getTimezoneOffset();var Cn=pn.getTimezoneOffset(),Kn=Math.max(kt,Cn);z()[_e>>2>>>0]=60*Kn,z()[Fe>>2>>>0]=+(kt!=Cn),_e=it($t),Fe=it(pn),_e=en(_e),Fe=en(Fe),Cn<kt?(A()[je>>2>>>0]=_e,A()[je+4>>2>>>0]=Fe):(A()[je>>2>>>0]=Fe,A()[je+4>>2>>>0]=_e)}function fn(_e,Fe){var je=arguments.length-2,it=arguments;return Dt((()=>{for(var kt=xr(8*je),$t=kt>>3,pn=0;pn<je;pn++){var Cn=it[2+pn];y()[$t+pn>>>0]=Cn}return yn(_e,je,kt,Fe)}))}s.executeNotifiedProxyingQueue=_t,on=ue?()=>{var _e=process.hrtime();return 1e3*_e[0]+_e[1]/1e6}:he?()=>performance.now()-s.__performance_now_clock_drift:()=>performance.now();var In,Mn=[],nr={};function sr(){if(!In){var _e,Fe={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:ne||"./this.program"};for(_e in nr)nr[_e]===void 0?delete Fe[_e]:Fe[_e]=nr[_e];var je=[];for(_e in Fe)je.push(_e+"="+Fe[_e]);In=je}return In}function Rt(_e,Fe){if(he)return fn(20,1,_e,Fe);var je=0;return sr().forEach((function(it,kt){var $t=Fe+je;for(kt=A()[_e+4*kt>>2>>>0]=$t,$t=0;$t<it.length;++$t)p()[kt++>>0>>>0]=it.charCodeAt($t);p()[kt>>0>>>0]=0,je+=it.length+1})),0}function bn(_e,Fe){if(he)return fn(21,1,_e,Fe);var je=sr();A()[_e>>2>>>0]=je.length;var it=0;return je.forEach((function(kt){it+=kt.length+1})),A()[Fe>>2>>>0]=it,0}function Rn(_e){return he?fn(22,1,_e):52}function ir(_e,Fe,je,it){return he?fn(23,1,_e,Fe,je,it):52}function Hn(_e,Fe,je,it,kt){return he?fn(24,1,_e,Fe,je,it,kt):70}var lr=[null,[],[]];function ii(_e,Fe){var je=lr[_e];Fe===0||Fe===10?((_e===1?me:we)(mt(je,0)),je.length=0):je.push(Fe)}function di(_e,Fe,je,it){if(he)return fn(25,1,_e,Fe,je,it);for(var kt=0,$t=0;$t<je;$t++){var pn=A()[Fe>>2>>>0],Cn=A()[Fe+4>>2>>>0];Fe+=8;for(var Kn=0;Kn<Cn;Kn++)ii(_e,w()[pn+Kn>>>0]);kt+=Cn}return A()[it>>2>>>0]=kt,0}var Bn=0;function Ce(_e){return _e%4==0&&(_e%100!=0||_e%400==0)}var Re=[31,29,31,30,31,30,31,31,30,31,30,31],Me=[31,28,31,30,31,30,31,31,30,31,30,31];function rt(_e,Fe,je,it){function kt(Yt,An,dr){for(Yt=typeof Yt=="number"?Yt.toString():Yt||"";Yt.length<An;)Yt=dr[0]+Yt;return Yt}function $t(Yt,An){return kt(Yt,An,"0")}function pn(Yt,An){function dr(fi){return 0>fi?-1:0<fi?1:0}var Ir;return(Ir=dr(Yt.getFullYear()-An.getFullYear()))===0&&(Ir=dr(Yt.getMonth()-An.getMonth()))===0&&(Ir=dr(Yt.getDate()-An.getDate())),Ir}function Cn(Yt){switch(Yt.getDay()){case 0:return new Date(Yt.getFullYear()-1,11,29);case 1:return Yt;case 2:return new Date(Yt.getFullYear(),0,3);case 3:return new Date(Yt.getFullYear(),0,2);case 4:return new Date(Yt.getFullYear(),0,1);case 5:return new Date(Yt.getFullYear()-1,11,31);case 6:return new Date(Yt.getFullYear()-1,11,30)}}function Kn(Yt){var An=Yt.Wb;for(Yt=new Date(new Date(Yt.Xb+1900,0,1).getTime());0<An;){var dr=Yt.getMonth(),Ir=(Ce(Yt.getFullYear())?Re:Me)[dr];if(!(An>Ir-Yt.getDate())){Yt.setDate(Yt.getDate()+An);break}An-=Ir-Yt.getDate()+1,Yt.setDate(1),11>dr?Yt.setMonth(dr+1):(Yt.setMonth(0),Yt.setFullYear(Yt.getFullYear()+1))}return dr=new Date(Yt.getFullYear()+1,0,4),An=Cn(new Date(Yt.getFullYear(),0,4)),dr=Cn(dr),0>=pn(An,Yt)?0>=pn(dr,Yt)?Yt.getFullYear()+1:Yt.getFullYear():Yt.getFullYear()-1}var Jn=z()[it+40>>2>>>0];for(var wr in it={Lc:z()[it>>2>>>0],Kc:z()[it+4>>2>>>0],dc:z()[it+8>>2>>>0],jc:z()[it+12>>2>>>0],ec:z()[it+16>>2>>>0],Xb:z()[it+20>>2>>>0],Tb:z()[it+24>>2>>>0],Wb:z()[it+28>>2>>>0],Rc:z()[it+32>>2>>>0],Jc:z()[it+36>>2>>>0],Mc:Jn?ht(Jn):""},je=ht(je),Jn={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"})je=je.replace(new RegExp(wr,"g"),Jn[wr]);var Hr="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),qn="January February March April May June July August September October November December".split(" ");for(wr in Jn={"%a":function(Yt){return Hr[Yt.Tb].substring(0,3)},"%A":function(Yt){return Hr[Yt.Tb]},"%b":function(Yt){return qn[Yt.ec].substring(0,3)},"%B":function(Yt){return qn[Yt.ec]},"%C":function(Yt){return $t((Yt.Xb+1900)/100|0,2)},"%d":function(Yt){return $t(Yt.jc,2)},"%e":function(Yt){return kt(Yt.jc,2," ")},"%g":function(Yt){return Kn(Yt).toString().substring(2)},"%G":function(Yt){return Kn(Yt)},"%H":function(Yt){return $t(Yt.dc,2)},"%I":function(Yt){return(Yt=Yt.dc)==0?Yt=12:12<Yt&&(Yt-=12),$t(Yt,2)},"%j":function(Yt){for(var An=0,dr=0;dr<=Yt.ec-1;An+=(Ce(Yt.Xb+1900)?Re:Me)[dr++]);return $t(Yt.jc+An,3)},"%m":function(Yt){return $t(Yt.ec+1,2)},"%M":function(Yt){return $t(Yt.Kc,2)},"%n":function(){return`
84`},"%p":function(Yt){return 0<=Yt.dc&&12>Yt.dc?"AM":"PM"},"%S":function(Yt){return $t(Yt.Lc,2)},"%t":function(){return"	"},"%u":function(Yt){return Yt.Tb||7},"%U":function(Yt){return $t(Math.floor((Yt.Wb+7-Yt.Tb)/7),2)},"%V":function(Yt){var An=Math.floor((Yt.Wb+7-(Yt.Tb+6)%7)/7);if(2>=(Yt.Tb+371-Yt.Wb-2)%7&&An++,An)An==53&&((dr=(Yt.Tb+371-Yt.Wb)%7)==4||dr==3&&Ce(Yt.Xb)||(An=1));else{An=52;var dr=(Yt.Tb+7-Yt.Wb-1)%7;(dr==4||dr==5&&Ce(Yt.Xb%400-1))&&An++}return $t(An,2)},"%w":function(Yt){return Yt.Tb},"%W":function(Yt){return $t(Math.floor((Yt.Wb+7-(Yt.Tb+6)%7)/7),2)},"%y":function(Yt){return(Yt.Xb+1900).toString().substring(2)},"%Y":function(Yt){return Yt.Xb+1900},"%z":function(Yt){var An=0<=(Yt=Yt.Jc);return Yt=Math.abs(Yt)/60,(An?"+":"-")+("0000"+(Yt/60*100+Yt%60)).slice(-4)},"%Z":function(Yt){return Yt.Mc},"%%":function(){return"%"}},je=je.replace(/%%/g,"\0\0"),Jn)je.includes(wr)&&(je=je.replace(new RegExp(wr,"g"),Jn[wr](it)));return wr=(function(Yt){var An=Array(Ue(Yt)+1);return ct(Yt,An,0,An.length),An})(je=je.replace(/\0\0/g,"%")),wr.length>Fe?0:((function(Yt,An){p().set(Yt,An>>>0)})(wr,_e),wr.length-1)}gt.fc();var ut=[null,st,Gt,Wt,_n,xn,rn,vn,Yn,Nn,gn,pr,Ln,Xn,Tr,De,Ze,lt,Ct,mn,Rt,bn,Rn,ir,Hn,di],We={b:function(_e){return Nt(_e+24)+24},n:function(_e){return(_e=new wt(_e)).uc()||(_e.hc(!0),Ve--),_e.ic(!1),He.push(_e),_e.sc(),_e.vc()},ma:function(_e){throw we("Unexpected exception thrown, this is not properly supported - aborting"),ve=!0,_e},x:function(){cn(0);var _e=He.pop();if(_e.Hc()&&!_e.kc()){var Fe=_e.Dc();Fe&&Pt(Fe)(_e.Zb),nn(_e.Zb)}pt=0},e:function(){var _e=pt;if(!_e)return Bn=0;var Fe=new wt(_e);Fe.cc(_e);var je=Fe.bc();if(!je)return Bn=0,_e;for(var it=Array.prototype.slice.call(arguments),kt=0;kt<it.length;kt++){var $t=it[kt];if($t===0||$t===je)break;if(Vr($t,je,Fe.Sb+16))return Bn=$t,_e}return Bn=je,_e},l:function(){var _e=pt;if(!_e)return Bn=0;var Fe=new wt(_e);Fe.cc(_e);var je=Fe.bc();if(!je)return Bn=0,_e;for(var it=Array.prototype.slice.call(arguments),kt=0;kt<it.length;kt++){var $t=it[kt];if($t===0||$t===je)break;if(Vr($t,je,Fe.Sb+16))return Bn=$t,_e}return Bn=je,_e},h:function(){var _e=pt;if(!_e)return Bn=0;var Fe=new wt(_e);Fe.cc(_e);var je=Fe.bc();if(!je)return Bn=0,_e;for(var it=Array.prototype.slice.call(arguments),kt=0;kt<it.length;kt++){var $t=it[kt];if($t===0||$t===je)break;if(Vr($t,je,Fe.Sb+16))return Bn=$t,_e}return Bn=je,_e},t:nn,M:function(){var _e=He.pop();_e||Xe("no exception to throw");var Fe=_e.Zb;throw _e.kc()||(He.push(_e),_e.ic(!0),_e.hc(!1),Ve++),pt=Fe,Fe},c:function(_e,Fe,je){throw new wt(_e).fc(Fe,je),pt=_e,Ve++,_e},pa:function(){return Ve},Fa:function(_e){hn(_e,!ce,1,!le),gt.pc()},T:function(_e){he?postMessage({cmd:"cleanupThread",thread:_e}):Ye(_e)},xa:ln,j:function(_e){throw pt||(pt=_e),_e},H:_n,Ma:xn,ua:rn,wa:vn,oa:Yn,Ka:Nn,Ca:gn,Ja:pr,V:Ln,va:Xn,sa:Tr,La:De,ta:Ze,Ta:function(){},X:function(){Xe("To use dlopen, you need enable dynamic linking, see https://github.com/emscripten-core/emscripten/wiki/Linking")},Ua:function(){Xe("To use dlopen, you need enable dynamic linking, see https://github.com/emscripten-core/emscripten/wiki/Linking")},W:function(){return Date.now()},ya:function(){return 2097152},Oa:function(){return!0},za:function(_e,Fe,je,it){if(_e==Fe)setTimeout((()=>_t(it)));else if(he)postMessage({targetThread:_e,cmd:"processProxyingQueue",queue:it});else{if(!(_e=gt.Vb[_e]))return;_e.postMessage({cmd:"processProxyingQueue",queue:it})}return 1},Ea:function(){return-1},Pa:function(_e,Fe){_e=new Date(1e3*dt(_e)),z()[Fe>>2>>>0]=_e.getUTCSeconds(),z()[Fe+4>>2>>>0]=_e.getUTCMinutes(),z()[Fe+8>>2>>>0]=_e.getUTCHours(),z()[Fe+12>>2>>>0]=_e.getUTCDate(),z()[Fe+16>>2>>>0]=_e.getUTCMonth(),z()[Fe+20>>2>>>0]=_e.getUTCFullYear()-1900,z()[Fe+24>>2>>>0]=_e.getUTCDay(),_e=(_e.getTime()-Date.UTC(_e.getUTCFullYear(),0,1,0,0,0,0))/864e5|0,z()[Fe+28>>2>>>0]=_e},Qa:function(_e,Fe){_e=new Date(1e3*dt(_e)),z()[Fe>>2>>>0]=_e.getSeconds(),z()[Fe+4>>2>>>0]=_e.getMinutes(),z()[Fe+8>>2>>>0]=_e.getHours(),z()[Fe+12>>2>>>0]=_e.getDate(),z()[Fe+16>>2>>>0]=_e.getMonth(),z()[Fe+20>>2>>>0]=_e.getFullYear()-1900,z()[Fe+24>>2>>>0]=_e.getDay();var je=new Date(_e.getFullYear(),0,1),it=(_e.getTime()-je.getTime())/864e5|0;z()[Fe+28>>2>>>0]=it,z()[Fe+36>>2>>>0]=-60*_e.getTimezoneOffset(),it=new Date(_e.getFullYear(),6,1).getTimezoneOffset(),_e=0|(it!=(je=je.getTimezoneOffset())&&_e.getTimezoneOffset()==Math.min(je,it)),z()[Fe+32>>2>>>0]=_e},Ra:function(_e){var Fe=new Date(z()[_e+20>>2>>>0]+1900,z()[_e+16>>2>>>0],z()[_e+12>>2>>>0],z()[_e+8>>2>>>0],z()[_e+4>>2>>>0],z()[_e>>2>>>0],0),je=z()[_e+32>>2>>>0],it=Fe.getTimezoneOffset(),kt=new Date(Fe.getFullYear(),0,1),$t=new Date(Fe.getFullYear(),6,1).getTimezoneOffset(),pn=kt.getTimezoneOffset(),Cn=Math.min(pn,$t);return 0>je?z()[_e+32>>2>>>0]=+($t!=pn&&Cn==it):0<je!=(Cn==it)&&($t=Math.max(pn,$t),Fe.setTime(Fe.getTime()+6e4*((0<je?Cn:$t)-it))),z()[_e+24>>2>>>0]=Fe.getDay(),je=(Fe.getTime()-kt.getTime())/864e5|0,z()[_e+28>>2>>>0]=je,z()[_e>>2>>>0]=Fe.getSeconds(),z()[_e+4>>2>>>0]=Fe.getMinutes(),z()[_e+8>>2>>>0]=Fe.getHours(),z()[_e+12>>2>>>0]=Fe.getDate(),z()[_e+16>>2>>>0]=Fe.getMonth(),Fe.getTime()/1e3|0},Aa:lt,Ba:Ct,Sa:function _e(Fe,je,it){_e.Ac||(_e.Ac=!0,mn(Fe,je,it))},y:function(){Xe("")},U:function(){if(!ue&&!ce){var _e="Blocking on the main thread is very dangerous, see https://emscripten.org/docs/porting/pthreads.html#blocking-on-the-main-browser-thread";qt||(qt={}),qt[_e]||(qt[_e]=1,ue&&(_e="warning: "+_e),we(_e))}},ra:function(){return 4294901760},B:on,Ia:function(_e,Fe,je){w().copyWithin(_e>>>0,Fe>>>0,Fe+je>>>0)},F:function(){return ue?c(3993).cpus().length:navigator.hardwareConcurrency},Da:function(_e,Fe,je){Mn.length=Fe,je>>=3;for(var it=0;
84it<Fe;it++)Mn[it]=y()[je+it>>>0];return(0>_e?xt[-_e-1]:ut[_e]).apply(null,Mn)},qa:function(_e){var Fe=w().length;if((_e>>>=0)<=Fe||4294901760<_e)return!1;for(var je=1;4>=je;je*=2){var it=Fe*(1+.2/je);it=Math.min(it,_e+100663296);var kt=Math;it=Math.max(_e,it),kt=kt.min.call(kt,4294901760,it+(65536-it%65536)%65536);e:{try{ye.grow(kt-Ae.byteLength+65535>>>16),ot(ye.buffer);var $t=1;break e}catch{}$t=void 0}if($t)return!0}return!1},Na:function(){throw"unwind"},Ga:Rt,Ha:bn,J:vt,I:Rn,S:ir,ga:Hn,R:di,d:function(){return Bn},na:function _e(Fe,je){_e.lc||(_e.lc=(function(){if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function"){var kt=new Uint8Array(1);return()=>(crypto.getRandomValues(kt),kt[0])}if(ue)try{var $t=c(Object((function(){var pn=new Error("Cannot find module 'crypto'");throw pn.code="MODULE_NOT_FOUND",pn})()));return()=>$t.randomBytes(1)[0]}catch{}return()=>Xe("randomDevice")})());for(var it=0;it<je;it++)p()[Fe+it>>0>>>0]=_e.lc();return 0},ia:function(_e,Fe,je){var it=En();try{return Pt(_e)(Fe,je)}catch(kt){if(On(it),kt!==kt+0)throw kt;cn(1,0)}},ja:function(_e,Fe,je){var it=En();try{return Pt(_e)(Fe,je)}catch(kt){if(On(it),kt!==kt+0)throw kt;cn(1,0)}},K:function(_e){var Fe=En();try{return Pt(_e)()}catch(je){if(On(Fe),je!==je+0)throw je;cn(1,0)}},f:function(_e,Fe){var je=En();try{return Pt(_e)(Fe)}catch(it){if(On(je),it!==it+0)throw it;cn(1,0)}},P:function(_e,Fe,je){var it=En();try{return Pt(_e)(Fe,je)}catch(kt){if(On(it),kt!==kt+0)throw kt;cn(1,0)}},Q:function(_e,Fe,je){var it=En();try{return Pt(_e)(Fe,je)}catch(kt){if(On(it),kt!==kt+0)throw kt;cn(1,0)}},k:function(_e,Fe,je){var it=En();try{return Pt(_e)(Fe,je)}catch(kt){if(On(it),kt!==kt+0)throw kt;cn(1,0)}},p:function(_e,Fe,je,it){var kt=En();try{return Pt(_e)(Fe,je,it)}catch($t){if(On(kt),$t!==$t+0)throw $t;cn(1,0)}},q:function(_e,Fe,je,it,kt){var $t=En();try{return Pt(_e)(Fe,je,it,kt)}catch(pn){if(On($t),pn!==pn+0)throw pn;cn(1,0)}},N:function(_e,Fe,je,it,kt,$t){var pn=En();try{return Pt(_e)(Fe,je,it,kt,$t)}catch(Cn){if(On(pn),Cn!==Cn+0)throw Cn;cn(1,0)}},s:function(_e,Fe,je,it,kt,$t){var pn=En();try{return Pt(_e)(Fe,je,it,kt,$t)}catch(Cn){if(On(pn),Cn!==Cn+0)throw Cn;cn(1,0)}},w:function(_e,Fe,je,it,kt,$t,pn){var Cn=En();try{return Pt(_e)(Fe,je,it,kt,$t,pn)}catch(Kn){if(On(Cn),Kn!==Kn+0)throw Kn;cn(1,0)}},L:function(_e,Fe,je,it,kt,$t,pn,Cn){var Kn=En();try{return Pt(_e)(Fe,je,it,kt,$t,pn,Cn)}catch(Jn){if(On(Kn),Jn!==Jn+0)throw Jn;cn(1,0)}},E:function(_e,Fe,je,it,kt,$t,pn,Cn,Kn,Jn,wr,Hr){var qn=En();try{return Pt(_e)(Fe,je,it,kt,$t,pn,Cn,Kn,Jn,wr,Hr)}catch(Yt){if(On(qn),Yt!==Yt+0)throw Yt;cn(1,0)}},aa:function(_e,Fe,je,it,kt,$t,pn,Cn){var Kn=En();try{return Or(_e,Fe,je,it,kt,$t,pn,Cn)}catch(Jn){if(On(Kn),Jn!==Jn+0)throw Jn;cn(1,0)}},_:function(_e,Fe,je,it,kt,$t,pn){var Cn=En();try{return kr(_e,Fe,je,it,kt,$t,pn)}catch(Kn){if(On(Cn),Kn!==Kn+0)throw Kn;cn(1,0)}},Z:function(_e,Fe,je,it,kt){var $t=En();try{return Rr(_e,Fe,je,it,kt)}catch(pn){if(On($t),pn!==pn+0)throw pn;cn(1,0)}},ca:function(_e,Fe,je,it){var kt=En();try{return cr(_e,Fe,je,it)}catch($t){if(On(kt),$t!==$t+0)throw $t;cn(1,0)}},$:function(_e){var Fe=En();try{return Mr(_e)}catch(je){if(On(Fe),je!==je+0)throw je;cn(1,0)}},ba:function(_e,Fe){var je=En();try{return Pi(_e,Fe)}catch(it){if(On(je),it!==it+0)throw it;cn(1,0)}},Y:function(_e,Fe,je){var it=En();try{return Fr(_e,Fe,je)}catch(kt){if(On(it),kt!==kt+0)throw kt;cn(1,0)}},g:function(_e){var Fe=En();try{Pt(_e)()}catch(je){if(On(Fe),je!==je+0)throw je;cn(1,0)}},r:function(_e,Fe){var je=En();try{Pt(_e)(Fe)}catch(it){if(On(je),it!==it+0)throw it;cn(1,0)}},i:function(_e,Fe,je){var it=En();try{Pt(_e)(Fe,je)}catch(kt){if(On(it),kt!==kt+0)throw kt;cn(1,0)}},ha:function(_e,Fe,je,it){var kt=En();try{Pt(_e)(Fe,je,it)}catch($t){if(On(kt),$t!==$t+0)throw $t;cn(1,0)}},m:function(_e,Fe,je,it){var kt=En();try{Pt(_e)(Fe,je,it)}catch($t){if(On(kt),$t!==$t+0)throw $t;cn(1,0)}},v:function(_e,Fe,je,it,kt){var $t=En();try{Pt(_e)(Fe,je,it,kt)}catch(pn){if(On($t),pn!==pn+0)throw pn;cn(1,0)}},u:function(_e,Fe,je,it,kt,$t){var pn=En();try{Pt(_e)(Fe,je,it,kt,$t)}catch(Cn){if(On(pn),Cn!==Cn+0)throw Cn;cn(1,0)}},O:function(_e,Fe,je,it,kt,$t,pn){var Cn=En();try{Pt(_e)(Fe,je,it,kt,$t,pn)}catch(Kn){if(On(Cn),Kn!==Kn+0)throw Kn;cn(1,0)}},A:function(_e,Fe,je,it,kt,$t,pn,Cn){var Kn=En();try{Pt(_e)(Fe,je,it,kt,$t,pn,Cn)}catch(Jn){if(On(Kn),Jn!==Jn+0)throw Jn;cn(1,0)}},ka:function(_e,Fe,je,it,kt,$t,pn,Cn,Kn){var Jn=En();try{Pt(_e)(Fe,je,it,kt,$t,pn,Cn,Kn)}catch(wr){if(On(Jn),wr!==wr+0)throw wr;cn(1,0)}},C:function(_e,Fe,je,it,kt,$t,pn,Cn,Kn,Jn,wr){var Hr=En();try{Pt(_e)(Fe,je,it,kt,$t,pn,Cn,Kn,Jn,wr)}catch(qn){if(On(Hr),qn!==qn+0)throw qn;cn(1,0)}},D:function(_e,Fe,je,it,kt,$t,pn,Cn,Kn,Jn,wr,Hr,qn,Yt,An,dr){var Ir=En();try{Pt(_e)(Fe,je,it,kt,$t,pn,Cn,Kn,Jn,wr,Hr,qn,Yt,An,dr)}catch(fi){if(On(Ir),fi!==fi+0)throw fi;cn(1,0)}},fa:function(_e,Fe,je,it,kt,$t,pn,Cn){var Kn=En();try{wi(_e,Fe,je,it,kt,$t,pn,Cn)}catch(Jn){if(On(Kn),Jn!==Jn+0)throw Jn;cn(1,0)}},da:function(_e,Fe,je,it,kt,$t,pn,Cn,Kn,Jn,wr,Hr){var qn=En();try{jr(_e,Fe,je,it,kt,$t,pn,Cn,Kn,Jn,wr,Hr)}catch(Yt){if(On(qn),Yt!==Yt+0)throw Yt;cn(1,0)}},ea:function(_e,Fe,je,it,kt,$t){var pn=En();try{Gn(_e,Fe,je,it,kt,$t)}catch(Cn){if(On(pn),Cn!==Cn+0)throw Cn;cn(1,0)}},o:function(_e){return _e},a:ye||s.wasmMemory,G:function(_e){Bn=_e},la:rt,z:function(_e,Fe,je,it){return rt(_e,Fe,je,it)}};(function(){function _e(kt,$t){s.asm=kt.exports,gt.qc.push(s.asm.sb),At=s.asm.ub,be.unshift(s.asm.Va),ke=$t,he||(Tt--,s.monitorRunDependencies&&s.monitorRunDependencies(Tt),Tt==0&&Be&&(kt=Be,Be=null,kt()))}function Fe(kt){_e(kt.instance,kt.module)}function je(kt){return(function(){if(!Le&&(le||ce)){if(typeof fetch=="function"&&!Vt.startsWith("file://"))return fetch(Vt,{credentials:"same-origin"}).then((function($t){if(!$t.ok)throw"failed to load wasm binary file at '"+Vt+"'";return $t.arrayBuffer()})).catch((function(){return nt()}
vendor: 32,369 bytes, lines 84-85
84));if(R)return new Promise((function($t,pn){R(Vt,(function(Cn){$t(new Uint8Array(Cn))}),pn)}))}return Promise.resolve().then((function(){return nt()}))})().then((function($t){return WebAssembly.instantiate($t,it)})).then((function($t){return $t})).then(kt,(function($t){we("failed to asynchronously prepare wasm: "+$t),Xe($t)}))}var it={a:We};if(he||(Tt++,s.monitorRunDependencies&&s.monitorRunDependencies(Tt)),s.instantiateWasm)try{return s.instantiateWasm(it,_e)}catch(kt){return we("Module.instantiateWasm callback failed with error: "+kt),!1}(Le||typeof WebAssembly.instantiateStreaming!="function"||Ke()||Vt.startsWith("file://")||ue||typeof fetch!="function"?je(Fe):fetch(Vt,{credentials:"same-origin"}).then((function(kt){return WebAssembly.instantiateStreaming(kt,it).then(Fe,(function($t){return we("wasm streaming compile failed: "+$t),we("falling back to ArrayBuffer instantiation"),je(Fe)}))}))).catch(f)})(),s.___wasm_call_ctors=function(){return(s.___wasm_call_ctors=s.asm.Va).apply(null,arguments)},s._OrtInit=function(){return(s._OrtInit=s.asm.Wa).apply(null,arguments)},s._OrtCreateSessionOptions=function(){return(s._OrtCreateSessionOptions=s.asm.Xa).apply(null,arguments)},s._OrtAppendExecutionProvider=function(){return(s._OrtAppendExecutionProvider=s.asm.Ya).apply(null,arguments)},s._OrtAddSessionConfigEntry=function(){return(s._OrtAddSessionConfigEntry=s.asm.Za).apply(null,arguments)},s._OrtReleaseSessionOptions=function(){return(s._OrtReleaseSessionOptions=s.asm._a).apply(null,arguments)},s._OrtCreateSession=function(){return(s._OrtCreateSession=s.asm.$a).apply(null,arguments)},s._OrtReleaseSession=function(){return(s._OrtReleaseSession=s.asm.ab).apply(null,arguments)},s._OrtGetInputCount=function(){return(s._OrtGetInputCount=s.asm.bb).apply(null,arguments)},s._OrtGetOutputCount=function(){return(s._OrtGetOutputCount=s.asm.cb).apply(null,arguments)},s._OrtGetInputName=function(){return(s._OrtGetInputName=s.asm.db).apply(null,arguments)},s._OrtGetOutputName=function(){return(s._OrtGetOutputName=s.asm.eb).apply(null,arguments)},s._OrtFree=function(){return(s._OrtFree=s.asm.fb).apply(null,arguments)},s._OrtCreateTensor=function(){return(s._OrtCreateTensor=s.asm.gb).apply(null,arguments)},s._OrtGetTensorData=function(){return(s._OrtGetTensorData=s.asm.hb).apply(null,arguments)},s._OrtReleaseTensor=function(){return(s._OrtReleaseTensor=s.asm.ib).apply(null,arguments)},s._OrtCreateRunOptions=function(){return(s._OrtCreateRunOptions=s.asm.jb).apply(null,arguments)},s._OrtAddRunConfigEntry=function(){return(s._OrtAddRunConfigEntry=s.asm.kb).apply(null,arguments)},s._OrtReleaseRunOptions=function(){return(s._OrtReleaseRunOptions=s.asm.lb).apply(null,arguments)},s._OrtRun=function(){return(s._OrtRun=s.asm.mb).apply(null,arguments)},s._OrtEndProfiling=function(){return(s._OrtEndProfiling=s.asm.nb).apply(null,arguments)};var Lt=s._pthread_self=function(){return(Lt=s._pthread_self=s.asm.ob).apply(null,arguments)},Nt=s._malloc=function(){return(Nt=s._malloc=s.asm.pb).apply(null,arguments)},Ut=s._free=function(){return(Ut=s._free=s.asm.qb).apply(null,arguments)},Xt=s._fflush=function(){return(Xt=s._fflush=s.asm.rb).apply(null,arguments)};s.__emscripten_tls_init=function(){return(s.__emscripten_tls_init=s.asm.sb).apply(null,arguments)};var tn=s.___funcs_on_exit=function(){return(tn=s.___funcs_on_exit=s.asm.tb).apply(null,arguments)},hn=s.__emscripten_thread_init=function(){return(hn=s.__emscripten_thread_init=s.asm.vb).apply(null,arguments)};s.__emscripten_thread_crashed=function(){return(s.__emscripten_thread_crashed=s.asm.wb).apply(null,arguments)};var wn,yn=s._emscripten_run_in_main_runtime_thread_js=function(){return(yn=s._emscripten_run_in_main_runtime_thread_js=s.asm.xb).apply(null,arguments)},Pn=s.__emscripten_proxy_execute_task_queue=function(){return(Pn=s.__emscripten_proxy_execute_task_queue=s.asm.yb).apply(null,arguments)},Fn=s.__emscripten_thread_free_data=function(){return(Fn=s.__emscripten_thread_free_data=s.asm.zb).apply(null,arguments)},zn=s.__emscripten_thread_exit=function(){return(zn=s.__emscripten_thread_exit=s.asm.Ab).apply(null,arguments)},cn=s._setThrew=function(){return(cn=s._setThrew=s.asm.Bb).apply(null,arguments)},$n=s._emscripten_stack_set_limits=function(){return($n=s._emscripten_stack_set_limits=s.asm.Cb).apply(null,arguments)},En=s.stackSave=function(){return(En=s.stackSave=s.asm.Db).apply(null,arguments)},On=s.stackRestore=function(){return(On=s.stackRestore=s.asm.Eb).apply(null,arguments)},xr=s.stackAlloc=function(){return(xr=s.stackAlloc=s.asm.Fb).apply(null,arguments)},Vr=s.___cxa_can_catch=function(){return(Vr=s.___cxa_can_catch=s.asm.Gb).apply(null,arguments)},Kr=s.___cxa_is_pointer_type=function(){return(Kr=s.___cxa_is_pointer_type=s.asm.Hb).apply(null,arguments)},Mr=s.dynCall_j=function(){return(Mr=s.dynCall_j=s.asm.Ib).apply(null,arguments)},kr=s.dynCall_iiiiij=function(){return(kr=s.dynCall_iiiiij=s.asm.Jb).apply(null,arguments)},Fr=s.dynCall_jii=function(){return(Fr=s.dynCall_jii=s.asm.Kb).apply(null,arguments)},wi=s.dynCall_viiiiij=function(){return(wi=s.dynCall_viiiiij=s.asm.Lb).apply(null,arguments)},Gn=s.dynCall_vjji=function(){return(Gn=s.dynCall_vjji=s.asm.Mb).apply(null,arguments)},jr=s.dynCall_viiijjjii=function(){return(jr=s.dynCall_viiijjjii=s.asm.Nb).apply(null,arguments)},cr=s.dynCall_iij=function(){return(cr=s.dynCall_iij=s.asm.Ob).apply(null,arguments)},Pi=s.dynCall_ji=function(){return(Pi=s.dynCall_ji=s.asm.Pb).apply(null,arguments)},Or=s.dynCall_iiiiiij=function(){return(Or=s.dynCall_iiiiiij=s.asm.Qb).apply(null,arguments)},Rr=s.dynCall_iiij=function(){return(Rr=s.dynCall_iiij=s.asm.Rb).apply(null,arguments)};function zi(){function _e(){if(!wn&&(wn=!0,s.calledRun=!0,!ve)&&(he||Ot(be),e(s),s.onRuntimeInitialized&&s.onRuntimeInitialized(),!he)){if(s.postRun)for(typeof s.postRun=="function"&&(s.postRun=[s.postRun]);s.postRun.length;){var Fe=s.postRun.shift();St.unshift(Fe)}Ot(St)}}if(!(0<Tt))if(he)e(s),he||Ot(be),postMessage({cmd:"loaded"});else{if(s.preRun)for(typeof s.preRun=="function"&&(s.preRun=[s.preRun]);s.preRun.length;)Bt();Ot(ft),0<Tt||(s.setStatus?(s.setStatus("Running..."),setTimeout((function(){setTimeout((function(){s.setStatus("")}),1),_e()}),1)):_e())}}if(s.UTF8ToString=ht,s.stringToUTF8=function(_e,Fe,je){return ct(_e,w(),Fe,je)},s.lengthBytesUTF8=Ue,s.keepRuntimeAlive=Jt,s.wasmMemory=ye,s.stackSave=En,s.stackRestore=On,s.stackAlloc=xr,s.ExitStatus=Mt,s.PThread=gt,Be=function _e(){wn||zi(),wn||(Be=_e)},s.preInit)for(typeof s.preInit=="function"&&(s.preInit=[s.preInit]);0<s.preInit.length;)s.preInit.pop()();return zi(),m.ready});o.exports=h},932:(o,n,c)=>{var d,h=(d=(d=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0)||"/index.js",function(m){var p,w,z;m=m||{},p||(p=m!==void 0?m:{}),p.ready=new Promise((function(De,Ze){w=De,z=Ze}));var A,y,s,e,f,g,R=Object.assign({},p),q="./this.program",H=(De,Ze)=>{throw Ze},te=typeof window=="object",re=typeof importScripts=="function",ae=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string",ne="";ae?(ne=re?c(908).dirname(ne)+"/":"//",g=()=>{f||(e=c(1384),f=c(908))},A=function(De,Ze){return g(),De=f.normalize(De),e.readFileSync(De,Ze?void 0:"utf8")},s=De=>((De=A(De,!0)).buffer||(De=new Uint8Array(De)),De),y=(De,Ze,_t)=>{g(),De=f.normalize(De),e.readFile(De,(function(dt,lt){dt?_t(dt):Ze(lt.buffer)}))},1<process.argv.length&&(q=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2),process.on("uncaughtException",(function(De){if(!(De instanceof be))throw De})),process.on("unhandledRejection",(function(De){throw De})),H=(De,Ze)=>{if(ue||0<et)throw process.exitCode=De,Ze;Ze instanceof be||ce("exiting due to exception: "+Ze),process.exit(De)},p.inspect=function(){return"[Emscripten Module object]"}):(te||re)&&(re?ne=self.location.href:typeof document<"u"&&document.currentScript&&(ne=document.currentScript.src),d&&(ne=d),ne=ne.indexOf("blob:")!==0?ne.substr(0,ne.replace(/[?#].*/,"").lastIndexOf("/")+1):"",A=De=>{var Ze=new XMLHttpRequest;return Ze.open("GET",De,!1),Ze.send(null),Ze.responseText},re&&(s=De=>{var Ze=new XMLHttpRequest;return Ze.open("GET",De,!1),Ze.responseType="arraybuffer",Ze.send(null),new Uint8Array(Ze.response)}),y=(De,Ze,_t)=>{var dt=new XMLHttpRequest;dt.open("GET",De,!0),dt.responseType="arraybuffer",dt.onload=()=>{dt.status==200||dt.status==0&&dt.response?Ze(dt.response):_t()},dt.onerror=_t,dt.send(null)});var oe,le=p.print||console.log.bind(console),ce=p.printErr||console.warn.bind(console);Object.assign(p,R),R=null,p.thisProgram&&(q=p.thisProgram),p.quit&&(H=p.quit),p.wasmBinary&&(oe=p.wasmBinary);var ue=p.noExitRuntime||!1;typeof WebAssembly!="object"&&ot("no native wasm support detected");var he,ge,Oe,$e,Pe,Le,me=!1,we=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function Se(De,Ze,_t){var dt=(Ze>>>=0)+_t;for(_t=Ze;De[_t]&&!(_t>=dt);)++_t;if(16<_t-Ze&&De.buffer&&we)return we.decode(De.subarray(Ze,_t));for(dt="";Ze<_t;){var lt=De[Ze++];if(128&lt){var Ct=63&De[Ze++];if((224&lt)==192)dt+=String.fromCharCode((31&lt)<<6|Ct);else{var en=63&De[Ze++];65536>(lt=(240&lt)==224?(15&lt)<<12|Ct<<6|en:(7&lt)<<18|Ct<<12|en<<6|63&De[Ze++])?dt+=String.fromCharCode(lt):(lt-=65536,dt+=String.fromCharCode(55296|lt>>10,56320|1023&lt))}}else dt+=String.fromCharCode(lt)}return dt}function ye(De,Ze){return(De>>>=0)?Se($e,De,Ze):""}function ke(De,Ze,_t,dt){if(!(0<dt))return 0;var lt=_t>>>=0;dt=_t+dt-1;for(var Ct=0;Ct<De.length;++Ct){var en=De.charCodeAt(Ct);if(55296<=en&&57343>=en&&(en=65536+((1023&en)<<10)|1023&De.charCodeAt(++Ct)),127>=en){if(_t>=dt)break;Ze[_t++>>>0]=en}else{if(2047>=en){if(_t+1>=dt)break;Ze[_t++>>>0]=192|en>>6}else{if(65535>=en){if(_t+2>=dt)break;Ze[_t++>>>0]=224|en>>12}else{if(_t+3>=dt)break;Ze[_t++>>>0]=240|en>>18,Ze[_t++>>>0]=128|en>>12&63}Ze[_t++>>>0]=128|en>>6&63}Ze[_t++>>>0]=128|63&en}}return Ze[_t>>>0]=0,_t-lt}function Ae(De){for(var Ze=0,_t=0;_t<De.length;++_t){var dt=De.charCodeAt(_t);127>=dt?Ze++:2047>=dt?Ze+=2:55296<=dt&&57343>=dt?(Ze+=4,++_t):Ze+=3}return Ze}function Ie(){var De=he.buffer;ge=De,p.HEAP8=Oe=new Int8Array(De),p.HEAP16=new Int16Array(De),p.HEAP32=Pe=new Int32Array(De),p.HEAPU8=$e=new Uint8Array(De),p.HEAPU16=new Uint16Array(De),p.HEAPU32=Le=new Uint32Array(De),p.HEAPF32=new Float32Array(De),p.HEAPF64=new Float64Array(De)}var qe,Ge=[],Je=[],Te=[],ve=[],et=0;function mt(){var De=p.preRun.shift();Ge.unshift(De)}var ht,ct=0,Ue=null;function ot(De){throw p.onAbort&&p.onAbort(De),ce(De="Aborted("+De+")"),me=!0,De=new WebAssembly.RuntimeError(De+". Build with -sASSERTIONS for more info."),z(De),De}function bt(){return ht.startsWith("data:application/octet-stream;base64,")}if(ht="ort-wasm.wasm",!bt()){var At=ht;ht=p.locateFile?p.locateFile(At,ne):ne+At}function ft(){var De=ht;try{if(De==ht&&oe)return new Uint8Array(oe);if(s)return s(De);throw"both async and sync fetching of the wasm failed"}catch(Ze){ot(Ze)}}function be(De){this.name="ExitStatus",this.message="Program terminated with exit("+De+")",this.status=De}function Et(De){for(;0<De.length;)De.shift()(p)}var St=[],Jt=0,Bt=0;function Vt(De){this.Db=De,this.zb=De-24,this.Ub=function(Ze){Le[this.zb+4>>2>>>0]=Ze},this.Eb=function(){return Le[this.zb+4>>2>>>0]},this.Sb=function(Ze){Le[this.zb+8>>2>>>0]=Ze},this.Wb=function(){return Le[this.zb+8>>2>>>0]},this.Tb=function(){Pe[this.zb>>2>>>0]=0},this.Ib=function(Ze){Oe[this.zb+12>>0>>>0]=Ze?1:0},this.Pb=function(){return Oe[this.zb+12>>0>>>0]!=0},this.Jb=function(Ze){Oe[this.zb+13>>0>>>0]=Ze?1:0},this.Lb=function(){return Oe[this.zb+13>>0>>>0]!=0},this.Rb=function(Ze,_t){this.Fb(0),this.Ub(Ze),this.Sb(_t),this.Tb(),this.Ib(!1),this.Jb(!1)},this.Nb=function(){Pe[this.zb>>2>>>0]+=1},this.Xb=function(){var Ze=Pe[this.zb>>2>>>0];return Pe[this.zb>>2>>>0]=Ze-1,Ze===1},this.Fb=function(Ze){Le[this.zb+16>>2>>>0]=Ze},this.Ob=function(){return Le[this.zb+16>>2>>>0]},this.Qb=function(){if(ln(this.Eb()))return Le[this.Db>>2>>>0];var Ze=this.Ob();return Ze!==0?Ze:this.Db}}function Tt(De){return qt(new Vt(De).zb)}var Be=[];function Xe(De){var Ze=Be[De];return Ze||(De>=Be.length&&(Be.length=De+1),Be[De]=Ze=qe.get(De)),Ze}function Ke(De){var Ze=Ae(De)+1,_t=Pt(Ze);return _t&&ke(De,Oe,_t,Ze),_t}var nt={};function xt(){if(!Mt){var De,Ze={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:q||"./this.program"};for(De in nt)nt[De]===void 0?delete Ze[De]:Ze[De]=nt[De];var _t=[];for(De in Ze)_t.push(De+"="+Ze[De]);Mt=_t}return Mt}var Mt,Ye=[null,[],[]];function at(De,Ze){var _t=Ye[De];Ze===0||Ze===10?((De===1?le:ce)(Se(_t,0)),_t.length=0):_t.push(Ze)}var st=0;function vt(De){return De%4==0&&(De%100!=0||De%400==0)}var gt=[31,29,31,30,31,30,31,31,30,31,30,31],Ot=[31,28,31,30,31,30,31,31,30,31,30,31];function Dt(De,Ze,_t,dt){function lt(Rt,bn,Rn){for(Rt=typeof Rt=="number"?Rt.toString():Rt||"";Rt.length<bn;)Rt=Rn[0]+Rt;return Rt}function Ct(Rt,bn){return lt(Rt,bn,"0")}function en(Rt,bn){function Rn(Hn){return 0>Hn?-1:0<Hn?1:0}var ir;return(ir=Rn(Rt.getFullYear()-bn.getFullYear()))===0&&(ir=Rn(Rt.getMonth()-bn.getMonth()))===0&&(ir=Rn(Rt.getDate()-bn.getDate())),ir}function mn(Rt){switch(Rt.getDay()){case 0:return new Date(Rt.getFullYear()-1,11,29);case 1:return Rt;case 2:return new Date(Rt.getFullYear(),0,3);case 3:return new Date(Rt.getFullYear(),0,2);case 4:return new Date(Rt.getFullYear(),0,1);case 5:return new Date(Rt.getFullYear()-1,11,31);case 6:return new Date(Rt.getFullYear()-1,11,30)}}function fn(Rt){var bn=Rt.Bb;for(Rt=new Date(new Date(Rt.Cb+1900,0,1).getTime());0<bn;){var Rn=Rt.getMonth(),ir=(vt(Rt.getFullYear())?gt:Ot)[Rn];if(!(bn>ir-Rt.getDate())){Rt.setDate(Rt.getDate()+bn);break}bn-=ir-Rt.getDate()+1,Rt.setDate(1),11>Rn?Rt.setMonth(Rn+1):(Rt.setMonth(0),Rt.setFullYear(Rt.getFullYear()+1))}return Rn=new Date(Rt.getFullYear()+1,0,4),bn=mn(new Date(Rt.getFullYear(),0,4)),Rn=mn(Rn),0>=en(bn,Rt)?0>=en(Rn,Rt)?Rt.getFullYear()+1:Rt.getFullYear():Rt.getFullYear()-1}var In=Pe[dt+40>>2>>>0];for(var Mn in dt={$b:Pe[dt>>2>>>0],Zb:Pe[dt+4>>2>>>0],Gb:Pe[dt+8>>2>>>0],Kb:Pe[dt+12>>2>>>0],Hb:Pe[dt+16>>2>>>0],Cb:Pe[dt+20>>2>>>0],Ab:Pe[dt+24>>2>>>0],Bb:Pe[dt+28>>2>>>0],bc:Pe[dt+32>>2>>>0],Yb:Pe[dt+36>>2>>>0],ac:In?ye(In):""},_t=ye(_t),In={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"})_t=_t.replace(new RegExp(Mn,"g"),In[Mn]);var nr="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),sr="January February March April May June July August September October November December".split(" ");for(Mn in In={"%a":function(Rt){return nr[Rt.Ab].substring(0,3)},"%A":function(Rt){return nr[Rt.Ab]},"%b":function(Rt){return sr[Rt.Hb].substring(0,3)},"%B":function(Rt){return sr[Rt.Hb]},"%C":function(Rt){return Ct((Rt.Cb+1900)/100|0,2)},"%d":function(Rt){return Ct(Rt.Kb,2)},"%e":function(Rt){return lt(Rt.Kb,2," ")},"%g":function(Rt){return fn(Rt).toString().substring(2)},"%G":function(Rt){return fn(Rt)},"%H":function(Rt){return Ct(Rt.Gb,2)},"%I":function(Rt){return(Rt=Rt.Gb)==0?Rt=12:12<Rt&&(Rt-=12),Ct(Rt,2)},"%j":function(Rt){for(var bn=0,Rn=0;Rn<=Rt.Hb-1;bn+=(vt(Rt.Cb+1900)?gt:Ot)[Rn++]);return Ct(Rt.Kb+bn,3)},"%m":function(Rt){return Ct(Rt.Hb+1,2)},"%M":function(Rt){return Ct(Rt.Zb,2)},"%n":function(){return`
85`},"%p":function(Rt){return 0<=Rt.Gb&&12>Rt.Gb?"AM":"PM"},"%S":function(Rt){return Ct(Rt.$b,2)},"%t":function(){return"	"},"%u":function(Rt){return Rt.Ab||7},"%U":function(Rt){return Ct(Math.floor((Rt.Bb+7-Rt.Ab)/7),2)},"%V":function(Rt){var bn=Math.floor((Rt.Bb+7-(Rt.Ab+6)%7)/7);if(2>=(Rt.Ab+371-Rt.Bb-2)%7&&bn++,bn)bn==53&&((Rn=(Rt.Ab+371-Rt.Bb)%7)==4||Rn==3&&vt(Rt.Cb)||(bn=1));else{bn=52;var Rn=(Rt.Ab+7-Rt.Bb-1)%7;(Rn==4||Rn==5&&vt(Rt.Cb%400-1))&&bn++}return Ct(bn,2)},"%w":function(Rt){return Rt.Ab},"%W":function(Rt){return Ct(Math.floor((Rt.Bb+7-(Rt.Ab+6)%7)/7),2)},"%y":function(Rt){return(Rt.Cb+1900).toString().substring(2)},"%Y":function(Rt){return Rt.Cb+1900},"%z":function(Rt){var bn=0<=(Rt=Rt.Yb);return Rt=Math.abs(Rt)/60,(bn?"+":"-")+("0000"+(Rt/60*100+Rt%60)).slice(-4)},"%Z":function(Rt){return Rt.ac},"%%":function(){return"%"}},_t=_t.replace(/%%/g,"\0\0"),In)_t.includes(Mn)&&(_t=_t.replace(new RegExp(Mn,"g"),In[Mn](dt)));return Mn=(function(Rt){var bn=Array(Ae(Rt)+1);return ke(Rt,bn,0,bn.length),bn})(_t=_t.replace(/\0\0/g,"%")),Mn.length>Ze?0:(Oe.set(Mn,De>>>0),Mn.length-1)}var Gt={a:function(De){return Pt(De+24)+24},m:function(De){return(De=new Vt(De)).Pb()||(De.Ib(!0),Jt--),De.Jb(!1),St.push(De),De.Nb(),De.Qb()},ia:function(De){throw ce("Unexpected exception thrown, this is not properly supported - aborting"),me=!0,De},w:function(){Ve(0);var De=St.pop();if(De.Xb()&&!De.Lb()){var Ze=De.Wb();Ze&&Xe(Ze)(De.Db),Tt(De.Db)}Bt=0},d:function(){var De=Bt;if(!De)return st=0;var Ze=new Vt(De);Ze.Fb(De);var _t=Ze.Eb();if(!_t)return st=0,De;for(var dt=Array.prototype.slice.call(arguments),lt=0;lt<dt.length;lt++){var Ct=dt[lt];if(Ct===0||Ct===_t)break;if(Wt(Ct,_t,Ze.zb+16))return st=Ct,De}return st=_t,De},k:function(){var De=Bt;if(!De)return st=0;var Ze=new Vt(De);Ze.Fb(De);var _t=Ze.Eb();if(!_t)return st=0,De;for(var dt=Array.prototype.slice.call(arguments),lt=0;lt<dt.length;lt++){var Ct=dt[lt];if(Ct===0||Ct===_t)break;if(Wt(Ct,_t,Ze.zb+16))return st=Ct,De}return st=_t,De},g:function(){var De=Bt;if(!De)return st=0;var Ze=new Vt(De);Ze.Fb(De);var _t=Ze.Eb();if(!_t)return st=0,De;for(var dt=Array.prototype.slice.call(arguments),lt=0;lt<dt.length;lt++){var Ct=dt[lt];if(Ct===0||Ct===_t)break;if(Wt(Ct,_t,Ze.zb+16))return st=Ct,De}return st=_t,De},s:Tt,L:function(){var De=St.pop();De||ot("no exception to throw");var Ze=De.Db;throw De.Lb()||(St.push(De),De.Jb(!0),De.Ib(!1),Jt++),Bt=Ze,Ze},b:function(De,Ze,_t){throw new Vt(De).Rb(Ze,_t),Bt=De,Jt++,De},la:function(){return Jt},i:function(De){throw Bt||(Bt=De),De},H:function(){return 0},Ba:function(){},pa:function(){},ra:function(){},ka:function(){return 0},za:function(){},ua:function(){},ya:function(){},R:function(){},qa:function(){},na:function(){},Aa:function(){},oa:function(){},Ha:function(){},Ja:function(){ot("To use dlopen, you need enable dynamic linking, see https://github.com/emscripten-core/emscripten/wiki/Linking")},Ia:function(){ot("To use dlopen, you need enable dynamic linking, see https://github.com/emscripten-core/emscripten/wiki/Linking")},S:function(){return Date.now()},Ca:function(){return!0},Da:function(De,Ze){De=new Date(1e3*(Le[De>>>2]+4294967296*Pe[De+4>>>2])),Pe[Ze>>2>>>0]=De.getUTCSeconds(),Pe[Ze+4>>2>>>0]=De.getUTCMinutes(),Pe[Ze+8>>2>>>0]=De.getUTCHours(),Pe[Ze+12>>2>>>0]=De.getUTCDate(),Pe[Ze+16>>2>>>0]=De.getUTCMonth(),Pe[Ze+20>>2>>>0]=De.getUTCFullYear()-1900,Pe[Ze+24>>2>>>0]=De.getUTCDay(),Pe[Ze+28>>2>>>0]=(De.getTime()-Date.UTC(De.getUTCFullYear(),0,1,0,0,0,0))/864e5|0},Ea:function(De,Ze){De=new Date(1e3*(Le[De>>>2]+4294967296*Pe[De+4>>>2])),Pe[Ze>>2>>>0]=De.getSeconds(),Pe[Ze+4>>2>>>0]=De.getMinutes(),Pe[Ze+8>>2>>>0]=De.getHours(),Pe[Ze+12>>2>>>0]=De.getDate(),Pe[Ze+16>>2>>>0]=De.getMonth(),Pe[Ze+20>>2>>>0]=De.getFullYear()-1900,Pe[Ze+24>>2>>>0]=De.getDay();var _t=new Date(De.getFullYear(),0,1);Pe[Ze+28>>2>>>0]=(De.getTime()-_t.getTime())/864e5|0,Pe[Ze+36>>2>>>0]=-60*De.getTimezoneOffset();var dt=new Date(De.getFullYear(),6,1).getTimezoneOffset();_t=_t.getTimezoneOffset(),Pe[Ze+32>>2>>>0]=0|(dt!=_t&&De.getTimezoneOffset()==Math.min(_t,dt))},Fa:function(De){var Ze=new Date(Pe[De+20>>2>>>0]+1900,Pe[De+16>>2>>>0],Pe[De+12>>2>>>0],Pe[De+8>>2>>>0],Pe[De+4>>2>>>0],Pe[De>>2>>>0],0),_t=Pe[De+32>>2>>>0],dt=Ze.getTimezoneOffset(),lt=new Date(Ze.getFullYear(),0,1),Ct=new Date(Ze.getFullYear(),6,1).getTimezoneOffset(),en=lt.getTimezoneOffset(),mn=Math.min(en,Ct);return 0>_t?Pe[De+32>>2>>>0]=+(Ct!=en&&mn==dt):0<_t!=(mn==dt)&&(Ct=Math.max(en,Ct),Ze.setTime(Ze.getTime()+6e4*((0<_t?mn:Ct)-dt))),Pe[De+24>>2>>>0]=Ze.getDay(),Pe[De+28>>2>>>0]=(Ze.getTime()-lt.getTime())/864e5|0,Pe[De>>2>>>0]=Ze.getSeconds(),Pe[De+4>>2>>>0]=Ze.getMinutes(),Pe[De+8>>2>>>0]=Ze.getHours(),Pe[De+12>>2>>>0]=Ze.getDate(),Pe[De+16>>2>>>0]=Ze.getMonth(),Ze.getTime()/1e3|0},sa:function(){return-52},ta:function(){},Ga:function De(Ze,_t,dt){De.Vb||(De.Vb=!0,(function(lt,Ct,en){function mn(sr){return(sr=sr.toTimeString().match(/\(([A-Za-z ]+)\)$/))?sr[1]:"GMT"}var fn=new Date().getFullYear(),In=new Date(fn,0,1),Mn=new Date(fn,6,1);fn=In.getTimezoneOffset();var nr=Mn.getTimezoneOffset();Pe[lt>>2>>>0]=60*Math.max(fn,nr),Pe[Ct>>2>>>0]=+(fn!=nr),lt=mn(In),Ct=mn(Mn),lt=Ke(lt),Ct=Ke(Ct),nr<fn?(Le[en>>2>>>0]=lt,Le[en+4>>2>>>0]=Ct):(Le[en>>2>>>0]=Ct,Le[en+4>>2>>>0]=lt)})(Ze,_t,dt))},B:function(){ot("")},ma:function(){return 4294901760},I:ae?()=>{var De=process.hrtime();return 1e3*De[0]+De[1]/1e6}:()=>performance.now(),xa:function(De,Ze,_t){$e.copyWithin(De>>>0,Ze>>>0,Ze+_t>>>0)},G:function(De){var Ze=$e.length;if(4294901760<(De>>>=0))return!1;for(var _t=1;4>=_t;_t*=2){var dt=Ze*(1+.2/_t);dt=Math.min(dt,De+100663296);var lt=Math;dt=Math.max(De,dt),lt=lt.min.call(lt,4294901760,dt+(65536-dt%65536)%65536);e:{try{he.grow(lt-ge.byteLength+65535>>>16),Ie();var Ct=1;break e}catch{}Ct=void 0}if(Ct)return!0}return!1},va:function(De,Ze){var _t=0;return xt().forEach((function(dt,lt){var Ct=Ze+_t;for(lt=Le[De+4*lt>>2>>>0]=Ct,Ct=0;Ct<dt.length;++Ct)Oe[lt++>>0>>>0]=dt.charCodeAt(Ct);Oe[lt>>0>>>0]=0,_t+=dt.length+1})),0},wa:function(De,Ze){var _t=xt();Le[De>>2>>>0]=_t.length;var dt=0;return _t.forEach((function(lt){dt+=lt.length+1})),Le[Ze>>2>>>0]=dt,0},ba:function(De){ue||0<et||(He(),Et(Te),on(0),Ye[1].length&&at(1,10),Ye[2].length&&at(2,10)),ue||0<et||(p.onExit&&p.onExit(De),me=!0),H(De,new be(De))},E:function(){return 52},Q:function(){return 52},ca:function(){return 70},P:function(De,Ze,_t,dt){for(var lt=0,Ct=0;Ct<_t;Ct++){var en=Le[Ze>>2>>>0],mn=Le[Ze+4>>2>>>0];Ze+=8;for(var fn=0;fn<mn;fn++)at(De,$e[en+fn>>>0]);lt+=mn}return Le[dt>>2>>>0]=lt,0},c:function(){return st},ja:function De(Ze,_t){De.Mb||(De.Mb=(function(){if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function"){var lt=new Uint8Array(1);return()=>(crypto.getRandomValues(lt),lt[0])}if(ae)try{var Ct=c(Object((function(){var en=new Error("Cannot find module 'crypto'");throw en.code="MODULE_NOT_FOUND",en})()));return()=>Ct.randomBytes(1)[0]}catch{}return()=>ot("randomDevice")})());for(var dt=0;dt<_t;dt++)Oe[Ze+dt>>0>>>0]=De.Mb();return 0},ea:function(De,Ze,_t){var dt=pt();try{return Xe(De)(Ze,_t)}catch(lt){if(wt(dt),lt!==lt+0)throw lt;Ve(1,0)}},fa:function(De,Ze,_t){var dt=pt();try{return Xe(De)(Ze,_t)}catch(lt){if(wt(dt),lt!==lt+0)throw lt;Ve(1,0)}},J:function(De){var Ze=pt();try{return Xe(De)()}catch(_t){if(wt(Ze),_t!==_t+0)throw _t;Ve(1,0)}},e:function(De,Ze){var _t=pt();try{return Xe(De)(Ze)}catch(dt){if(wt(_t),dt!==dt+0)throw dt;Ve(1,0)}},N:function(De,Ze,_t){var dt=pt();try{return Xe(De)(Ze,_t)}catch(lt){if(wt(dt),lt!==lt+0)throw lt;Ve(1,0)}},O:function(De,Ze,_t){var dt=pt();try{return Xe(De)(Ze,_t)}catch(lt){if(wt(dt),lt!==lt+0)throw lt;Ve(1,0)}},j:function(De,Ze,_t){var dt=pt();try{return Xe(De)(Ze,_t)}catch(lt){if(wt(dt),lt!==lt+0)throw lt;Ve(1,0)}},o:function(De,Ze,_t,dt){var lt=pt();try{return Xe(De)(Ze,_t,dt)}catch(Ct){if(wt(lt),Ct!==Ct+0)throw Ct;Ve(1,0)}},p:function(De,Ze,_t,dt,lt){var Ct=pt();try{return Xe(De)(Ze,_t,dt,lt)}catch(en){if(wt(Ct),en!==en+0)throw en;Ve(1,0)}},M:function(De,Ze,_t,dt,lt,Ct){var en=pt();try{return Xe(De)(Ze,_t,dt,lt,Ct)}catch(mn){if(wt(en),mn!==mn+0)throw mn;Ve(1,0)}},r:function(De,Ze,_t,dt,lt,Ct){var en=pt();try{return Xe(De)(Ze,_t,dt,lt,Ct)}catch(mn){if(wt(en),mn!==mn+0)throw mn;Ve(1,0)}},v:function(De,Ze,_t,dt,lt,Ct,en){var mn=pt();try{return Xe(De)(Ze,_t,dt,lt,Ct,en)}catch(fn){if(wt(mn),fn!==fn+0)throw fn;Ve(1,0)}},K:function(De,Ze,_t,dt,lt,Ct,en,mn){var fn=pt();try{return Xe(De)(Ze,_t,dt,lt,Ct,en,mn)}catch(In){if(wt(fn),In!==In+0)throw In;Ve(1,0)}},D:function(De,Ze,_t,dt,lt,Ct,en,mn,fn,In,Mn,nr){var sr=pt();try{return Xe(De)(Ze,_t,dt,lt,Ct,en,mn,fn,In,Mn,nr)}catch(Rt){if(wt(sr),Rt!==Rt+0)throw Rt;Ve(1,0)}},X:function(De,Ze,_t,dt,lt,Ct,en,mn){var fn=pt();try{return Ln(De,Ze,_t,dt,lt,Ct,en,mn)}catch(In){if(wt(fn),In!==In+0)throw In;Ve(1,0)}},V:function(De,Ze,_t,dt,lt,Ct,en){var mn=pt();try{return xn(De,Ze,_t,dt,lt,Ct,en)}catch(fn){if(wt(mn),fn!==fn+0)throw fn;Ve(1,0)}},U:function(De,Ze,_t,dt,lt){var Ct=pt();try{return Xn(De,Ze,_t,dt,lt)}catch(en){if(wt(Ct),en!==en+0)throw en;Ve(1,0)}},Z:function(De,Ze,_t,dt){var lt=pt();try{return gn(De,Ze,_t,dt)}catch(Ct){if(wt(lt),Ct!==Ct+0)throw Ct;Ve(1,0)}},W:function(De){var Ze=pt();try{return _n(De)}catch(_t){if(wt(Ze),_t!==_t+0)throw _t;Ve(1,0)}},Y:function(De,Ze){var _t=pt();try{return pr(De,Ze)}catch(dt){if(wt(_t),dt!==dt+0)throw dt;Ve(1,0)}},T:function(De,Ze,_t){var dt=pt();try{return rn(De,Ze,_t)}catch(lt){if(wt(dt),lt!==lt+0)throw lt;Ve(1,0)}},f:function(De){var Ze=pt();try{Xe(De)()}catch(_t){if(wt(Ze),_t!==_t+0)throw _t;Ve(1,0)}},q:function(De,Ze){var _t=pt();try{Xe(De)(Ze)}catch(dt){if(wt(_t),dt!==dt+0)throw dt;Ve(1,0)}},h:function(De,Ze,_t){var dt=pt();try{Xe(De)(Ze,_t)}catch(lt){if(wt(dt),lt!==lt+0)throw lt;Ve(1,0)}},da:function(De,Ze,_t,dt){var lt=pt();try{Xe(De)(Ze,_t,dt)}catch(Ct){if(wt(lt),Ct!==Ct+0)throw Ct;Ve(1,0)}},l:function(De,Ze,_t,dt){var lt=pt();try{Xe(De)(Ze,_t,dt)}catch(Ct){if(wt(lt),Ct!==Ct+0)throw Ct;Ve(1,0)}},t:function(De,Ze,_t,dt,lt){var Ct=pt();try{Xe(De)(Ze,_t,dt,lt)}catch(en){if(wt(Ct),en!==en+0)throw en;Ve(1,0)}},u:function(De,Ze,_t,dt,lt,Ct){var en=pt();try{Xe(De)(Ze,_t,dt,lt,Ct)}catch(mn){if(wt(en),mn!==mn+0)throw mn;Ve(1,0)}},x:function(De,Ze,_t,dt,lt,Ct,en){var mn=pt();try{Xe(De)(Ze,_t,dt,lt,Ct,en)}catch(fn){if(wt(mn),fn!==fn+0)throw fn;Ve(1,0)}},z:function(De,Ze,_t,dt,lt,Ct,en,mn){var fn=pt();try{Xe(De)(Ze,_t,dt,lt,Ct,en,mn)}catch(In){if(wt(fn),In!==In+0)throw In;Ve(1,0)}},ga:function(De,Ze,_t,dt,lt,Ct,en,mn,fn){var In=pt();try{Xe(De)(Ze,_t,dt,lt,Ct,en,mn,fn)}catch(Mn){if(wt(In),Mn!==Mn+0)throw Mn;Ve(1,0)}},A:function(De,Ze,_t,dt,lt,Ct,en,mn,fn,In,Mn){var nr=pt();try{Xe(De)(Ze,_t,dt,lt,Ct,en,mn,fn,In,Mn)}catch(sr){if(wt(nr),sr!==sr+0)throw sr;Ve(1,0)}},C:function(De,Ze,_t,dt,lt,Ct,en,mn,fn,In,Mn,nr,sr,Rt,bn,Rn){var ir=pt();try{Xe(De)(Ze,_t,dt,lt,Ct,en,mn,fn,In,Mn,nr,sr,Rt,bn,Rn)}catch(Hn){if(wt(ir),Hn!==Hn+0)throw Hn;Ve(1,0)}},aa:function(De,Ze,_t,dt,lt,Ct,en,mn){var fn=pt();try{vn(De,Ze,_t,dt,lt,Ct,en,mn)}catch(In){if(wt(fn),In!==In+0)throw In;Ve(1,0)}},_:function(De,Ze,_t,dt,lt,Ct,en,mn,fn,In,Mn,nr){var sr=pt();try{Nn(De,Ze,_t,dt,lt,Ct,en,mn,fn,In,Mn,nr)}catch(Rt){if(wt(sr),Rt!==Rt+0)throw Rt;Ve(1,0)}},$:function(De,Ze,_t,dt,lt,Ct){var en=pt();try{Yn(De,Ze,_t,dt,lt,Ct)}catch(mn){if(wt(en),mn!==mn+0)throw mn;Ve(1,0)}},n:function(De){return De},F:function(De){st=De},ha:Dt,y:function(De,Ze,_t,dt){return Dt(De,Ze,_t,dt)}};(function(){function De(lt){p.asm=lt.exports,he=p.asm.Ka,Ie(),qe=p.asm.ib,Je.unshift(p.asm.La),ct--,p.monitorRunDependencies&&p.monitorRunDependencies(ct),ct==0&&Ue&&(lt=Ue,Ue=null,lt())}function Ze(lt){De(lt.instance)}function _t(lt){return(function(){if(!oe&&(te||re)){if(typeof fetch=="function"&&!ht.startsWith("file://"))return fetch(ht,{credentials:"same-origin"}).then((function(Ct){if(!Ct.ok)throw"failed to load wasm binary file at '"+ht+"'";return Ct.arrayBuffer()})).catch((function(){return ft()}));if(y)return new Promise((function(Ct,en){y(ht,(function(mn){Ct(new Uint8Array(mn))}),en)}))}return Promise.resolve().then((function(){return ft()}))})().then((function(Ct){return WebAssembly.instantiate(Ct,dt)})).then((function(Ct){return Ct})).then(lt,(function(Ct){ce("failed to asynchronously prepare wasm: "+Ct),ot(Ct)}))}var dt={a:Gt};if(ct++,p.monitorRunDependencies&&p.monitorRunDependencies(ct),p.instantiateWasm)try{return p.instantiateWasm(dt,De)}catch(lt){return ce("Module.instantiateWasm callback failed with error: "+lt),!1}(oe||typeof WebAssembly.instantiateStreaming!="function"||bt()||ht.startsWith("file://")||ae||typeof fetch!="function"?_t(Ze):fetch(ht,{credentials:"same-origin"}).then((function(lt){return WebAssembly.instantiateStreaming(lt,dt).then(Ze,(function(Ct){return ce("wasm streaming compile failed: "+Ct),ce("falling back to ArrayBuffer instantiation"),_t(Ze)}))}))).catch(z)})(),p.___wasm_call_ctors=function(){return(p.___wasm_call_ctors=p.asm.La).apply(null,arguments)},p._OrtInit=function(){return(p._OrtInit=p.asm.Ma).apply(null,arguments)},p._OrtCreateSessionOptions=function(){return(p._OrtCreateSessionOptions=p.asm.Na).apply(null,arguments)},p._OrtAppendExecutionProvider=function(){return(p._OrtAppendExecutionProvider=p.asm.Oa).apply(null,arguments)},p._OrtAddSessionConfigEntry=function(){return(p._OrtAddSessionConfigEntry=p.asm.Pa).apply(null,arguments)},p._OrtReleaseSessionOptions=function(){return(p._OrtReleaseSessionOptions=p.asm.Qa).apply(null,arguments)},p._OrtCreateSession=function(){return(p._OrtCreateSession=p.asm.Ra).apply(null,arguments)},p._OrtReleaseSession=function(){return(p._OrtReleaseSession=p.asm.Sa).apply(null,arguments)},p._OrtGetInputCount=function(){return(p._OrtGetInputCount=p.asm.Ta).apply(null,arguments)},p._OrtGetOutputCount=function(){return(p._OrtGetOutputCount=p.asm.Ua).apply(null,arguments)},p._OrtGetInputName=function(){return(p._OrtGetInputName=p.asm.Va).apply(null,arguments)},p._OrtGetOutputName=function(){return(p._OrtGetOutputName=p.asm.Wa).apply(null,arguments)},p._OrtFree=function(){return(p._OrtFree=p.asm.Xa).apply(null,arguments)},p._OrtCreateTensor=function(){return(p._OrtCreateTensor=p.asm.Ya).apply(null,arguments)},p._OrtGetTensorData=function(){return(p._OrtGetTensorData=p.asm.Za).apply(null,arguments)},p._OrtReleaseTensor=function(){return(p._OrtReleaseTensor=p.asm._a).apply(null,arguments)},p._OrtCreateRunOptions=function(){return(p._OrtCreateRunOptions=p.asm.$a).apply(null,arguments)},p._OrtAddRunConfigEntry=function(){return(p._OrtAddRunConfigEntry=p.asm.ab).apply(null,arguments)},p._OrtReleaseRunOptions=function(){return(p._OrtReleaseRunOptions=p.asm.bb).apply(null,arguments)},p._OrtRun=function(){return(p._OrtRun=p.asm.cb).apply(null,arguments)},p._OrtEndProfiling=function(){return(p._OrtEndProfiling=p.asm.db).apply(null,arguments)};var Ft,Pt=p._malloc=function(){return(Pt=p._malloc=p.asm.eb).apply(null,arguments)},qt=p._free=function(){return(qt=p._free=p.asm.fb).apply(null,arguments)},on=p._fflush=function(){return(on=p._fflush=p.asm.gb).apply(null,arguments)},He=p.___funcs_on_exit=function(){return(He=p.___funcs_on_exit=p.asm.hb).apply(null,arguments)},Ve=p._setThrew=function(){return(Ve=p._setThrew=p.asm.jb).apply(null,arguments)},pt=p.stackSave=function(){return(pt=p.stackSave=p.asm.kb).apply(null,arguments)},wt=p.stackRestore=function(){return(wt=p.stackRestore=p.asm.lb).apply(null,arguments)},nn=p.stackAlloc=function(){return(nn=p.stackAlloc=p.asm.mb).apply(null,arguments)},Wt=p.___cxa_can_catch=function(){return(Wt=p.___cxa_can_catch=p.asm.nb).apply(null,arguments)},ln=p.___cxa_is_pointer_type=function(){return(ln=p.___cxa_is_pointer_type=p.asm.ob).apply(null,arguments)},_n=p.dynCall_j=function(){return(_n=p.dynCall_j=p.asm.pb).apply(null,arguments)},xn=p.dynCall_iiiiij=function(){return(xn=p.dynCall_iiiiij=p.asm.qb).apply(null,arguments)},rn=p.dynCall_jii=function(){return(rn=p.dynCall_jii=p.asm.rb).apply(null,arguments)},vn=p.dynCall_viiiiij=function(){return(vn=p.dynCall_viiiiij=p.asm.sb).apply(null,arguments)},Yn=p.dynCall_vjji=function(){return(Yn=p.dynCall_vjji=p.asm.tb).apply(null,arguments)},Nn=p.dynCall_viiijjjii=function(){return(Nn=p.dynCall_viiijjjii=p.asm.ub).apply(null,arguments)},gn=p.dynCall_iij=function(){return(gn=p.dynCall_iij=p.asm.vb).apply(null,arguments)},pr=p.dynCall_ji=function(){return(pr=p.dynCall_ji=p.asm.wb).apply(null,arguments)},Ln=p.dynCall_iiiiiij=function(){return(Ln=p.dynCall_iiiiiij=p.asm.xb).apply(null,arguments)},Xn=p.dynCall_iiij=function(){return(Xn=p.dynCall_iiij=p.asm.yb).apply(null,arguments)};function Tr(){function De(){if(!Ft&&(Ft=!0,p.calledRun=!0,!me)){if(Et(Je),w(p),p.onRuntimeInitialized&&p.onRuntimeInitialized(),p.postRun)for(typeof p.postRun=="function"&&(p.postRu
vendor: 20,650 bytes, line 85
85n=[p.postRun]);p.postRun.length;){var Ze=p.postRun.shift();ve.unshift(Ze)}Et(ve)}}if(!(0<ct)){if(p.preRun)for(typeof p.preRun=="function"&&(p.preRun=[p.preRun]);p.preRun.length;)mt();Et(Ge),0<ct||(p.setStatus?(p.setStatus("Running..."),setTimeout((function(){setTimeout((function(){p.setStatus("")}),1),De()}),1)):De())}}if(p.UTF8ToString=ye,p.stringToUTF8=function(De,Ze,_t){return ke(De,$e,Ze,_t)},p.lengthBytesUTF8=Ae,p.stackSave=pt,p.stackRestore=wt,p.stackAlloc=nn,Ue=function De(){Ft||Tr(),Ft||(Ue=De)},p.preInit)for(typeof p.preInit=="function"&&(p.preInit=[p.preInit]);0<p.preInit.length;)p.preInit.pop()();return Tr(),m.ready});o.exports=h},4537:o=>{o.exports=function(n,c){for(var d=new Array(arguments.length-1),h=0,m=2,p=!0;m<arguments.length;)d[h++]=arguments[m++];return new Promise((function(w,z){d[h]=function(A){if(p)if(p=!1,A)z(A);else{for(var y=new Array(arguments.length-1),s=0;s<y.length;)y[s++]=arguments[s];w.apply(null,y)}};try{n.apply(c||null,d)}catch(A){p&&(p=!1,z(A))}}))}},7419:(o,n)=>{var c=n;c.length=function(w){var z=w.length;if(!z)return 0;for(var A=0;--z%4>1&&w.charAt(z)==="=";)++A;return Math.ceil(3*w.length)/4-A};for(var d=new Array(64),h=new Array(123),m=0;m<64;)h[d[m]=m<26?m+65:m<52?m+71:m<62?m-4:m-59|43]=m++;c.encode=function(w,z,A){for(var y,s=null,e=[],f=0,g=0;z<A;){var R=w[z++];switch(g){case 0:e[f++]=d[R>>2],y=(3&R)<<4,g=1;break;case 1:e[f++]=d[y|R>>4],y=(15&R)<<2,g=2;break;case 2:e[f++]=d[y|R>>6],e[f++]=d[63&R],g=0}f>8191&&((s||(s=[])).push(String.fromCharCode.apply(String,e)),f=0)}return g&&(e[f++]=d[y],e[f++]=61,g===1&&(e[f++]=61)),s?(f&&s.push(String.fromCharCode.apply(String,e.slice(0,f))),s.join("")):String.fromCharCode.apply(String,e.slice(0,f))};var p="invalid encoding";c.decode=function(w,z,A){for(var y,s=A,e=0,f=0;f<w.length;){var g=w.charCodeAt(f++);if(g===61&&e>1)break;if((g=h[g])===void 0)throw Error(p);switch(e){case 0:y=g,e=1;break;case 1:z[A++]=y<<2|(48&g)>>4,y=g,e=2;break;case 2:z[A++]=(15&y)<<4|(60&g)>>2,y=g,e=3;break;case 3:z[A++]=(3&y)<<6|g,e=0}}if(e===1)throw Error(p);return A-s},c.test=function(w){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(w)}},9211:o=>{function n(){this._listeners={}}o.exports=n,n.prototype.on=function(c,d,h){return(this._listeners[c]||(this._listeners[c]=[])).push({fn:d,ctx:h||this}),this},n.prototype.off=function(c,d){if(c===void 0)this._listeners={};else if(d===void 0)this._listeners[c]=[];else for(var h=this._listeners[c],m=0;m<h.length;)h[m].fn===d?h.splice(m,1):++m;return this},n.prototype.emit=function(c){var d=this._listeners[c];if(d){for(var h=[],m=1;m<arguments.length;)h.push(arguments[m++]);for(m=0;m<d.length;)d[m].fn.apply(d[m++].ctx,h)}return this}},945:o=>{function n(p){return typeof Float32Array<"u"?(function(){var w=new Float32Array([-0]),z=new Uint8Array(w.buffer),A=z[3]===128;function y(g,R,q){w[0]=g,R[q]=z[0],R[q+1]=z[1],R[q+2]=z[2],R[q+3]=z[3]}function s(g,R,q){w[0]=g,R[q]=z[3],R[q+1]=z[2],R[q+2]=z[1],R[q+3]=z[0]}function e(g,R){return z[0]=g[R],z[1]=g[R+1],z[2]=g[R+2],z[3]=g[R+3],w[0]}function f(g,R){return z[3]=g[R],z[2]=g[R+1],z[1]=g[R+2],z[0]=g[R+3],w[0]}p.writeFloatLE=A?y:s,p.writeFloatBE=A?s:y,p.readFloatLE=A?e:f,p.readFloatBE=A?f:e})():(function(){function w(A,y,s,e){var f=y<0?1:0;if(f&&(y=-y),y===0)A(1/y>0?0:2147483648,s,e);else if(isNaN(y))A(2143289344,s,e);else if(y>34028234663852886e22)A((f<<31|2139095040)>>>0,s,e);else if(y<11754943508222875e-54)A((f<<31|Math.round(y/1401298464324817e-60))>>>0,s,e);else{var g=Math.floor(Math.log(y)/Math.LN2);A((f<<31|g+127<<23|8388607&Math.round(y*Math.pow(2,-g)*8388608))>>>0,s,e)}}function z(A,y,s){var e=A(y,s),f=2*(e>>31)+1,g=e>>>23&255,R=8388607&e;return g===255?R?NaN:f*(1/0):g===0?1401298464324817e-60*f*R:f*Math.pow(2,g-150)*(R+8388608)}p.writeFloatLE=w.bind(null,c),p.writeFloatBE=w.bind(null,d),p.readFloatLE=z.bind(null,h),p.readFloatBE=z.bind(null,m)})(),typeof Float64Array<"u"?(function(){var w=new Float64Array([-0]),z=new Uint8Array(w.buffer),A=z[7]===128;function y(g,R,q){w[0]=g,R[q]=z[0],R[q+1]=z[1],R[q+2]=z[2],R[q+3]=z[3],R[q+4]=z[4],R[q+5]=z[5],R[q+6]=z[6],R[q+7]=z[7]}function s(g,R,q){w[0]=g,R[q]=z[7],R[q+1]=z[6],R[q+2]=z[5],R[q+3]=z[4],R[q+4]=z[3],R[q+5]=z[2],R[q+6]=z[1],R[q+7]=z[0]}function e(g,R){return z[0]=g[R],z[1]=g[R+1],z[2]=g[R+2],z[3]=g[R+3],z[4]=g[R+4],z[5]=g[R+5],z[6]=g[R+6],z[7]=g[R+7],w[0]}function f(g,R){return z[7]=g[R],z[6]=g[R+1],z[5]=g[R+2],z[4]=g[R+3],z[3]=g[R+4],z[2]=g[R+5],z[1]=g[R+6],z[0]=g[R+7],w[0]}p.writeDoubleLE=A?y:s,p.writeDoubleBE=A?s:y,p.readDoubleLE=A?e:f,p.readDoubleBE=A?f:e})():(function(){function w(A,y,s,e,f,g){var R=e<0?1:0;if(R&&(e=-e),e===0)A(0,f,g+y),A(1/e>0?0:2147483648,f,g+s);else if(isNaN(e))A(0,f,g+y),A(2146959360,f,g+s);else if(e>17976931348623157e292)A(0,f,g+y),A((R<<31|2146435072)>>>0,f,g+s);else{var q;if(e<22250738585072014e-324)A((q=e/5e-324)>>>0,f,g+y),A((R<<31|q/4294967296)>>>0,f,g+s);else{var H=Math.floor(Math.log(e)/Math.LN2);H===1024&&(H=1023),A(4503599627370496*(q=e*Math.pow(2,-H))>>>0,f,g+y),A((R<<31|H+1023<<20|1048576*q&1048575)>>>0,f,g+s)}}}function z(A,y,s,e,f){var g=A(e,f+y),R=A(e,f+s),q=2*(R>>31)+1,H=R>>>20&2047,te=4294967296*(1048575&R)+g;return H===2047?te?NaN:q*(1/0):H===0?5e-324*q*te:q*Math.pow(2,H-1075)*(te+4503599627370496)}p.writeDoubleLE=w.bind(null,c,0,4),p.writeDoubleBE=w.bind(null,d,4,0),p.readDoubleLE=z.bind(null,h,0,4),p.readDoubleBE=z.bind(null,m,4,0)})(),p}function c(p,w,z){w[z]=255&p,w[z+1]=p>>>8&255,w[z+2]=p>>>16&255,w[z+3]=p>>>24}function d(p,w,z){w[z]=p>>>24,w[z+1]=p>>>16&255,w[z+2]=p>>>8&255,w[z+3]=255&p}function h(p,w){return(p[w]|p[w+1]<<8|p[w+2]<<16|p[w+3]<<24)>>>0}function m(p,w){return(p[w]<<24|p[w+1]<<16|p[w+2]<<8|p[w+3])>>>0}o.exports=n(n)},7199:module=>{function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(o){}return null}module.exports=inquire},6662:o=>{o.exports=function(n,c,d){var h=d||8192,m=h>>>1,p=null,w=h;return function(z){if(z<1||z>m)return n(z);w+z>h&&(p=n(h),w=0);var A=c.call(p,w,w+=z);return 7&w&&(w=1+(7|w)),A}}},4997:(o,n)=>{var c=n;c.length=function(d){for(var h=0,m=0,p=0;p<d.length;++p)(m=d.charCodeAt(p))<128?h+=1:m<2048?h+=2:(64512&m)==55296&&(64512&d.charCodeAt(p+1))==56320?(++p,h+=4):h+=3;return h},c.read=function(d,h,m){if(m-h<1)return"";for(var p,w=null,z=[],A=0;h<m;)(p=d[h++])<128?z[A++]=p:p>191&&p<224?z[A++]=(31&p)<<6|63&d[h++]:p>239&&p<365?(p=((7&p)<<18|(63&d[h++])<<12|(63&d[h++])<<6|63&d[h++])-65536,z[A++]=55296+(p>>10),z[A++]=56320+(1023&p)):z[A++]=(15&p)<<12|(63&d[h++])<<6|63&d[h++],A>8191&&((w||(w=[])).push(String.fromCharCode.apply(String,z)),A=0);return w?(A&&w.push(String.fromCharCode.apply(String,z.slice(0,A))),w.join("")):String.fromCharCode.apply(String,z.slice(0,A))},c.write=function(d,h,m){for(var p,w,z=m,A=0;A<d.length;++A)(p=d.charCodeAt(A))<128?h[m++]=p:p<2048?(h[m++]=p>>6|192,h[m++]=63&p|128):(64512&p)==55296&&(64512&(w=d.charCodeAt(A+1)))==56320?(p=65536+((1023&p)<<10)+(1023&w),++A,h[m++]=p>>18|240,h[m++]=p>>12&63|128,h[m++]=p>>6&63|128,h[m++]=63&p|128):(h[m++]=p>>12|224,h[m++]=p>>6&63|128,h[m++]=63&p|128);return m-z}},3442:(o,n)=>{n.__esModule=!0;var c=(function(){function d(h){if(!h)throw new TypeError("Invalid argument; `value` has no value.");this.value=d.EMPTY,h&&d.isGuid(h)&&(this.value=h)}return d.isGuid=function(h){var m=h.toString();return h&&(h instanceof d||d.validator.test(m))},d.create=function(){return new d([d.gen(2),d.gen(1),d.gen(1),d.gen(1),d.gen(3)].join("-"))},d.createEmpty=function(){return new d("emptyguid")},d.parse=function(h){return new d(h)},d.raw=function(){return[d.gen(2),d.gen(1),d.gen(1),d.gen(1),d.gen(3)].join("-")},d.gen=function(h){for(var m="",p=0;p<h;p++)m+=(65536*(1+Math.random())|0).toString(16).substring(1);return m},d.prototype.equals=function(h){return d.isGuid(h)&&this.value===h.toString()},d.prototype.isEmpty=function(){return this.value===d.EMPTY},d.prototype.toString=function(){return this.value},d.prototype.toJSON=function(){return{value:this.value}},d.validator=new RegExp("^[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}$","i"),d.EMPTY="00000000-0000-0000-0000-000000000000",d})();n.Guid=c},3720:o=>{o.exports=c;var n=null;try{n=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch{}function c(ue,he,ge){this.low=0|ue,this.high=0|he,this.unsigned=!!ge}function d(ue){return(ue&&ue.__isLong__)===!0}c.prototype.__isLong__,Object.defineProperty(c.prototype,"__isLong__",{value:!0}),c.isLong=d;var h={},m={};function p(ue,he){var ge,Oe,$e;return he?($e=0<=(ue>>>=0)&&ue<256)&&(Oe=m[ue])?Oe:(ge=z(ue,(0|ue)<0?-1:0,!0),$e&&(m[ue]=ge),ge):($e=-128<=(ue|=0)&&ue<128)&&(Oe=h[ue])?Oe:(ge=z(ue,ue<0?-1:0,!1),$e&&(h[ue]=ge),ge)}function w(ue,he){if(isNaN(ue))return he?H:q;if(he){if(ue<0)return H;if(ue>=f)return oe}else{if(ue<=-g)return le;if(ue+1>=g)return ne}return ue<0?w(-ue,he).neg():z(ue%e|0,ue/e|0,he)}function z(ue,he,ge){return new c(ue,he,ge)}c.fromInt=p,c.fromNumber=w,c.fromBits=z;var A=Math.pow;function y(ue,he,ge){if(ue.length===0)throw Error("empty string");if(ue==="NaN"||ue==="Infinity"||ue==="+Infinity"||ue==="-Infinity")return q;if(typeof he=="number"?(ge=he,he=!1):he=!!he,(ge=ge||10)<2||36<ge)throw RangeError("radix");var Oe;if((Oe=ue.indexOf("-"))>0)throw Error("interior hyphen");if(Oe===0)return y(ue.substring(1),he,ge).neg();for(var $e=w(A(ge,8)),Pe=q,Le=0;Le<ue.length;Le+=8){var me=Math.min(8,ue.length-Le),we=parseInt(ue.substring(Le,Le+me),ge);if(me<8){var Se=w(A(ge,me));Pe=Pe.mul(Se).add(w(we))}else Pe=(Pe=Pe.mul($e)).add(w(we))}return Pe.unsigned=he,Pe}function s(ue,he){return typeof ue=="number"?w(ue,he):typeof ue=="string"?y(ue,he):z(ue.low,ue.high,typeof he=="boolean"?he:ue.unsigned)}c.fromString=y,c.fromValue=s;var e=4294967296,f=e*e,g=f/2,R=p(1<<24),q=p(0);c.ZERO=q;var H=p(0,!0);c.UZERO=H;var te=p(1);c.ONE=te;var re=p(1,!0);c.UONE=re;var ae=p(-1);c.NEG_ONE=ae;var ne=z(-1,2147483647,!1);c.MAX_VALUE=ne;var oe=z(-1,-1,!0);c.MAX_UNSIGNED_VALUE=oe;var le=z(0,-2147483648,!1);c.MIN_VALUE=le;var ce=c.prototype;ce.toInt=function(){return this.unsigned?this.low>>>0:this.low},ce.toNumber=function(){return this.unsigned?(this.high>>>0)*e+(this.low>>>0):this.high*e+(this.low>>>0)},ce.toString=function(ue){if((ue=ue||10)<2||36<ue)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(le)){var he=w(ue),ge=this.div(he),Oe=ge.mul(he).sub(this);return ge.toString(ue)+Oe.toInt().toString(ue)}return"-"+this.neg().toString(ue)}for(var $e=w(A(ue,6),this.unsigned),Pe=this,Le="";;){var me=Pe.div($e),we=(Pe.sub(me.mul($e)).toInt()>>>0).toString(ue);if((Pe=me).isZero())return we+Le;for(;we.length<6;)we="0"+we;Le=""+we+Le}},ce.getHighBits=function(){return this.high},ce.getHighBitsUnsigned=function(){return this.high>>>0},ce.getLowBits=function(){return this.low},ce.getLowBitsUnsigned=function(){return this.low>>>0},ce.getNumBitsAbs=function(){if(this.isNegative())return this.eq(le)?64:this.neg().getNumBitsAbs();for(var ue=this.high!=0?this.high:this.low,he=31;he>0&&(ue&1<<he)==0;he--);return this.high!=0?he+33:he+1},ce.isZero=function(){return this.high===0&&this.low===0},ce.eqz=ce.isZero,ce.isNegative=function(){return!this.unsigned&&this.high<0},ce.isPositive=function(){return this.unsigned||this.high>=0},ce.isOdd=function(){return(1&this.low)==1},ce.isEven=function(){return(1&this.low)==0},ce.equals=function(ue){return d(ue)||(ue=s(ue)),(this.unsigned===ue.unsigned||this.high>>>31!=1||ue.high>>>31!=1)&&this.high===ue.high&&this.low===ue.low},ce.eq=ce.equals,ce.notEquals=function(ue){return!this.eq(ue)},ce.neq=ce.notEquals,ce.ne=ce.notEquals,ce.lessThan=function(ue){return this.comp(ue)<0},ce.lt=ce.lessThan,ce.lessThanOrEqual=function(ue){return this.comp(ue)<=0},ce.lte=ce.lessThanOrEqual,ce.le=ce.lessThanOrEqual,ce.greaterThan=function(ue){return this.comp(ue)>0},ce.gt=ce.greaterThan,ce.greaterThanOrEqual=function(ue){return this.comp(ue)>=0},ce.gte=ce.greaterThanOrEqual,ce.ge=ce.greaterThanOrEqual,ce.compare=function(ue){if(d(ue)||(ue=s(ue)),this.eq(ue))return 0;var he=this.isNegative(),ge=ue.isNegative();return he&&!ge?-1:!he&&ge?1:this.unsigned?ue.high>>>0>this.high>>>0||ue.high===this.high&&ue.low>>>0>this.low>>>0?-1:1:this.sub(ue).isNegative()?-1:1},ce.comp=ce.compare,ce.negate=function(){return!this.unsigned&&this.eq(le)?le:this.not().add(te)},ce.neg=ce.negate,ce.add=function(ue){d(ue)||(ue=s(ue));var he=this.high>>>16,ge=65535&this.high,Oe=this.low>>>16,$e=65535&this.low,Pe=ue.high>>>16,Le=65535&ue.high,me=ue.low>>>16,we=0,Se=0,ye=0,ke=0;return ye+=(ke+=$e+(65535&ue.low))>>>16,Se+=(ye+=Oe+me)>>>16,we+=(Se+=ge+Le)>>>16,we+=he+Pe,z((ye&=65535)<<16|(ke&=65535),(we&=65535)<<16|(Se&=65535),this.unsigned)},ce.subtract=function(ue){return d(ue)||(ue=s(ue)),this.add(ue.neg())},ce.sub=ce.subtract,ce.multiply=function(ue){if(this.isZero())return q;if(d(ue)||(ue=s(ue)),n)return z(n.mul(this.low,this.high,ue.low,ue.high),n.get_high(),this.unsigned);if(ue.isZero())return q;if(this.eq(le))return ue.isOdd()?le:q;if(ue.eq(le))return this.isOdd()?le:q;if(this.isNegative())return ue.isNegative()?this.neg().mul(ue.neg()):this.neg().mul(ue).neg();if(ue.isNegative())return this.mul(ue.neg()).neg();if(this.lt(R)&&ue.lt(R))return w(this.toNumber()*ue.toNumber(),this.unsigned);var he=this.high>>>16,ge=65535&this.high,Oe=this.low>>>16,$e=65535&this.low,Pe=ue.high>>>16,Le=65535&ue.high,me=ue.low>>>16,we=65535&ue.low,Se=0,ye=0,ke=0,Ae=0;return ke+=(Ae+=$e*we)>>>16,ye+=(ke+=Oe*we)>>>16,ke&=65535,ye+=(ke+=$e*me)>>>16,Se+=(ye+=ge*we)>>>16,ye&=65535,Se+=(ye+=Oe*me)>>>16,ye&=65535,Se+=(ye+=$e*Le)>>>16,Se+=he*we+ge*me+Oe*Le+$e*Pe,z((ke&=65535)<<16|(Ae&=65535),(Se&=65535)<<16|(ye&=65535),this.unsigned)},ce.mul=ce.multiply,ce.divide=function(ue){if(d(ue)||(ue=s(ue)),ue.isZero())throw Error("division by zero");var he,ge,Oe;if(n)return this.unsigned||this.high!==-2147483648||ue.low!==-1||ue.high!==-1?z((this.unsigned?n.div_u:n.div_s)(this.low,this.high,ue.low,ue.high),n.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?H:q;if(this.unsigned){if(ue.unsigned||(ue=ue.toUnsigned()),ue.gt(this))return H;if(ue.gt(this.shru(1)))return re;Oe=H}else{if(this.eq(le))return ue.eq(te)||ue.eq(ae)?le:ue.eq(le)?te:(he=this.shr(1).div(ue).shl(1)).eq(q)?ue.isNegative()?te:ae:(ge=this.sub(ue.mul(he)),Oe=he.add(ge.div(ue)));if(ue.eq(le))return this.unsigned?H:q;if(this.isNegative())return ue.isNegative()?this.neg().div(ue.neg()):this.neg().div(ue).neg();if(ue.isNegative())return this.div(ue.neg()).neg();Oe=q}for(ge=this;ge.gte(ue);){he=Math.max(1,Math.floor(ge.toNumber()/ue.toNumber()));for(var $e=Math.ceil(Math.log(he)/Math.LN2),Pe=$e<=48?1:A(2,$e-48),Le=w(he),me=Le.mul(ue);me.isNegative()||me.gt(ge);)me=(Le=w(he-=Pe,this.unsigned)).mul(ue);Le.isZero()&&(Le=te),Oe=Oe.add(Le),ge=ge.sub(me)}return Oe},ce.div=ce.divide,ce.modulo=function(ue){return d(ue)||(ue=s(ue)),n?z((this.unsigned?n.rem_u:n.rem_s)(this.low,this.high,ue.low,ue.high),n.get_high(),this.unsigned):this.sub(this.div(ue).mul(ue))},ce.mod=ce.modulo,ce.rem=ce.modulo,ce.not=function(){return z(~this.low,~this.high,this.unsigned)},ce.and=function(ue){return d(ue)||(ue=s(ue)),z(this.low&ue.low,this.high&ue.high,this.unsigned)},ce.or=function(ue){return d(ue)||(ue=s(ue)),z(this.low|ue.low,this.high|ue.high,this.unsigned)},ce.xor=function(ue){return d(ue)||(ue=s(ue)),z(this.low^ue.low,this.high^ue.high,this.unsigned)},ce.shiftLeft=function(ue){return d(ue)&&(ue=ue.toInt()),(ue&=63)==0?this:ue<32?z(this.low<<ue,this.high<<ue|this.low>>>32-ue,this.unsigned):z(0,this.low<<ue-32,this.unsigned)},ce.shl=ce.shiftLeft,ce.shiftRight=function(ue){return d(ue)&&(ue=ue.toInt()),(ue&=63)==0?this:ue<32?z(this.low>>>ue|this.high<<32-ue,this.high>>ue,this.unsigned):z(this.high>>ue-32,this.high>=0?0:-1,this.unsigned)},ce.shr=ce.shiftRight,ce.shiftRightUnsigned=function(ue){if(d(ue)&&(ue=ue.toInt()),(ue&=63)==0)return this;var he=this.high;return ue<32?z(this.low>>>ue|he<<32-ue,he>>>ue,this.unsigned):z(ue===32?he:he>>>ue-32,0,this.unsigned)},ce.shru=ce.shiftRightUnsigned,ce.shr_u=ce.shiftRightUnsigned,ce.toSigned=function(){return this.unsigned?z(this.low,this.high,!1):this},ce.toUnsigned=function(){return this.unsigned?this:z(this.low,this.high,!0)},ce.toBytes=function(ue){return ue?this.toBytesLE():this.toBytesBE()},ce.toBytesLE=function(){var ue=this.high,he=this.low;return[255&he,he>>>8&255,he>>>16&255,he>>>24,255&ue,ue>>>8&255,ue>>>16&255,ue>>>24]},ce.toBytesBE=function(){var ue=this.high,he=this.low;return[ue>>>24,ue>>>16&255,ue>>>8&255,255&ue,he>>>24,he>>>16&255,he>>>8&255,255&he]},c.fromBytes=function(ue,he,ge){return ge?c.fromBytesLE(ue,he):c.fromBytesBE(ue,he)},c.fromBytesLE=function(ue,he){return new c(ue[0]|ue[1]<<8|ue[2]<<16|ue[3]<<24,ue[4]|ue[5]<<8|ue[6]<<16|ue[7]<<24,he)},c.fromBytesBE=function(ue,he){return new c(ue[4]<<24|ue[5]<<16|ue[6]<<8|ue[7],ue[0]<<24|ue[1]<<16|ue[2]<<8|ue[3],he)}},1446:(o,n,c)=>{var d,h,m,p=c(2100),w=p.Reader,z=p.Writer,A=p.util,y=p.roots.default||(p.roots.default={});y.onnx=((m={}).Version=(d={},(h=Object.create(d))[d[0]="_START_VERSION"]=0,h[d[1]="IR_VERSION_2017_10_10"]=1,h[d[2]="IR_VERSION_2017_10_30"]=2,h[d[3]="IR_VERSION_2017_11_3"]=3,h[d[4]="IR_VERSION_2019_1_22"]=4,h[d[5]="IR_VERSION"]=5,h),m.AttributeProto=(function(){function s(e){if(this.floats=[],this.ints=[],this.strings=[],this.tensors=[],this.graphs=[],e)for(var f=Object.keys(e),g=0;g<f.length;++g)e[f[g]]!=null&&(this[f[g]]=e[f[g]])}return s.prototype.name="",s.prototype.refAttrName="",s.prototype.docString="",s.prototype.type=0,s.prototype.f=0,s.prototype.i=A.Long?A.Long.fromBits(0,0,!1):0,s.prototype.s=A.newBuffer([]),s.prototype.t=null,s.prototype.g=null,s.prototype.floats=A.emptyArray,s.prototype.ints=A.emptyArray,s.prototype.strings=A.emptyArray,s.prototype.tensors=A.emptyArray,s.prototype.graphs=A.emptyArray,s.create=function(e){return new s(e)},s.encode=function(e,f){if(f||(f=z.create()),e.name!=null&&e.hasOwnProperty("name")&&f.uint32(10).string(e.name),e.f!=null&&e.hasOwnProperty("f")&&f.uint32(21).float(e.f),e.i!=null&&e.hasOwnProperty("i")&&f.uint32(24).int64(e.i),e.s!=null&&e.hasOwnProperty("s")&&f.uint32(34).bytes(e.s),e.t!=null&&e.hasOwnProperty("t")&&y.onnx.TensorProto.encode(e.t,f.uint32(42).fork()).ldelim(),e.g!=null&&e.hasOwnProperty("g")&&y.onnx.GraphProto.encode(e.g,f.uint32(50).fork()).ldelim(),e.floats!=null&&e.floats.length){f.uint32(58).fork();for(var g=0;g<e.floats.length;++g)f.float(e.floats[g]);f.ldelim()}if(e.ints!=null&&e.ints.length){for(f.uint32(66).fork(),g=0;g<e.ints.length;++g)f.int64(e.ints[g]);f.ldelim()}if(e.strings!=null&&e.strings.length)for(g=0;g<e.strings.length;++g)f.uint32(74).bytes(e.strings[g]);if(e.tensors!=null&&e.tensors.length)for(g=0;g<e.tensors.length;++g)y.onnx.TensorProto.encode(e.tensors[g],f.uint32(82).fork()).ldelim();if(e.graphs!=null&&e.graphs.length)for(g=0;g<e.graphs.length;++g)y.onnx.GraphProto.encode(e.graphs[g],f.uint32(90).fork()).ldelim();return e.docString!=null&&e.hasOwnProperty("docString")&&f.uint32(106).string(e.docString),e.type!=null&&e.hasOwnProperty("type")&&f.uint32(160).int32(e.type),e.refAttrName!=null&&e.hasOwnProperty("refAttrName")&&f.uint32(170).string(e.refAttrName),f},s.encodeDelimited=function(e,f){return this.encode(e,f).ldelim()},s.decode=function(e,f){e instanceof w||(e=w.create(e));for(var g=f===void 0?e.len:e.pos+f,R=new y.onnx.AttributeProto;e.pos<g;){var q=e.uint32();switch(q>>>3){case 1:R.name=e.string();break;case 21:R.refAttrName=e.string();break;case 13:R.docString=e.string();break;case 20:R.type=e.int32();break;case 2:R.f=e.float();break;case 3:R.i=e.int64();break;case 4:R.s=e.bytes();break;case 5:R.t=y.onnx.TensorProto.decode(e,e.uint32());break;case 6:R.g=y.onnx.GraphProto.decode(e,e.uint32());break;
85case 7:if(R.floats&&R.floats.length||(R.floats=[]),(7&q)==2)for(var H=e.uint32()+e.pos;e.pos<H;)R.floats.push(e.float());else R.floats.push(e.float());break;case 8:if(R.ints&&R.ints.length||(R.ints=[]),(7&q)==2)for(H=e.uint32()+e.pos;e.pos<H;)R.ints.push(e.int64());else R.ints.push(e.int64());break;case 9:R.strings&&R.strings.length||(R.strings=[]),R.strings.push(e.bytes());break;case 10:R.tensors&&R.tensors.length||(R.tensors=[]),R.tensors.push(y.onnx.TensorProto.decode(e,e.uint32()));break;case 11:R.graphs&&R.graphs.length||(R.graphs=[]),R.graphs.push(y.onnx.GraphProto.decode(e,e.uint32()));break;default:e.skipType(7&q)}}return R},s.decodeDelimited=function(e){return e instanceof w||(e=new w(e)),this.decode(e,e.uint32())},s.verify=function(e){if(typeof e!="object"||e===null)return"object expected";if(e.name!=null&&e.hasOwnProperty("name")&&!A.isString(e.name))return"name: string expected";if(e.refAttrName!=null&&e.hasOwnProperty("refAttrName")&&!A.isString(e.refAttrName))return"refAttrName: string expected";if(e.docString!=null&&e.hasOwnProperty("docString")&&!A.isString(e.docString))return"docString: string expected";if(e.type!=null&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:}if(e.f!=null&&e.hasOwnProperty("f")&&typeof e.f!="number")return"f: number expected";if(e.i!=null&&e.hasOwnProperty("i")&&!(A.isInteger(e.i)||e.i&&A.isInteger(e.i.low)&&A.isInteger(e.i.high)))return"i: integer|Long expected";if(e.s!=null&&e.hasOwnProperty("s")&&!(e.s&&typeof e.s.length=="number"||A.isString(e.s)))return"s: buffer expected";if(e.t!=null&&e.hasOwnProperty("t")&&(g=y.onnx.TensorProto.verify(e.t)))return"t."+g;if(e.g!=null&&e.hasOwnProperty("g")&&(g=y.onnx.GraphProto.verify(e.g)))return"g."+g;if(e.floats!=null&&e.hasOwnProperty("floats")){if(!Array.isArray(e.floats))return"floats: array expected";for(var f=0;f<e.floats.length;++f)if(typeof e.floats[f]!="number")return"floats: number[] expected"}if(e.ints!=null&&e.hasOwnProperty("ints")){if(!Array.isArray(e.ints))return"ints: array expected";for(f=0;f<e.ints.length;++f)if(!(A.isInteger(e.ints[f])||e.ints[f]&&A.isInteger(e.ints[f].low)&&A.isInteger(e.ints[f].high)))return"ints: integer|Long[] expected"}if(e.strings!=null&&e.hasOwnProperty("strings")){if(!Array.isArray(e.strings))return"strings: array expected";for(f=0;f<e.strings.length;++f)if(!(e.strings[f]&&typeof e.strings[f].length=="number"||A.isString(e.strings[f])))return"strings: buffer[] expected"}if(e.tensors!=null&&e.hasOwnProperty("tensors")){if(!Array.isArray(e.tensors))return"tensors: array expected";for(f=0;f<e.tensors.length;++f)if(g=y.onnx.TensorProto.verify(e.tensors[f]))return"tensors."+g}if(e.graphs!=null&&e.hasOwnProperty("graphs")){if(!Array.isArray(e.graphs))return"graphs: array expected";for(f=0;f<e.graphs.length;++f){var g;if(g=y.onnx.GraphProto.verify(e.graphs[f]))return"graphs."+g}}return null},s.fromObject=function(e){if(e instanceof y.onnx.AttributeProto)return e;var f=new y.onnx.AttributeProto;switch(e.name!=null&&(f.name=String(e.name)),e.refAttrName!=null&&(f.refAttrName=String(e.refAttrName)),e.docString!=null&&(f.docString=String(e.docString)),e.type){case"UNDEFINED":case 0:f.type=0;break;case"FLOAT":case 1:f.type=1;break;case"INT":case 2:f.type=2;break;case"STRING":case 3:f.type=3;break;case"TENSOR":case 4:f.type=4;break;case"GRAPH":case 5:f.type=5;break;case"FLOATS":case 6:f.type=6;break;case"INTS":case 7:f.type=7;break;case"STRINGS":case 8:f.type=8;break;case"TENSORS":case 9:f.type=9;break;case"GRAPHS":case 10:f.type=10}if(e.f!=null&&(f.f=Number(e.f)),e.i!=null&&(A.Long?(f.i=A.Long.fromValue(e.i)).unsigned=!1:typeof e.i=="string"?f.i=parseInt(e.i,10):typeof e.i=="number"?f.i=e.i:typeof e.i=="object"&&(f.i=new A.LongBits(e.i.low>>>0,e.i.high>>>0).toNumber())),e.s!=null&&(typeof e.s=="string"?A.base64.decode(e.s,f.s=A.newBuffer(A.base64.length(e.s)),0):e.s.length&&(f.s=e.s)),e.t!=null){if(typeof e.t!="object")throw TypeError(".onnx.AttributeProto.t: object expected");f.t=y.onnx.TensorProto.fromObject(e.t)}if(e.g!=null){if(typeof e.g!="object")throw TypeError(".onnx.AttributeProto.g: object expected");f.g=y.onnx.GraphProto.fromObject(e.g)}if(e.floats){if(!Array.isArray(e.floats))throw TypeError(".onnx.AttributeProto.floats: array expected");f.floats=[];for(var g=0;g<e.floats.length;++g)f.floats[g]=Number(e.floats[g])}if(e.ints){if(!Array.isArray(e.ints))throw TypeError(".onnx.AttributeProto.ints: array expected");for(f.ints=[],g=0;g<e.ints.length;++g)A.Long?(f.ints[g]=A.Long.fromValue(e.ints[g])).unsigned=!1:typeof e.ints[g]=="str
85ing"?f.ints[g]=parseInt(e.ints[g],10):typeof e.ints[g]=="number"?f.ints[g]=e.ints[g]:typeof e.ints[g]=="object"&&(f.ints[g]=new A.LongBits(e.ints[g].low>>>0,e.ints[g].high>>>0).toNumber())}if(e.strings){if(!Array.isArray(e.strings))throw TypeError(".onnx.AttributeProto.strings: array expected");for(f.strings=[],g=0;g<e.strings.length;++g)typeof e.strings[g]=="string"?A.base64.decode(e.strings[g],f.strings[g]=A.newBuffer(A.base64.length(e.strings[g])),0):e.strings[g].length&&(f.strings[g]=e.strings[g])}if(e.tensors){if(!Array.isArray(e.tensors))throw TypeError(".onnx.AttributeProto.tensors: array expected");for(f.tensors=[],g=0;g<e.tensors.length;++g){if(typeof e.tensors[g]!="object")throw TypeError(".onnx.AttributeProto.tensors: object expected");f.tensors[g]=y.onnx.TensorProto.fromObject(e.tensors[g])}}if(e.graphs){if(!Array.isArray(e.graphs))throw TypeError(".onnx.AttributeProto.graphs: array expected");for(f.graphs=[],g=0;g<e.graphs.length;++g){if(typeof e.graphs[g]!="object")throw TypeError(".onnx.AttributeProto.graphs: object expected");f.graphs[g]=y.onnx.GraphProto.fromObject(e.graphs[g])}}return f},s.toObject=function(e,f){f||(f={});var g={};if((f.arrays||f.defaults)&&(g.floats=[],g.ints=[],g.strings=[],g.tensors=[],g.graphs=[]),f.defaults){if(g.name="",g.f=0,A.Long){var R=new A.Long(0,0,!1);g.i=f.longs===String?R.toString():f.longs===Number?R.toNumber():R}else g.i=f.longs===String?"0":0;f.bytes===String?g.s="":(g.s=[],f.bytes!==Array&&(g.s=A.newBuffer(g.s))),g.t=null,g.g=null,g.docString="",g.type=f.enums===String?"UNDEFINED":0,g.refAttrName=""}if(e.name!=null&&e.hasOwnProperty("name")&&(g.name=e.name),e.f!=null&&e.hasOwnProperty("f")&&(g.f=f.json&&!isFinite(e.f)?String(e.f):e.f),e.i!=null&&e.hasOwnProperty("i")&&(typeof e.i=="number"?g.i=f.longs===String?String(e.i):e.i:g.i=f.longs===String?A.Long.prototype.toString.call(e.i):f.longs===Number?new A.LongBits(e.i.low>>>0,e.i.high>>>0).toNumber():e.i),e.s!=null&&e.hasOwnProperty("s")&&(g.s=f.bytes===String?A.base64.encode(e.s,0,e.s.length):f.bytes===Array?Array.prototype.slice.call(e.s):e.s),e.t!=null&&e.hasOwnProperty("t")&&(g.t=y.onnx.TensorProto.toObject(e.t,f)),e.g!=null&&e.hasOwnProperty("g")&&(g.g=y.onnx.GraphProto.toObject(e.g,f)),e.floats&&e.floats.length){g.floats=[];for(var q=0;q<e.floats.length;++q)g.floats[q]=f.json&&!isFinite(e.floats[q])?String(e.floats[q]):e.floats[q]}if(e.ints&&e.ints.length)for(g.ints=[],q=0;q<e.ints.length;++q)typeof e.ints[q]=="number"?g.ints[q]=f.longs===String?String(e.ints[q]):e.ints[q]:g.ints[q]=f.longs===String?A.Long.prototype.toString.call(e.ints[q]):f.longs===Number?new A.LongBits(e.ints[q].low>>>0,e.ints[q].high>>>0).toNumber():e.ints[q];if(e.strings&&e.strings.length)for(g.strings=[],q=0;q<e.strings.length;++q)g.strings[q]=f.bytes===String?A.base64.encode(e.strings[q],0,e.strings[q].length):f.bytes===Array?Array.prototype.slice.call(e.strings[q]):e.strings[q];if(e.tensors&&e.tensors.length)for(g.tensors=[],q=0;q<e.tensors.length;++q)g.tensors[q]=y.onnx.TensorProto.toObject(e.tensors[q],f);if(e.graphs&&e.graphs.length)for(g.graphs=[],q=0;q<e.graphs.length;++q)g.graphs[q]=y.onnx.GraphProto.toObject(e.graphs[q],f);return e.docString!=null&&e.hasOwnProperty("docString")&&(g.docString=e.docString),e.type!=null&&e.hasOwnProperty("type")&&(g.type=f.enums===String?y.onnx.AttributeProto.AttributeType[e.type]:e.type),e.refAttrName!=null&&e.hasOwnProperty("refAttrName")&&(g.refAttrName=e.refAttrName),g},s.prototype.toJSON=function(){return this.constructor.toObject(this,p.util.toJSONOptions)},s.AttributeType=(function(){var e={},f=Object.create(e);return f[e[0]="UNDEFINED"]=0,f[e[1]="FLOAT"]=1,f[e[2]="INT"]=2,f[e[3]="STRING"]=3,f[e[4]="TENSOR"]=4,f[e[5]="GRAPH"]=5,f[e[6]="FLOATS"]=6,f[e[7]="INTS"]=7,f[e[8]="STRINGS"]=8,f[e[9]="TENSORS"]=9,f[e[10]="GRAPHS"]=10,f})(),s})(),m.ValueInfoProto=(function(){function s(e){if(e)for(var f=Object.keys(e),g=0;g<f.length;++g)e[f[g]]!=null&&(this[f[g]]=e[f[g]])}return s.prototype.name="",s.prototype.type=null,s.prototype.docString="",s.create=function(e){return new s(e)},s.encode=function(e,f){return f||(f=z.create()),e.name!=null&&e.hasOwnProperty("name")&&f.uint32(10).string(e.name),e.type!=null&&e.hasOwnProperty("type")&&y.onnx.TypeProto.encode(e.type,f.uint32(18).fork()).ldelim(),e.docString!=null&&e.hasOwnProperty("docString")&&f.uint32(26).string(e.docString),f},s.encodeDelimited=function(e,f){return this.encode(e,f).ldelim()},s.decode=function(e,f){e instanceof w||(e=w.create(e));for(var g=f===void 0?e.len:e.pos+f,R=new y.onnx.ValueInfoProto;e.pos<g;){var q=e.uint32();switch(q>>>3){case 1:R.name=e.string();break;case 2:R.type=y.onnx.TypeProto.decode(e,e.uint32());break;case 3:R.docString=e.string();break;default:e.skipType(7&q)}}return R},s.decodeDelimited=function(e){return e instanceof w||(e=new w(e)),this.decode(e,e.uint32())},s.verify=function(e){if(typeof e!="object"||e===null)return"object expected";if(e.name!=null&&e.hasOwnProperty("name")&&!A.isString(e.name))return"name: string expected";if(e.type!=null&&e.hasOwnProperty("type")){var f=y.onnx.TypeProto.verify(e.type);if(f)return"type."+f}return e.docString!=null&&e.hasOwnProperty("docString")&&!A.isString(e.docString)?"docString: string expected":null},s.fromObject=function(e){if(e instanceof y.onnx.ValueInfoProto)return e;var f=new y.onnx.ValueInfoProto;if(e.name!=null&&(f.name=String(e.name)),e.type!=null){if(typeof e.type!="object")throw TypeError(".onnx.ValueInfoProto.type: object expected");f.type=y.onnx.TypeProto.fromObject(e.type)}return e.docString!=null&&(f.docString=String(e.docString)),f},s.toObject=function(e,f){f||(f={});var g={};return f.defaults&&(g.name="",g.type=null,g.docString=""),e.name!=null&&e.hasOwnProperty("name")&&(g.
vendor: 4,394 bytes, line 85
85name=e.name),e.type!=null&&e.hasOwnProperty("type")&&(g.type=y.onnx.TypeProto.toObject(e.type,f)),e.docString!=null&&e.hasOwnProperty("docString")&&(g.docString=e.docString),g},s.prototype.toJSON=function(){return this.constructor.toObject(this,p.util.toJSONOptions)},s})(),m.NodeProto=(function(){function s(e){if(this.input=[],this.output=[],this.attribute=[],e)for(var f=Object.keys(e),g=0;g<f.length;++g)e[f[g]]!=null&&(this[f[g]]=e[f[g]])}return s.prototype.input=A.emptyArray,s.prototype.output=A.emptyArray,s.prototype.name="",s.prototype.opType="",s.prototype.domain="",s.prototype.attribute=A.emptyArray,s.prototype.docString="",s.create=function(e){return new s(e)},s.encode=function(e,f){if(f||(f=z.create()),e.input!=null&&e.input.length)for(var g=0;g<e.input.length;++g)f.uint32(10).string(e.input[g]);if(e.output!=null&&e.output.length)for(g=0;g<e.output.length;++g)f.uint32(18).string(e.output[g]);if(e.name!=null&&e.hasOwnProperty("name")&&f.uint32(26).string(e.name),e.opType!=null&&e.hasOwnProperty("opType")&&f.uint32(34).string(e.opType),e.attribute!=null&&e.attribute.length)for(g=0;g<e.attribute.length;++g)y.onnx.AttributeProto.encode(e.attribute[g],f.uint32(42).fork()).ldelim();return e.docString!=null&&e.hasOwnProperty("docString")&&f.uint32(50).string(e.docString),e.domain!=null&&e.hasOwnProperty("domain")&&f.uint32(58).string(e.domain),f},s.encodeDelimited=function(e,f){return this.encode(e,f).ldelim()},s.decode=function(e,f){e instanceof w||(e=w.create(e));for(var g=f===void 0?e.len:e.pos+f,R=new y.onnx.NodeProto;e.pos<g;){var q=e.uint32();switch(q>>>3){case 1:R.input&&R.input.length||(R.input=[]),R.input.push(e.string());break;case 2:R.output&&R.output.length||(R.output=[]),R.output.push(e.string());break;case 3:R.name=e.string();break;case 4:R.opType=e.string();break;case 7:R.domain=e.string();break;case 5:R.attribute&&R.attribute.length||(R.attribute=[]),R.attribute.push(y.onnx.AttributeProto.decode(e,e.uint32()));break;case 6:R.docString=e.string();break;default:e.skipType(7&q)}}return R},s.decodeDelimited=function(e){return e instanceof w||(e=new w(e)),this.decode(e,e.uint32())},s.verify=function(e){if(typeof e!="object"||e===null)return"object expected";if(e.input!=null&&e.hasOwnProperty("input")){if(!Array.isArray(e.input))return"input: array expected";for(var f=0;f<e.input.length;++f)if(!A.isString(e.input[f]))return"input: string[] expected"}if(e.output!=null&&e.hasOwnProperty("output")){if(!Array.isArray(e.output))return"output: array expected";for(f=0;f<e.output.length;++f)if(!A.isString(e.output[f]))return"output: string[] expected"}if(e.name!=null&&e.hasOwnProperty("name")&&!A.isString(e.name))return"name: string expected";if(e.opType!=null&&e.hasOwnProperty("opType")&&!A.isString(e.opType))return"opType: string expected";if(e.domain!=null&&e.hasOwnProperty("domain")&&!A.isString(e.domain))return"domain: string expected";if(e.attribute!=null&&e.hasOwnProperty("attribute")){if(!Array.isArray(e.attribute))return"attribute: array expected";for(f=0;f<e.attribute.length;++f){var g=y.onnx.AttributeProto.verify(e.attribute[f]);if(g)return"attribute."+g}}return e.docString!=null&&e.hasOwnProperty("docString")&&!A.isString(e.docString)?"docString: string expected":null},s.fromObject=function(e){if(e instanceof y.onnx.NodeProto)return e;var f=new y.onnx.NodeProto;if(e.input){if(!Array.isArray(e.input))throw TypeError(".onnx.NodeProto.input: array expected");f.input=[];for(var g=0;g<e.input.length;++g)f.input[g]=String(e.input[g])}if(e.output){if(!Array.isArray(e.output))throw TypeError(".onnx.NodeProto.output: array expected");for(f.output=[],g=0;g<e.output.length;++g)f.output[g]=String(e.output[g])}if(e.name!=null&&(f.name=String(e.name)),e.opType!=null&&(f.opType=String(e.opType)),e.domain!=null&&(f.domain=String(e.domain)),e.attribute){if(!Array.isArray(e.attribute))throw TypeError(".onnx.NodeProto.attribute: array expected");for(f.attribute=[],g=0;g<e.attribute.length;++g){if(typeof e.attribute[g]!="object")throw TypeError(".onnx.NodeProto.attribute: object expected");f.attribute[g]=y.onnx.AttributeProto.fromObject(e.attribute[g])}}return e.docString!=null&&(f.docString=String(e.docString)),f},s.toObject=function(e,f){f||(f={});var g={};if((f.arrays||f.defaults)&&(g.input=[],g.output=[],g.attribute=[]),f.defaults&&(g.name="",g.opType="",g.docString="",g.domain=""),e.input&&e.input.length){g.input
85=[];for(var R=0;R<e.input.length;++R)g.input[R]=e.input[R]}if(e.output&&e.output.length)for(g.output=[],R=0;R<e.output.length;++R)g.output[R]=e.output[R];if(e.name!=null&&e.hasOwnProperty("name")&&(g.name=e.name),e.opType!=null&&e.hasOwnProperty("opType")&&(g.opType=e.opType),e.attribute&&e.attribute.length)for(g.attribute=[],R=0;R<e.attribute.length;++R)g.attribute[R]=y.onnx.AttributeProto.toObject(e.attribute[R],f);return e.docString!=null&&e.hasOwnProperty("docString")&&(g.docString=e.docString),e.domain!=null&&e.hasOwnProperty("domain")&&(g.domain=e.domain),g},s.prototype.toJSON=function(){return this.constructor.toObject(this,p.util.toJSONOptions)},s})(),m.ModelProto=(function(){function s(e){if(this.opsetImport=[],this.metadataProps=[],e)for(var f=Object.keys(e),g=0;g<f.length;++g)e[f[g]]!=null&&(this[f[g]]=e[f[g]])}return s.prototype.irVersion=A.Long?A.Long.fromBits(0,0,!1):0,s.prototype.opsetImport=A.emptyArray,s.prototype.producerName="",s.prototype.producerVersion="",s.prototype.domain="",s.prototype.modelVersion=A.Long?A.Long.fromBits(0,0,!1):0,s.prototype.docString="",s.prototype.graph=null,s.prototype.metadataProps=A.emptyArray,s.create=function(e){return new s(e)},s.encode=function(e,f){if(f||(f=z.create()),e.irVersion!=null&&e.hasOwnProperty("irVersion")&&f.uint32(8).int64(e.irVersion),e.producerName!=null&&e.hasOwnProperty("producerName")&&f.uint32(18).string(e.producerName),e.producerVersion!=null&&e.hasOwnProperty("producerVersion")&&f.uint32(26).string(e.producerVersion),e.domain!=null&&e.hasOwnProperty("domain")&&f.uint32(34).string(e.domain),e.modelVersion!=null&&e.hasOwnProperty("modelVersion")&&f.uint32(40).int64(e.modelVersion),e.docString!=null&&e.hasOwnProperty("docString")&&f.uint32(50).string(e.docString),e.graph!=null&&e.hasOwnProperty("graph")&&y.onnx.GraphProto.encode(e.graph,f.uint32(58).fork()).ldelim(),e.opsetImport!=null&&e.opsetImport.length)for(var g=0;g<e.opsetImport.length;++g)y.onnx.OperatorSetIdProto.encode(e.opsetImport[g],f.uint32(66).fork()).ldelim();if(e.metadataProps!=null&&e.metadataProps.length)for(g=0;g<e.metadataProps.length;++g)y.onnx.StringStringEntryProto.encode(e.metadataProps[g],f.uint32(114).fork()).ldelim();return f},s.encodeDelimited=function(e,f){return this.encode(e,f).ldelim()},s.decode=function(e,f){e instanceof w||(e=w.create(e));for(var g=f===void 0?e.len:e.pos+f,R=new y.onnx.ModelProto;e.pos<g;){var q=e.uint32();switch(q>>>3){case 1:R.irVersion=e.int64();break;case 8:R.opsetImport&&R.opsetImport.length||(R.opsetImport=[]),R.opsetImport.push(y.onnx.OperatorSetIdProto.decode(e,e.uint32()));break;case 2:R.producerName=e.string();break;case 3:R.producerVersion=e.string();break;case 4:R.domain=e.string();break;case 5:R.modelVersion=e.int64();break;case 6:R.docString=e.string();break;case 7:R.graph=y.onnx.GraphProto.decode(e,e.uint32());break;case 14:R.metadataProps&&R.metadataProps.length||(R.metadataProps=[]),R.metadataProps.push(y.onnx.StringStringEntryProto.decode(e,e.uint32()));break;default:e.skipType(7&q)}}return R},s.decodeDelimited=function(e){return e instanceof w||(e=new w(e)),this.decode(e,e.uint32())},s.verify=function(e){if(typeof e!="object"||e===null)return"object expected";if(e.irVersion!=null&&e.hasOwnProperty("irVersion")&&!(A.isInteger(e.irVersion)||e.irVersion&&A.isInteger(e.irVersion.low)&&A.isInteger(e.irVersion.high)))return"irVersion: integer|Long expected";if(e.opsetImport!=null&&e.hasOwnProperty("opsetImport")){if(!Array.isArray(e.opsetImport))return"opsetImport: array expected";for(var f=0;f<e.opsetImport.length;++f)if(g=y.onnx.OperatorSetIdProto.verify(e.opsetImport[f]))return"opsetImport."+g}if(e.producerName!=null&&e.hasOwnProperty("producerName")&&!A.isString(e.producerName))return"producerName: string expected";if(e.producerVersion!=null&&e.hasOwnProperty("producerVersion")&&!A.isString(e.producerVersion))return"producerVersion: string expected";if(e.domain!=null&&e.hasOwnProperty("domain")&&!A.isString(e.domain))return"domain: string expected";if(e.modelVersion!=null&&e.hasOwnProperty("modelVersion")&&!(A.isInteger(e.modelVersion)||e.modelVersion&&A.isInteger(e.modelVersion.low)&&A.
vendor: 11,233 bytes, line 85
85isInteger(e.modelVersion.high)))return"modelVersion: integer|Long expected";if(e.docString!=null&&e.hasOwnProperty("docString")&&!A.isString(e.docString))return"docString: string expected";if(e.graph!=null&&e.hasOwnProperty("graph")&&(g=y.onnx.GraphProto.verify(e.graph)))return"graph."+g;if(e.metadataProps!=null&&e.hasOwnProperty("metadataProps")){if(!Array.isArray(e.metadataProps))return"metadataProps: array expected";for(f=0;f<e.metadataProps.length;++f){var g;if(g=y.onnx.StringStringEntryProto.verify(e.metadataProps[f]))return"metadataProps."+g}}return null},s.fromObject=function(e){if(e instanceof y.onnx.ModelProto)return e;var f=new y.onnx.ModelProto;if(e.irVersion!=null&&(A.Long?(f.irVersion=A.Long.fromValue(e.irVersion)).unsigned=!1:typeof e.irVersion=="string"?f.irVersion=parseInt(e.irVersion,10):typeof e.irVersion=="number"?f.irVersion=e.irVersion:typeof e.irVersion=="object"&&(f.irVersion=new A.LongBits(e.irVersion.low>>>0,e.irVersion.high>>>0).toNumber())),e.opsetImport){if(!Array.isArray(e.opsetImport))throw TypeError(".onnx.ModelProto.opsetImport: array expected");f.opsetImport=[];for(var g=0;g<e.opsetImport.length;++g){if(typeof e.opsetImport[g]!="object")throw TypeError(".onnx.ModelProto.opsetImport: object expected");f.opsetImport[g]=y.onnx.OperatorSetIdProto.fromObject(e.opsetImport[g])}}if(e.producerName!=null&&(f.producerName=String(e.producerName)),e.producerVersion!=null&&(f.producerVersion=String(e.producerVersion)),e.domain!=null&&(f.domain=String(e.domain)),e.modelVersion!=null&&(A.Long?(f.modelVersion=A.Long.fromValue(e.modelVersion)).unsigned=!1:typeof e.modelVersion=="string"?f.modelVersion=parseInt(e.modelVersion,10):typeof e.modelVersion=="number"?f.modelVersion=e.modelVersion:typeof e.modelVersion=="object"&&(f.modelVersion=new A.LongBits(e.modelVersion.low>>>0,e.modelVersion.high>>>0).toNumber())),e.docString!=null&&(f.docString=String(e.docString)),e.graph!=null){if(typeof e.graph!="object")throw TypeError(".onnx.ModelProto.graph: object expected");f.graph=y.onnx.GraphProto.fromObject(e.graph)}if(e.metadataProps){if(!Array.isArray(e.metadataProps))throw TypeError(".onnx.ModelProto.metadataProps: array expected");for(f.metadataProps=[],g=0;g<e.metadataProps.length;++g){if(typeof e.metadataProps[g]!="object")throw TypeError(".onnx.ModelProto.metadataProps: object expected");f.metadataProps[g]=y.onnx.StringStringEntryProto.fromObject(e.metadataProps[g])}}return f},s.toObject=function(e,f){f||(f={});var g={};if((f.arrays||f.defaults)&&(g.opsetImport=[],g.metadataProps=[]),f.defaults){if(A.Long){var R=new A.Long(0,0,!1);g.irVersion=f.longs===String?R.toString():f.longs===Number?R.toNumber():R}else g.irVersion=f.longs===String?"0":0;g.producerName="",g.producerVersion="",g.domain="",A.Long?(R=new A.Long(0,0,!1),g.modelVersion=f.longs===String?R.toString():f.longs===Number?R.toNumber():R):g.modelVersion=f.longs===String?"0":0,g.docString="",g.graph=null}if(e.irVersion!=null&&e.hasOwnProperty("irVersion")&&(typeof e.irVersion=="number"?g.irVersion=f.longs===String?String(e.irVersion):e.irVersion:g.irVersion=f.longs===String?A.Long.prototype.toString.call(e.irVersion):f.longs===Number?new A.LongBits(e.irVersion.low>>>0,e.irVersion.high>>>0).toNumber():e.irVersion),e.producerName!=null&&e.hasOwnProperty("producerName")&&(g.producerName=e.producerName),e.producerVersion!=null&&e.hasOwnProperty("producerVersion")&&(g.producerVersion=e.producerVersion),e.domain!=null&&e.hasOwnProperty("domain")&&(g.domain=e.domain),e.modelVersion!=null&&e.hasOwnProperty("modelVersion")&&(typeof e.modelVersion=="number"?g.modelVersion=f.longs===String?String(e.modelVersion):e.modelVersion:g.modelVersion=f.longs===String?A.Long.prototype.toString.call(e.modelVersion):f.longs===Number?new A.LongBits(e.modelVersion.low>>>0,e.modelVersion.high>>>0).toNumber():e.modelVersion),e.docString!=null&&e.hasOwnProperty("docString")&&(g.docString=e.docString),e.graph!=null&&e.hasOwnProperty("graph")&&(g.graph=y.onnx.GraphProto.toObject(e.graph,f)),e.opsetImport&&e.opsetImport.length){g.opsetImport=[];for(var q=0;q<e.opsetImport.length;++q)g.opsetImport[q]=y.onnx.OperatorSetIdProto.toObject(e.opsetImport[q],f)}if(e.metadataProps&&e.metadataProps.length)for(g.metadataProps=[],q=0;q<e.metadataProps.length;++q)g.metadataProps[q]=y.onnx.StringStringEntryProto.toObject(e.metadataProps[q],f);return g},s.prototype.toJSON=function(){return this.constructor.toObject(this,p.util.toJSONOptions)},s})(),m.StringStringEntryProto=(function(){function s(e){if(e)for(var f=Object.keys(e),g=0;g<f.length;++g)e[f[g]]!=null&&(this[f[g]]=e[f[g]])}return s.prototype.key="",s.prototype.value="",s.create=function(e){return new s(e)},s.encode=function(e,f){return f||(f=z.create()),e.key!=null&&e.hasOwnProperty("key")&&f.uint32(10).string(e.key),e.value!=null&&e.hasOwnProperty("value")&&f.uint32(18).string(e.value),f},s.encodeDelimited=function(e,f){return this.encode(e,f).ldelim()},s.decode=function(e,f){e instanceof w||(e=w.create(e));for(var g=f===void 0?e.len:e.pos+f,R=new y.onnx.StringStringEntryProto;e.pos<g;){var q=e.uint32();switch(q>>>3){case 1:R.key=e.string();break;case 2:R.value=e.string();break;default:e.skipType(7&q)}}return R},s.decodeDelimited=function(e){return e instanceof w||(e=new w(e)),this.decode(e,e.uint32())},s.verify=function(e){return typeof e!="object"||e===null?"object expected":e.key!=null&&e.hasOwnProperty("key")&&!A.isString(e.key)?"key: string expected":e.value!=null&&e.hasOwnProperty("value")&&!A.isString(e.value)?"value: string expected":null},s.fromObject=function(e){if(e instanceof y.onnx.StringStringEntryProto)return e;var f=new y.onnx.StringStringEntryProto;return e.key!=null&&(f.key=String(e.key)),e.value!=null&&(f.value=String(e.value)),f},s.toObject=function(e,f){f||(f={});var g={};return f.defaults&&(g.key="",g.value=""),e.key!=null&&e.hasOwnProperty("key")&&(g.key=e.key),e.value!=null&&e.hasOwnProperty("value")&&(g.value=e.value),g},s.prototype.toJSON=function(){return this.constructor.toObject(this,p.util.toJSONOptions)},s})(),m.TensorAnnotation=(function(){function s(e){if(this.quantParameterTensorNames=[],e)for(var f=Object.keys(e),g=0;g<f.length;++g)e[f[g]]!=null&&(this[f[g]]=e[f[g]])}return s.prototype.tensorName="",s.prototype.quantParameterTensorNames=A.emptyArray,s.create=function(e){return new s(e)},s.encode=function(e,f){if(f||(f=z.create()),e.tensorName!=null&&e.hasOwnProperty("tensorName")&&f.uint32(10).string(e.tensorName),e.quantParameterTensorNames!=null&&e.quantParameterTensorNames.length)for(var g=0;g<e.quantParameterTensorNames.length;++g)y.onnx.StringStringEntryProto.encode(e.quantParameterTensorNames[g],f.uint32(18).fork()).ldelim();return f},s.encodeDelimited=function(e,f){return this.encode(e,f).ldelim()},s.decode=function(e,f){e instanceof w||(e=w.create(e));for(var g=f===void 0?e.len:e.pos+f,R=new y.onnx.TensorAnnotation;e.pos<g;){var q=e.uint32();switch(q>>>3){case 1:R.tensorName=e.string();break;case 2:R.quantParameterTensorNames&&R.quantParameterTensorNames.length||(R.quantParameterTensorNames=[]),R.quantParameterTensorNames.push(y.onnx.StringStringEntryProto.decode(e,e.uint32()));break;default:e.skipType(7&q)}}return R},s.decodeDelimited=function(e){return e instanceof w||(e=new w(e)),this.decode(e,e.uint32())},s.verify=function(e){if(typeof e!="object"||e===null)return"object expected";if(e.tensorName!=null&&e.hasOwnProperty("tensorName")&&!A.isString(e.tensorName))return"tensorName: string expected";if(e.quantParameterTensorNames!=null&&e.hasOwnProperty("quantParameterTensorNames")){if(!Array.isArray(e.quantParameterTensorNames))return"quantParameterTensorNames: array expected";for(var f=0;f<e.quantParameterTensorNames.length;++f){var g=y.onnx.StringStringEntryProto.verify(e.quantParameterTensorNames[f]);if(g)return"quantParameterTensorNames."+g}}return null},s.fromObject=function(e){if(e instanceof y.onnx.TensorAnnotation)return e;var f=new y.onnx.TensorAnnotation;if(e.tensorName!=null&&(f.tensorName=String(e.tensorName)),e.quantParameterTensorNames){if(!Array.isArray(e.quantParameterTensorNames))throw TypeError(".onnx.TensorAnnotation.quantParameterTensorNames: array expected");f.quantParameterTensorNames=[];for(var g=0;g<e.quantParameterTensorNames.length;++g){if(typeof e.quantParameterTensorNames[g]!="object")throw TypeError(".onnx.TensorAnnotation.quantParameterTensorNames: object expected");f.quantParameterTensorNames[g]=y.onnx.StringStringEntryProto.fromObject(e.quantParameterTensorNames[g])}}return f},s.toObject=function(e,f){f||(f={});var g={};if((f.arrays||f.defaults)&&(g.quantParameterTensorNames=[]),f.defaults&&(g.tensorName=""),e.tensorName!=null&&e.hasOwnProperty("tensorName")&&(g.tensorName=e.tensorName),e.quantParameterTensorNames&&e.quantParameterTensorNames.length){g.quantParameterTensorNames=[];for(var R=0;R<e.quantParameterTensorNames.length;++R)g.quantParameterTensorNames[R]=y.onnx.StringStringEntryProto.toObject(e.quantParameterTensorNames[R],f)}return g},s.prototype.toJSON=function(){return this.constructor.toObject(this,p.util.toJSONOptions)},s})(),m.GraphProto=(function(){function s(e){if(this.node=[],this.initializer=[],this.input=[],this.output=[],this.valueInfo=[],this.quantizationAnnotation=[],e)for(var f=Object.keys(e),g=0;g<f.length;++g)e[f[g]]!=null&&(this[f[g]]=e[f[g]])}return s.prototype.node=A.emptyArray,s.prototype.name="",s.prototype.initializer=A.emptyArray,s.prototype.docString="",s.prototype.input=A.emptyArray,s.prototype.output=A.emptyArray,s.prototype.valueInfo=A.emptyArray,s.prototype.quantizationAnnotation=A.emptyArray,s.create=function(e){return new s(e)},s.encode=function(e,f){if(f||(f=z.create()),e.node!=null&&e.node.length)for(var g=0;g<e.node.length;++g)y.onnx.NodeProto.encode(e.node[g],f.uint32(10).fork()).ldelim();if(e.name!=null&&e.hasOwnProperty("name")&&f.uint32(18).string(e.name),e.initializer!=null&&e.initializer.length)for(g=0;g<e.initializer.length;++g)y.onnx.TensorProto.encode(e.initializer[g],f.uint32(42).fork()).ldelim();if(e.docString!=null&&e.hasOwnProperty("docString")&&f.uint32(82).string(e.docString),e.input!=null&&e.input.length)for(g=0;g<e.input.length;++g)y.onnx.ValueInfoProto.encode(e.input[g],f.uint32(90).fork()).ldelim();if(e.output!=null&&e.output.length)for(g=0;g<e.output.length;++g)y.onnx.ValueInfoProto.encode(e.output[g],f.uint32(98).fork()).ldelim();if(e.valueInfo!=null&&e.valueInfo.length)for(g=0;g<e.valueInfo.length;++g)y.onnx.ValueInfoProto.encode(e.valueInfo[g],f.uint32(106).fork()).ldelim();if(e.quantizationAnnotation!=null&&e.quantizationAnnotation.length)for(g=0;g<e.quantizationAnnotation.length;++g)y.onnx.TensorAnnotation.encode(e.quantizationAnnotation[g],f.uint32(114).fork()).ldelim();return f},s.encodeDelimited=function(e,f){return this.encode(e,f).ldelim()},s.decode=function(e,f){e instanceof w||(e=w.create(e));for(var g=f===void 0?e.len:e.pos+f,R=new y.onnx.GraphProto;e.pos<g;){var q=e.uint32();switch(q>>>3){case 1:R.node&&R.node.length||(R.node=[]),R.node.push(y.onnx.NodeProto.decode(e,e.uint32()));break;case 2:R.name=e.string();break;case 5:R.initializer&&R.initializer.length||(R.initializer=[]),R.initializer.push(y.onnx.TensorProto.decode(e,e.uint32()));break;case 10:R.docString=e.string();break;
85case 11:R.input&&R.input.length||(R.input=[]),R.input.push(y.onnx.ValueInfoProto.decode(e,e.uint32()));break;case 12:R.output&&R.output.length||(R.output=[]),R.output.push(y.onnx.ValueInfoProto.decode(e,e.uint32()));break;case 13:R.valueInfo&&R.valueInfo.length||(R.valueInfo=[]),R.valueInfo.push(y.onnx.ValueInfoProto.decode(e,e.uint32()));break;case 14:R.quantizationAnnotation&&R.quantizationAnnotation.length||(R.quantizationAnnotation=[]),R.quantizationAnnotation.push(y.onnx.TensorAnnotation.decode(e,e.uint32()));break;default:e.skipType(7&q)}}return R},s.decodeDelimited=function(e){return e instanceof w||(e=new w(e)),this.decode(e,e.uint32())},s.verify=function(e){if(typeof e!="object"||e===null)return"object expected";if(e.node!=null&&e.hasOwnProperty("node")){if(!Array.isArray(e.node))return"node: array expected";for(var f=0;f<e.node.length;++f)if(g=y.onnx.NodeProto.verify(e.node[f]))return"node."+g}if(e.name!=null&&e.hasOwnProperty("name")&&!A.isString(e.name))return"name: string expected";if(e.initializer!=null&&e.hasOwnProperty("initializer")){if(!Array.isArray(e.initializer))return"initializer: array expected";for(f=0;f<e.initializer.length;++f)if(g=y.onnx.TensorProto.verify(e.initializer[f]))return"initializer."+g}if(e.docString!=null&&e.hasOwnProperty("docString")&&!A.isString(e.docString))return"docString: string expected";if(e.input!=null&&e.hasOwnProperty("input")){if(!Array.isArray(e.input))return"input: array expected";for(f=0;f<e.input.length;++f)if(g=y.onnx.ValueInfoProto.verify(e.input[f]))return"input."+g}if(e.output!=null&&e.hasOwnProperty("output")){if(!Array.isArray(e.output))return"output: array expected";for(f=0;f<e.output.length;++f)if(g=y.onnx.ValueInfoProto.verify(e.output[f]))return"output."+g}if(e.valueInfo!=null&&e.hasOwnProperty("valueInfo")){if(!Array.isArray(e.valueInfo))return"valueInfo: array expected";for(f=0;f<e.valueInfo.length;++f)if(g=y.onnx.ValueInfoProto.verify(e.valueInfo[f]))return"valueInfo."+g}if(e.quantizationAnnotation!=null&&e.hasOwnProperty("quantizationAnnotation")){if(!Array.isArray(e.quantizationAnnotation))return"quantizationAnnotation: array expected";for(f=0;f<e.quantizationAnnotation.length;++f){var g;if(g=y.onnx.TensorAnnotation.verify(e.quantizationAnnotation[f]))return"quantizationAnnotation."+g}}return null},s.fromObject=function(e){if(e instanceof y.onnx.GraphProto)return e;var f=new y.onnx.GraphProto;if(e.node){if(!Array.isArray(e.node))throw TypeError(".onnx.GraphProto.node: array expected");f.node=[];for(var g=0;g<e.node.length;++g){if(typeof e.node[g]!="object")throw TypeError(".onnx.GraphProto.node: object expected");f.node[g]=y.onnx.NodeProto.fromObject(e.node[g])}}if(e.name!=null&&(f.name=String(e.name)),e.initializer){if(!Array.isArray(e.initializer))throw TypeError(".onnx.GraphProto.initializer: array expected");for(f.initializer=[],g=0;g<e.initializer.length;++g){if(typeof e.initializer[g]!="object")throw TypeError(".onnx.GraphProto.initializer: object expected");f.initializer[g]=y.onnx.TensorProto.fromObject(e.initializer[g])}}if(e.docString!=null&&(f.docString=String(e.docString)),e.input){if(!Array.isArray(e.input))throw TypeError(".onnx.GraphProto.input: array expected");for(f.input=[],g=0;g<e.input.length;++g){if(typeof e.input[g]!="object")throw TypeError(".onnx.GraphProto.input: object expected");f.input[g]=y.onnx.ValueInfoProto.fromObject(e.input[g])}}if(e.output){if(!Array.isArray(e.output))throw TypeError(".onnx.GraphProto.output: array expected");for(f.output=[],g=0;g<e.output.length;++g){if(typeof e.output[g]!="object")throw TypeError(".onnx.GraphProto.output: object expected");f.output[g]=y.onnx.ValueInfoProto.fromObject(e.output[g])}}if(e.valueInfo){if(!Array.isArray(e.valueInfo))throw TypeError(".onnx.GraphProto.valueInfo: array expected");for(f.valueInfo=[],g=0;g<e.valueInfo.length;++g){if(typeof e.valueInfo[g]!="object")throw TypeError(".onnx.GraphProto.valueInfo: object expected");f.valueInfo[g]=y.onnx.ValueInfoProto.fromObject(e.valueInfo[g])}}if(e.quantizationAnnotation){if(!Array.isArray(e.quantizationAnnotation))throw TypeError(".onnx.GraphProto.quantizationAnnotation: array expected");for(f.quantizationAnnotation=[],g=0;g<e.quantizationAnnotation.length;++g){if(typeof e.quantizationAnnotation[g]!="object")throw TypeError(".onnx.GraphProto.quantizationAnnotation: object expected");f.quantizationAnnotation[g]=y.onnx.TensorAnnotation.fromObject(e.quantizationAnnotation[g])}}return f},s.toObject=function(e,f){f||(f={});var g={};if((f.arrays||f.defaults)&&(g.node=[],g.initializer=[],g.input=[],g.output=[],g.valueInfo=[],g.quantizationAnnotation=[]),f.defaults&&(g.name="",g.docString=""),e.node&&e.node.length){g.node=[];for(var R=0;R<e.node.length;++R)g.node[R]=y.onnx.NodeProto.toObject(e.node[R],f)}
85if(e.name!=null&&e.hasOwnProperty("name")&&(g.name=e.name),e.initializer&&e.initializer.length)for(g.initializer=[],R=0;R<e.initializer.length;++R)g.initializer[R]=y.onnx.TensorProto.toObject(e.initializer[R],f);if(e.docString!=null&&e.hasOwnProperty("docString")&&(g.docString=e.docString),e.input&&e.input.length)for(g.input=[],R=0;R<e.input.length;++R)g.input[R]=y.onnx.ValueInfoProto.toObject(e.input[R],f);if(e.output&&e.output.length)for(g.output=[],R=0;R<e.output.length;++R)g.output[R]=y.onnx.ValueInfoProto.toObject(e.output[R],f);if(e.valueInfo&&e.valueInfo.length)for(g.valueInfo=[],R=0;R<e.valueInfo.length;++R)g.valueInfo[R]=y.onnx.ValueInfoProto.toObject(e.valueInfo[R],f);if(e.quantizationAnnotation&&e.quantizationAnnotation.length)for(g.quantizationAnnotation=[],R=0;R<e.quantizationAnnotation.length;++R)g.quantizationAnnotation[R]=y.onnx.TensorAnnotation.toObject(e.quantizationAnnotation[R],f);return g},s.prototype.toJSON=function(){return this.constructor.toObject(this,p.util.toJSONOptions)},s})(),m.TensorProto=(function(){function s(e){if(this.dims=[],this.floatData=[],this.int32Data=[],this.stringData=[],this.int64Data=[],this.externalData=[],this.doubleData=[],this.uint64Data=[],e)for(var f=Object.keys(e),g=0;g<f.length;++g)e[f[g]]!=null&&(this[f[g]]=e[f[g]])}return s.prototype.dims=A.emptyArray,s.prototype.dataType=0,s.prototype.segment=null,s.prototype.floatData=A.emptyArray,s.prototype.int32Data=A.emptyArray,s.prototype.stringData=A.emptyArray,s.prototype.int64Data=A.emptyArray,s.prototype.name="",s.prototype.docString="",s.prototype.rawData=A.newBuffer([]),s.prototype.externalData=A.emptyArray,s.prototype.dataLocation=0,s.prototype.doubleData=A.emptyArray,s.prototype.uint64Data=A.emptyArray,s.create=function(e){return new s(e)},s.encode=function(e,f){if(f||(f=z.create()),e.dims!=null&&e.dims.length){f.uint32(10).fork();for(var g=0;g<e.dims.length;++g)f.int64(e.dims[g]);f.ldelim()}if(e.dataType!=null&&e.hasOwnProperty("dataType")&&f.uint32(16).int32(e.dataType),e.segment!=null&&e.hasOwnProperty("segment")&&y.onnx.TensorProto.Segment.encode(e.segment,f.uint32(26).fork()).ldelim(),e.floatData!=null&&e.floatData.length){for(f.uint32(34).fork(),g=0;g<e.floatData.length;++g)f.float(e.floatData[g]);f.ldelim()}if(e.int32Data!=null&&e.int32Data.length){for(f.uint32(42).fork(),g=0;g<e.int32Data.length;++g)f.int32(e.int32Data[g]);f.ldelim()}if(e.stringData!=null&&e.stringData.length)for(g=0;g<e.stringData.length;++g)f.uint32(50).bytes(e.stringData[g]);if(e.int64Data!=null&&e.int64Data.length){for(f.uint32(58).fork(),g=0;g<e.int64Data.length;++g)f.int64(e.int64Data[g]);f.ldelim()}if(e.name!=null&&e.hasOwnProperty("name")&&f.uint32(66).string(e.name),e.rawData!=null&&e.hasOwnProperty("rawData")&&f.uint32(74).bytes(e.rawData),e.doubleData!=null&&e.doubleData.length){for(f.uint32(82).fork(),g=0;g<e.doubleData.length;++g)f.double(e.doubleData[g]);f.ldelim()}if(e.uint64Data!=null&&e.uint64Data.length){for(f.uint32(90).fork(),g=0;g<e.uint64Data.length;++g)f.uint64(e.uint64Data[g]);f.ldelim()}if(e.docString!=null&&e.hasOwnProperty("docString")&&f.uint32(98).string(e.docString),e.externalData!=null&&e.externalData.length)for(g=0;g<e.externalData.length;++g)y.onnx.StringStringEntryProto.encode(e.externalData[g],f.uint32(106).fork()).ldelim();return e.dataLocation!=null&&e.hasOwnProperty("dataLocation")&&f.uint32(112).int32(e.dataLocation),f},s.encodeDelimited=function(e,f){return this.encode(e,f).ldelim()},s.decode=function(e,f){e instanceof w||(e=w.create(e));for(var g=f===void 0?e.len:e.pos+f,R=new y.onnx.TensorProto;e.pos<g;){var q=e.uint32();switch(q>>>3){case 1:if(R.dims&&R.dims.length||(R.dims=[]),(7&q)==2)for(var H=e.uint32()+e.pos;e.pos<H;)R.dims.push(e.int64());else R.dims.push(e.int64());break;case 2:R.dataType=e.int32();break;case 3:R.segment=y.onnx.TensorProto.Segment.decode(e,e.uint32());break;case 4:if(R.floatData&&R.floatData.length||(R.floatData=[]),(7&q)==2)for(H=e.uint32()+e.pos;e.pos<H;)R.floatData.push(e.float());else R.floatData.push(e.float());break;case 5:if(R.int32Data&&R.int32Data.length||(R.int32Data=[]),(7&q)==2)for(H=e.uint32()+e.pos;e.pos<H;)R.int32Data.push(e.int32());else R.int32Data.push(e.int32());break;
85case 6:R.stringData&&R.stringData.length||(R.stringData=[]),R.stringData.push(e.bytes());break;case 7:if(R.int64Data&&R.int64Data.length||(R.int64Data=[]),(7&q)==2)for(H=e.uint32()+e.pos;e.pos<H;)R.int64Data.push(e.int64());else R.int64Data.push(e.int64());break;case 8:R.name=e.string();break;case 12:R.docString=e.string();break;case 9:R.rawData=e.bytes();break;case 13:R.externalData&&R.externalData.length||(R.externalData=[]),R.externalData.push(y.onnx.StringStringEntryProto.decode(e,e.uint32()));break;case 14:R.dataLocation=e.int32();break;case 10:if(R.doubleData&&R.doubleData.length||(R.doubleData=[]),(7&q)==2)for(H=e.uint32()+e.pos;e.pos<H;)R.doubleData.push(e.double());else R.doubleData.push(e.double());break;case 11:if(R.uint64Data&&R.uint64Data.length||(R.uint64Data=[]),(7&q)==2)for(H=e.uint32()+e.pos;e.pos<H;)R.uint64Data.push(e.uint64());else R.uint64Data.push(e.uint64());break;default:e.skipType(7&q)}}return R},s.decodeDelimited=function(e){return e instanceof w||(e=new w(e)),this.decode(e,e.uint32())},s.verify=function(e){if(typeof e!="object"||e===null)return"object expected";if(e.dims!=null&&e.hasOwnProperty("dims")){if(!Array.isArray(e.dims))return"dims: array expected";for(var f=0;f<e.dims.length;++f)if(!(A.isInteger(e.dims[f])||e.dims[f]&&A.isInteger(e.dims[f].low)&&A.isInteger(e.dims[f].high)))return"dims: integer|Long[] expected"}if(e.dataType!=null&&e.hasOwnProperty("dataType")&&!A.isInteger(e.dataType))return"dataType: integer expected";if(e.segment!=null&&e.hasOwnProperty("segment")&&(g=y.onnx.TensorProto.Segment.verify(e.segment)))return"segment."+g;if(e.floatData!=null&&e.hasOwnProperty("floatData")){if(!Array.isArray(e.floatData))return"floatData: array expected";for(f=0;f<e.floatData.length;++f)if(typeof e.floatData[f]!="number")return"floatData: number[] expected"}if(e.int32Data!=null&&e.hasOwnProperty("int32Data")){if(!Array.isArray(e.int32Data))return"int32Data: array expected";for(f=0;f<e.int32Data.length;++f)if(!A.isInteger(e.int32Data[f]))return"int32Data: integer[] expected"}if(e.stringData!=null&&e.hasOwnProperty("stringData")){if(!Array.isArray(e.stringData))return"stringData: array expected";for(f=0;f<e.stringData.length;++f)if(!(e.stringData[f]&&typeof e.stringData[f].length=="number"||A.isString(e.stringData[f])))return"stringData: buffer[] expected"}if(e.int64Data!=null&&e.hasOwnProperty("int64Data")){if(!Array.isArray(e.int64Data))return"int64Data: array expected";for(f=0;f<e.int64Data.length;++f)if(!(A.isInteger(e.int64Data[f])||e.int64Data[f]&&A.isInteger(e.int64Data[f].low)&&A.isInteger(e.int64Data[f].high)))return"int64Data: integer|Long[] expected"}if(e.name!=null&&e.hasOwnProperty("name")&&!A.isString(e.name))return"name: string expected";if(e.docString!=null&&e.hasOwnProperty("docString")&&!A.isString(e.docString))return"docString: string expected";if(e.rawData!=null&&e.hasOwnProperty("rawData")&&!(e.rawData&&typeof e.rawData.length=="number"||A.isString(e.rawData)))return"rawData: buffer expected";if(e.externalData!=null&&e.hasOwnProperty("externalData")){if(!Array.isArray(e.externalData))return"externalData: array expected";for(f=0;f<e.externalData.length;++f){var g;if(g=y.onnx.StringStringEntryProto.verify(e.externalData[f]))return"externalData."+g}}if(e.dataLocation!=null&&e.hasOwnProperty("dataLocation"))switch(e.dataLocation){default:return"dataLocation: enum value expected";case 0:case 1:}if(e.doubleData!=null&&e.hasOwnProperty("doubleData")){if(!Array.isArray(e.doubleData))return"doubleData: array expected";for(f=0;f<e.doubleData.length;++f)if(typeof e.doubleData[f]!="number")return"doubleData: number[] expected"}if(e.uint64Data!=null&&e.hasOwnProperty("uint64Data")){if(!Array.isArray(e.uint64Data))return"uint64Data: array expected";for(f=0;f<e.uint64Data.length;++f)if(!(A.isInteger(e.uint64Data[f])||e.uint64Data[f]&&A.isInteger(e.uint64Data[f].low)&&A.isInteger(e.uint64Data[f].high)))return"uint64Data: integer|Long[] expected"}return null},s.fromObject=function(e){if(e instanceof y.onnx.TensorProto)return e;var f=new y.onnx.TensorProto;if(e.dims){if(!Array.isArray(e.dims))throw TypeError(".onnx.TensorProto.dims: array expected");f.dims=[];for(var g=0;g<e.dims.length;++g)A.Long?(f.dims[g]=A.Long.fromValue(e.dims[g])).unsigned=!1:typeof e.dims[g]=="str
85ing"?f.dims[g]=parseInt(e.dims[g],10):typeof e.dims[g]=="number"?f.dims[g]=e.dims[g]:typeof e.dims[g]=="object"&&(f.dims[g]=new A.LongBits(e.dims[g].low>>>0,e.dims[g].high>>>0).toNumber())}if(e.dataType!=null&&(f.dataType=0|e.dataType),e.segment!=null){if(typeof e.segment!="object")throw TypeError(".onnx.TensorProto.segment: object expected");f.segment=y.onnx.TensorProto.Segment.fromObject(e.segment)}if(e.floatData){if(!Array.isArray(e.floatData))throw TypeError(".onnx.TensorProto.floatData: array expected");for(f.floatData=[],g=0;g<e.floatData.length;++g)f.floatData[g]=Number(e.floatData[g])}if(e.int32Data){if(!Array.isArray(e.int32Data))throw TypeError(".onnx.TensorProto.int32Data: array expected");for(f.int32Data=[],g=0;g<e.int32Data.length;++g)f.int32Data[g]=0|e.int32Data[g]}if(e.stringData){if(!Array.isArray(e.stringData))throw TypeError(".onnx.TensorProto.stringData: array expected");for(f.stringData=[],g=0;g<e.stringData.length;++g)typeof e.stringData[g]=="string"?A.base64.decode(e.stringData[g],f.stringData[g]=A.newBuffer(A.base64.length(e.stringData[g])),0):e.stringData[g].length&&(f.stringData[g]=e.stringData[g])}if(e.int64Data){if(!Array.isArray(e.int64Data))throw TypeError(".onnx.TensorProto.int64Data: array expected");for(f.int64Data=[],g=0;g<e.int64Data.length;++g)A.Long?(f.int64Data[g]=A.Long.fromValue(e.int64Data[g])).unsigned=!1:typeof e.int64Data[g]=="string"?f.int64Data[g]=parseInt(e.int64Data[g],10):typeof e.int64Data[g]=="number"?f.int64Data[g]=e.int64Data[g]:typeof e.int64Data[g]=="object"&&(f.int64Data[g]=new A.LongBits(e.int64Data[g].low>>>0,e.int64Data[g].high>>>0).toNumber())}if(e.name!=null&&(f.name=String(e.name)),e.docString!=null&&(f.docString=String(e.docString)),e.rawData!=null&&(typeof e.rawData=="string"?A.base64.decode(e.rawData,f.rawData=A.newBuffer(A.base64.length(e.rawData)),0):e.rawData.length&&(f.rawData=e.rawData)),e.externalData){if(!Array.isArray(e.externalData))throw TypeError(".onnx.TensorProto.externalData: array expected");for(f.externalData=[],g=0;g<e.externalData.length;++g){if(typeof e.externalData[g]!="object")throw TypeError(".onnx.TensorProto.externalData: object expected");f.externalData[g]=y.onnx.StringStringEntryProto.fromObject(e.externalData[g])}}switch(e.dataLocation){case"DEFAULT":case 0:f.dataLocation=0;break;case"EXTERNAL":case 1:f.dataLocation=1}if(e.doubleData){if(!Array.isArray(e.doubleData))throw TypeError(".onnx.TensorProto.doubleData: array expected");for(f.doubleData=[],g=0;g<e.doubleData.length;++g)f.doubleData[g]=Number(e.doubleData[g])}if(e.uint64Data){if(!Array.isArray(e.uint64Data))throw TypeError(".onnx.TensorProto.uint64Data: array expected");for(f.uint64Data=[],g=0;g<e.uint64Data.length;++g)A.Long?(f.uint64Data[g]=A.Long.fromValue(e.uint64Data[g])).unsigned=!0:typeof e.uint64Data[g]=="string"?f.uint64Data[g]=parseInt(e.uint64Data[g],10):typeof e.uint64Data[g]=="number"?f.uint64Data[g]=e.uint64Data[g]:typeof e.uint64Data[g]=="object"&&(f.uint64Data[g]=new A.LongBits(e.uint64Data[g].low>>>0,e.uint64Data[g].high>>>0).toNumber(!0))}return f},s.toObject=function(e,f){f||(f={});var g={};if((f.arrays||f.defaults)&&(g.dims=[],g.floatData=[],g.int32Data=[],g.stringData=[],g.int64Data=[],g.doubleData=[],g.uint64Data=[],g.externalData=[]),f.defaults&&(g.dataType=0,g.segment=null,g.name="",f.bytes===String?g.rawData="":(g.rawData=[],f.bytes!==Array&&(g.rawData=A.newBuffer(g.rawData))),g.docString="",g.dataLocation=f.enums===String?"DEFAULT":0),e.dims&&e.dims.length){g.dims=[];for(var R=0;R<e.dims.length;++R)typeof e.dims[R]=="number"?g.dims[R]=f.longs===String?String(e.dims[R]):e.dims[R]:g.dims[R]=f.longs===String?A.Long.prototype.toString.call(e.dims[R]):f.longs===Number?new A.LongBits(e.dims[R].low>>>0,e.dims[R].high>>>0).toNumber():e.dims[R]}if(e.dataType!=null&&e.hasOwnProperty("dataType")&&(g.dataType=e.dataType),e.segment!=null&&e.hasOwnProperty("segment")&&(g.segment=y.onnx.TensorProto.Segment.toObject(e.segment,f)),e.floatData&&e.floatData.length)for(g.floatData=[],R=0;R<e.floatData.length;++R)g.floatData[R]=f.json&&!isFinite(e.floatData[R])?String(e.floatData[R]):e.floatData[R];if(e.int32Data&&e.int32Data.length)for(g.int32Data=[],R=0;R<e.int32Data.length;++R)g.int32Data[R]=e.int32Data[R];if(e.stringData&&e.stringData.length)for(g.stringData=[],R=0;R<e.stringData.length;++R)g.stringData[R]=f.bytes===String?A.base64.encode(e.stringData[R],0,e.stringData[R].length):f.bytes===Array?Array.prototype.slice.call(e.stringData[R]):e.stringData[R];if(e.int64Data&&e.int64Data.length)for(g.int64Data=[],R=0;R<e.int64Data.length;++R)typeof e.int64Data[R]=="number"?g.int64Data[R]=f.longs===String?String(e.int64Data[R]):e.int64Data[R]:g.int64Data[R]=f.longs===String?A.Long.prototype.toString.call(e.int64Data[R]):f.longs===Number?new A.LongBits(e.int64Data[R].low>>>0,e.int64Data[R].high>>>0).toNumber():e.int64Data[R];
85if(e.name!=null&&e.hasOwnProperty("name")&&(g.name=e.name),e.rawData!=null&&e.hasOwnProperty("rawData")&&(g.rawData=f.bytes===String?A.base64.encode(e.rawData,0,e.rawData.length):f.bytes===Array?Array.prototype.slice.call(e.rawData):e.rawData),e.doubleData&&e.doubleData.length)for(g.doubleData=[],R=0;R<e.doubleData.length;++R)g.doubleData[R]=f.json&&!isFinite(e.doubleData[R])?String(e.doubleData[R]):e.doubleData[R];if(e.uint64Data&&e.uint64Data.length)for(g.uint64Data=[],R=0;R<e.uint64Data.length;++R)typeof e.uint64Data[R]=="number"?g.uint64Data[R]=f.longs===String?String(e.uint64Data[R]):e.uint64Data[R]:g.uint64Data[R]=f.longs===String?A.Long.prototype.toString.call(e.uint64Data[R]):f.longs===Number?new A.LongBits(e.uint64Data[R].low>>>0,e.uint64Data[R].high>>>0).toNumber(!0):e.uint64Data[R];if(e.docString!=null&&e.hasOwnProperty("docString")&&(g.docString=e.docString),e.externalData&&e.externalData.length)for(g.externalData=[],R=0;R<e.externalData.length;++R)g.externalData[R]=y.onnx.StringStringEntryProto.toObject(e.externalData[R],f);return e.dataLocation!=null&&e.hasOwnProperty("dataLocation")&&(g.dataLocation=f.enums===String?y.onnx.TensorProto.DataLocation[e.dataLocation]:e.dataLocation),g},s.prototype.toJSON=function(){return this.constructor.toObject(this,p.util.toJSONOptions)},s.DataType=(function(){var e={},f=Object.create(e);return f[e[0]="UNDEFINED"]=0,f[e[1]="FLOAT"]=1,f[e[2]="UINT8"]=2,f[e[3]="INT8"]=3,f[e[4]="UINT16"]=4,f[e[5]="INT16"]=5,f[e[6]="INT32"]=6,f[e[7]="INT64"]=7,f[e[8]="STRING"]=8,f[e[9]="BOOL"]=9,f[e[10]="FLOAT16"]=10,f[e[11]="DOUBLE"]=11,f[e[12]="UINT32"]=12,f[e[13]="UINT64"]=13,f[e[14]="COMPLEX64"]=14,f[e[15]="COMPLEX128"]=15,f[e[16]="BFLOAT16"]=16,f})(),s.Segment=(function(){function e(f){if(f)for(var g=Object.keys(f),R=0;R<g.length;++R)f[g[R]]!=null&&(this[g[R]]=f[g[R]])}return e.prototype.begin=A.Long?A.Long.fromBits(0,0,!1):0,e.prototype.end=A.Long?A.Long.fromBits(0,0,!1):0,e.create=function(f){return new e(f)},e.encode=function(f,g){return g||(g=z.create()),f.begin!=null&&f.hasOwnProperty("begin")&&g.uint32(8).int64(f.begin),f.end!=null&&f.hasOwnProperty("end")&&g.uint32(16).int64(f.end),g},e.encodeDelimited=function(f,g){return this.encode(f,g).ldelim()},e.decode=function(f,g){f instanceof w||(f=w.create(f));for(var R=g===void 0?f.len:f.pos+g,q=new y.onnx.TensorProto.Segment;f.pos<R;){var H=f.uint32();switch(H>>>3){case 1:q.begin=f.int64();break;case 2:q.end=f.int64();break;default:f.skipType(7&H)}}return q},e.decodeDelimited=function(f){return f instanceof w||(f=new w(f)),this.decode(f,f.uint32())},e.verify=function(f){return typeof f!="object"||f===null?"object expected":f.begin!=null&&f.hasOwnProperty("begin")&&!(A.isInteger(f.begin)||f.begin&&A.isInteger(f.begin.low)&&A.
vendor: 13,285 bytes, line 85
85isInteger(f.begin.high))?"begin: integer|Long expected":f.end!=null&&f.hasOwnProperty("end")&&!(A.isInteger(f.end)||f.end&&A.isInteger(f.end.low)&&A.isInteger(f.end.high))?"end: integer|Long expected":null},e.fromObject=function(f){if(f instanceof y.onnx.TensorProto.Segment)return f;var g=new y.onnx.TensorProto.Segment;return f.begin!=null&&(A.Long?(g.begin=A.Long.fromValue(f.begin)).unsigned=!1:typeof f.begin=="string"?g.begin=parseInt(f.begin,10):typeof f.begin=="number"?g.begin=f.begin:typeof f.begin=="object"&&(g.begin=new A.LongBits(f.begin.low>>>0,f.begin.high>>>0).toNumber())),f.end!=null&&(A.Long?(g.end=A.Long.fromValue(f.end)).unsigned=!1:typeof f.end=="string"?g.end=parseInt(f.end,10):typeof f.end=="number"?g.end=f.end:typeof f.end=="object"&&(g.end=new A.LongBits(f.end.low>>>0,f.end.high>>>0).toNumber())),g},e.toObject=function(f,g){g||(g={});var R={};if(g.defaults){if(A.Long){var q=new A.Long(0,0,!1);R.begin=g.longs===String?q.toString():g.longs===Number?q.toNumber():q}else R.begin=g.longs===String?"0":0;A.Long?(q=new A.Long(0,0,!1),R.end=g.longs===String?q.toString():g.longs===Number?q.toNumber():q):R.end=g.longs===String?"0":0}return f.begin!=null&&f.hasOwnProperty("begin")&&(typeof f.begin=="number"?R.begin=g.longs===String?String(f.begin):f.begin:R.begin=g.longs===String?A.Long.prototype.toString.call(f.begin):g.longs===Number?new A.LongBits(f.begin.low>>>0,f.begin.high>>>0).toNumber():f.begin),f.end!=null&&f.hasOwnProperty("end")&&(typeof f.end=="number"?R.end=g.longs===String?String(f.end):f.end:R.end=g.longs===String?A.Long.prototype.toString.call(f.end):g.longs===Number?new A.LongBits(f.end.low>>>0,f.end.high>>>0).toNumber():f.end),R},e.prototype.toJSON=function(){return this.constructor.toObject(this,p.util.toJSONOptions)},e})(),s.DataLocation=(function(){var e={},f=Object.create(e);return f[e[0]="DEFAULT"]=0,f[e[1]="EXTERNAL"]=1,f})(),s})(),m.TensorShapeProto=(function(){function s(e){if(this.dim=[],e)for(var f=Object.keys(e),g=0;g<f.length;++g)e[f[g]]!=null&&(this[f[g]]=e[f[g]])}return s.prototype.dim=A.emptyArray,s.create=function(e){return new s(e)},s.encode=function(e,f){if(f||(f=z.create()),e.dim!=null&&e.dim.length)for(var g=0;g<e.dim.length;++g)y.onnx.TensorShapeProto.Dimension.encode(e.dim[g],f.uint32(10).fork()).ldelim();return f},s.encodeDelimited=function(e,f){return this.encode(e,f).ldelim()},s.decode=function(e,f){e instanceof w||(e=w.create(e));for(var g=f===void 0?e.len:e.pos+f,R=new y.onnx.TensorShapeProto;e.pos<g;){var q=e.uint32();q>>>3==1?(R.dim&&R.dim.length||(R.dim=[]),R.dim.push(y.onnx.TensorShapeProto.Dimension.decode(e,e.uint32()))):e.skipType(7&q)}return R},s.decodeDelimited=function(e){return e instanceof w||(e=new w(e)),this.decode(e,e.uint32())},s.verify=function(e){if(typeof e!="object"||e===null)return"object expected";if(e.dim!=null&&e.hasOwnProperty("dim")){if(!Array.isArray(e.dim))return"dim: array expected";for(var f=0;f<e.dim.length;++f){var g=y.onnx.TensorShapeProto.Dimension.verify(e.dim[f]);if(g)return"dim."+g}}return null},s.fromObject=function(e){if(e instanceof y.onnx.TensorShapeProto)return e;var f=new y.onnx.TensorShapeProto;if(e.dim){if(!Array.isArray(e.dim))throw TypeError(".onnx.TensorShapeProto.dim: array expected");f.dim=[];for(var g=0;g<e.dim.length;++g){if(typeof e.dim[g]!="object")throw TypeError(".onnx.TensorShapeProto.dim: object expected");f.dim[g]=y.onnx.TensorShapeProto.Dimension.fromObject(e.dim[g])}}return f},s.toObject=function(e,f){f||(f={});var g={};if((f.arrays||f.defaults)&&(g.dim=[]),e.dim&&e.dim.length){g.dim=[];for(var R=0;R<e.dim.length;++R)g.dim[R]=y.onnx.TensorShapeProto.Dimension.toObject(e.dim[R],f)}return g},s.prototype.toJSON=function(){return this.constructor.toObject(this,p.util.toJSONOptions)},s.Dimension=(function(){function e(g){if(g)for(var R=Object.keys(g),q=0;q<R.length;++q)g[R[q]]!=null&&(this[R[q]]=g[R[q]])}var f;return e.prototype.dimValue=A.Long?A.Long.fromBits(0,0,!1):0,e.prototype.dimParam="",e.prototype.denotation="",Object.defineProperty(e.prototype,"value",{get:A.oneOfGetter(f=["dimValue","dimParam"]),set:A.oneOfSetter(f)}),e.create=function(g){return new e(g)},e.encode=function(g,R){return R||(R=z.create()),g.dimValue!=null&&g.hasOwnProperty("dimValue")&&R.uint32(8).int64(g.dimValue),g.dimParam!=null&&g.hasOwnProperty("dimParam")&&R.uint32(18).string(g.dimParam),g.denotation!=null&&g.hasOwnProperty("denotation")&&R.uint32(26).string(g.denotation),R},e.encodeDelimited=function(g,R){return this.encode(g,R).ldelim()},e.decode=function(g,R){g instanceof w||(g=w.create(g));for(var q=R===void 0?g.len:g.pos+R,H=new y.onnx.TensorShapeProto.Dimension;g.pos<q;){var te=g.uint32();switch(te>>>3){case 1:H.dimValue=g.int64();break;case 2:H.dimParam=g.string();break;case 3:H.denotation=g.string();break;default:g.skipType(7&te)}}return H},e.decodeDelimited=function(g){return g instanceof w||(g=new w(g)),this.decode(g,g.uint32())},e.verify=function(g){if(typeof g!="object"||g===null)return"object expected";var R={};if(g.dimValue!=null&&g.hasOwnProperty("dimValue")&&(R.value=1,!(A.isInteger(g.dimValue)||g.dimValue&&A.isInteger(g.dimValue.low)&&A.isInteger(g.dimValue.high))))return"dimValue: integer|Long expected";if(g.dimParam!=null&&g.hasOwnProperty("dimParam")){if(R.value===1)return"value: multiple values";if(R.value=1,!A.isString(g.dimParam))return"dimParam: string expected"}return g.denotation!=null&&g.hasOwnProperty("denotation")&&!A.isString(g.denotation)?"denotation: string expected":null},e.fromObject=function(g){if(g instanceof y.onnx.TensorShapeProto.Dimension)return g;var R=new y.onnx.TensorShapeProto.Dimension;return g.dimValue!=null&&(A.Long?(R.dimValue=A.Long.fromValue(g.dimValue)).unsigned=!1:typeof g.dimValue=="string"?R.dimValue=parseInt(g.dimValue,10):typeof g.dimValue=="number"?R.dimValue=g.dimValue:typeof g.dimValue=="object"&&(R.dimValue=new A.LongBits(g.dimValue.low>>>0,g.dimValue.high>>>0).toNumber())),g.dimParam!=null&&(R.dimParam=String(g.dimParam)),g.denotation!=null&&(R.denotation=String(g.denotation)),R},e.toObject=function(g,R){R||(R={});var q={};return R.defaults&&(q.denotation=""),g.dimValue!=null&&g.hasOwnProperty("dimValue")&&(typeof g.dimValue=="number"?q.dimValue=R.longs===String?String(g.dimValue):g.dimValue:q.dimValue=R.longs===String?A.Long.prototype.toString.call(g.dimValue):R.longs===Number?new A.LongBits(g.dimValue.low>>>0,g.dimValue.high>>>0).toNumber():g.dimValue,R.oneofs&&(q.value="dimValue")),g.dimParam!=null&&g.hasOwnProperty("dimParam")&&(q.dimParam=g.dimParam,R.oneofs&&(q.value="dimParam")),g.denotation!=null&&g.hasOwnProperty("denotation")&&(q.denotation=g.denotation),q},e.prototype.toJSON=function(){return this.constructor.toObject(this,p.util.toJSONOptions)},e})(),s})(),m.TypeProto=(function(){function s(f){if(f)for(var g=Object.keys(f),R=0;R<g.length;++R)f[g[R]]!=null&&(this[g[R]]=f[g[R]])}var e;return s.prototype.tensorType=null,s.prototype.denotation="",Object.defineProperty(s.prototype,"value",{get:A.oneOfGetter(e=["tensorType"]),set:A.oneOfSetter(e)}),s.create=function(f){return new s(f)},s.encode=function(f,g){return g||(g=z.create()),f.tensorType!=null&&f.hasOwnProperty("tensorType")&&y.onnx.TypeProto.Tensor.encode(f.tensorType,g.uint32(10).fork()).ldelim(),f.denotation!=null&&f.hasOwnProperty("denotation")&&g.uint32(50).string(f.denotation),g},s.encodeDelimited=function(f,g){return this.encode(f,g).ldelim()},s.decode=function(f,g){f instanceof w||(f=w.create(f));for(var R=g===void 0?f.len:f.pos+g,q=new y.onnx.TypeProto;f.pos<R;){var H=f.uint32();switch(H>>>3){case 1:q.tensorType=y.onnx.TypeProto.Tensor.decode(f,f.uint32());break;case 6:q.denotation=f.string();break;default:f.skipType(7&H)}}return q},s.decodeDelimited=function(f){return f instanceof w||(f=new w(f)),this.decode(f,f.uint32())},s.verify=function(f){if(typeof f!="object"||f===null)return"object expected";if(f.tensorType!=null&&f.hasOwnProperty("tensorType")){var g=y.onnx.TypeProto.Tensor.verify(f.tensorType);if(g)return"tensorType."+g}return f.denotation!=null&&f.hasOwnProperty("denotation")&&!A.isString(f.denotation)?"denotation: string expected":null},s.fromObject=function(f){if(f instanceof y.onnx.TypeProto)return f;var g=new y.onnx.TypeProto;if(f.tensorType!=null){if(typeof f.tensorType!="object")throw TypeError(".onnx.TypeProto.tensorType: object expected");g.tensorType=y.onnx.TypeProto.Tensor.fromObject(f.tensorType)}return f.denotation!=null&&(g.denotation=String(f.denotation)),g},s.toObject=function(f,g){g||(g={});var R={};return g.defaults&&(R.denotation=""),f.tensorType!=null&&f.hasOwnProperty("tensorType")&&(R.tensorType=y.onnx.TypeProto.Tensor.toObject(f.tensorType,g),g.oneofs&&(R.value="tensorType")),f.denotation!=null&&f.hasOwnProperty("denotation")&&(R.denotation=f.denotation),R},s.prototype.toJSON=function(){return this.constructor.toObject(this,p.util.toJSONOptions)},s.Tensor=(function(){function f(g){if(g)for(var R=Object.keys(g),q=0;q<R.length;++q)g[R[q]]!=null&&(this[R[q]]=g[R[q]])}return f.prototype.elemType=0,f.prototype.shape=null,f.create=function(g){return new f(g)},f.encode=function(g,R){return R||(R=z.create()),g.elemType!=null&&g.hasOwnProperty("elemType")&&R.uint32(8).int32(g.elemType),g.shape!=null&&g.hasOwnProperty("shape")&&y.onnx.TensorShapeProto.encode(g.shape,R.uint32(18).fork()).ldelim(),R},f.encodeDelimited=function(g,R){return this.encode(g,R).ldelim()},f.decode=function(g,R){g instanceof w||(g=w.create(g));for(var q=R===void 0?g.len:g.pos+R,H=new y.onnx.TypeProto.Tensor;g.pos<q;){var te=g.uint32();switch(te>>>3){case 1:H.elemType=g.int32();break;case 2:H.shape=y.onnx.TensorShapeProto.decode(g,g.uint32());break;default:g.skipType(7&te)}}return H},f.decodeDelimited=function(g){return g instanceof w||(g=new w(g)),this.decode(g,g.uint32())},f.verify=function(g){if(typeof g!="object"||g===null)return"object expected";if(g.elemType!=null&&g.hasOwnProperty("elemType")&&!A.isInteger(g.elemType))return"elemType: integer expected";if(g.shape!=null&&g.hasOwnProperty("shape")){var R=y.onnx.TensorShapeProto.verify(g.shape);if(R)return"shape."+R}return null},f.fromObject=function(g){if(g instanceof y.onnx.TypeProto.Tensor)return g;var R=new y.onnx.TypeProto.Tensor;if(g.elemType!=null&&(R.elemType=0|g.elemType),g.shape!=null){if(typeof g.shape!="object")throw TypeError(".onnx.TypeProto.Tensor.shape: object expected");R.shape=y.onnx.TensorShapeProto.fromObject(g.shape)}return R},f.toObject=function(g,R){R||(R={});var q={};return R.defaults&&(q.elemType=0,q.shape=null),g.elemType!=null&&g.hasOwnProperty("elemType")&&(q.elemType=g.elemType),g.shape!=null&&g.hasOwnProperty("shape")&&(q.shape=y.onnx.TensorShapeProto.toObject(g.shape,R)),q},f.prototype.toJSON=function(){return this.constructor.toObject(this,p.util.toJSONOptions)},f})(),s})(),m.OperatorSetIdProto=(function(){function s(e){if(e)for(var f=Object.keys(e),g=0;g<f.length;++g)e[f[g]]!=null&&(this[f[g]]=e[f[g]])}return s.prototype.domain="",s.prototype.version=A.Long?A.Long.fromBits(0,0,!1):0,s.create=function(e){return new s(e)},s.encode=function(e,f){return f||(f=z.create()),e.domain!=null&&e.hasOwnProperty("domain")&&f.uint32(10).string(e.domain),e.version!=null&&e.hasOwnProperty("version")&&f.uint32(16).int64(e.version),f},s.encodeDelimited=function(e,f){return this.encode(e,f).ldelim()},s.decode=function(e,f){e instanceof w||(e=w.create(e));for(var g=f===void 0?e.len:e.pos+f,R=new y.onnx.OperatorSetIdProto;e.pos<g;){var q=e.uint32();switch(q>>>3){case 1:R.domain=e.string();break;case 2:R.version=e.int64();break;default:e.skipType(7&q)}}return R},s.decodeDelimited=function(e){return e instanceof w||(e=new w(e)),this.decode(e,e.uint32())},s.verify=function(e){return typeof e!="object"||e===null?"object expected":e.domain!=null&&e.hasOwnProperty("domain")&&!A.isString(e.domain)?"domain: string expected":e.version!=null&&e.hasOwnProperty("version")&&!(A.isInteger(e.version)||e.version&&A.isInteger(e.version.low)&&A.isInteger(e.version.high))?"version: integer|Long expected":null},s.fromObject=function(e){if(e instanceof y.onnx.OperatorSetIdProto)return e;var f=new y.onnx.OperatorSetIdProto;return e.domain!=null&&(f.domain=String(e.domain)),e.version!=null&&(A.Long?(f.version=A.Long.fromValue(e.version)).unsigned=!1:typeof e.version=="string"?f.version=parseInt(e.version,10):typeof e.version=="number"?f.version=e.version:typeof e.version=="object"&&(f.version=new A.LongBits(e.version.low>>>0,e.version.high>>>0).toNumber())),f},s.toObject=function(e,f){f||(f={});var g={};if(f.defaults)if(g.domain="",A.Long){var R=new A.Long(0,0,!1);g.version=f.longs===String?R.toString():f.longs===Number?R.toNumber():R}else g.version=f.longs===String?"0":0;return e.domain!=null&&e.hasOwnProperty("domain")&&(g.domain=e.domain),e.version!=null&&e.hasOwnProperty("version")&&(typeof e.version=="number"?g.version=f.longs===String?String(e.version):e.version:g.version=f.longs===String?A.Long.prototype.toString.call(e.version):f.longs===Number?new A.LongBits(e.version.low>>>0,e.version.high>>>0).toNumber():e.version),g},s.prototype.toJSON=function(){return this.constructor.toObject(this,p.util.toJSONOptions)},s})(),m),o.exports=y},2100:(o,n,c)=>{o.exports=c(9482)},9482:(o,n,c)=>{var d=n;function h(){d.util._configure(),d.Writer._configure(d.BufferWriter),d.Reader._
vendor: 27,205 bytes, lines 85-143
85configure(d.BufferReader)}d.build="minimal",d.Writer=c(1173),d.BufferWriter=c(3155),d.Reader=c(1408),d.BufferReader=c(593),d.util=c(9693),d.rpc=c(5994),d.roots=c(5054),d.configure=h,h()},1408:(o,n,c)=>{o.exports=z;var d,h=c(9693),m=h.LongBits,p=h.utf8;function w(R,q){return RangeError("index out of range: "+R.pos+" + "+(q||1)+" > "+R.len)}function z(R){this.buf=R,this.pos=0,this.len=R.length}var A,y=typeof Uint8Array<"u"?function(R){if(R instanceof Uint8Array||Array.isArray(R))return new z(R);throw Error("illegal buffer")}:function(R){if(Array.isArray(R))return new z(R);throw Error("illegal buffer")},s=function(){return h.Buffer?function(R){return(z.create=function(q){return h.Buffer.isBuffer(q)?new d(q):y(q)})(R)}:y};function e(){var R=new m(0,0),q=0;if(!(this.len-this.pos>4)){for(;q<3;++q){if(this.pos>=this.len)throw w(this);if(R.lo=(R.lo|(127&this.buf[this.pos])<<7*q)>>>0,this.buf[this.pos++]<128)return R}return R.lo=(R.lo|(127&this.buf[this.pos++])<<7*q)>>>0,R}for(;q<4;++q)if(R.lo=(R.lo|(127&this.buf[this.pos])<<7*q)>>>0,this.buf[this.pos++]<128)return R;if(R.lo=(R.lo|(127&this.buf[this.pos])<<28)>>>0,R.hi=(R.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return R;if(q=0,this.len-this.pos>4){for(;q<5;++q)if(R.hi=(R.hi|(127&this.buf[this.pos])<<7*q+3)>>>0,this.buf[this.pos++]<128)return R}else for(;q<5;++q){if(this.pos>=this.len)throw w(this);if(R.hi=(R.hi|(127&this.buf[this.pos])<<7*q+3)>>>0,this.buf[this.pos++]<128)return R}throw Error("invalid varint encoding")}function f(R,q){return(R[q-4]|R[q-3]<<8|R[q-2]<<16|R[q-1]<<24)>>>0}function g(){if(this.pos+8>this.len)throw w(this,8);return new m(f(this.buf,this.pos+=4),f(this.buf,this.pos+=4))}z.create=s(),z.prototype._slice=h.Array.prototype.subarray||h.Array.prototype.slice,z.prototype.uint32=(A=4294967295,function(){if(A=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128||(A=(A|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)||(A=(A|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)||(A=(A|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)||(A=(A|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128))return A;if((this.pos+=5)>this.len)throw this.pos=this.len,w(this,10);return A}),z.prototype.int32=function(){return 0|this.uint32()},z.prototype.sint32=function(){var R=this.uint32();return R>>>1^-(1&R)|0},z.prototype.bool=function(){return this.uint32()!==0},z.prototype.fixed32=function(){if(this.pos+4>this.len)throw w(this,4);return f(this.buf,this.pos+=4)},z.prototype.sfixed32=function(){if(this.pos+4>this.len)throw w(this,4);return 0|f(this.buf,this.pos+=4)},z.prototype.float=function(){if(this.pos+4>this.len)throw w(this,4);var R=h.float.readFloatLE(this.buf,this.pos);return this.pos+=4,R},z.prototype.double=function(){if(this.pos+8>this.len)throw w(this,4);var R=h.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,R},z.prototype.bytes=function(){var R=this.uint32(),q=this.pos,H=this.pos+R;if(H>this.len)throw w(this,R);return this.pos+=R,Array.isArray(this.buf)?this.buf.slice(q,H):q===H?new this.buf.constructor(0):this._slice.call(this.buf,q,H)},z.prototype.string=function(){var R=this.bytes();return p.read(R,0,R.length)},z.prototype.skip=function(R){if(typeof R=="number"){if(this.pos+R>this.len)throw w(this,R);this.pos+=R}else do if(this.pos>=this.len)throw w(this);while(128&this.buf[this.pos++]);return this},z.prototype.skipType=function(R){switch(R){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(R=7&this.uint32())!=4;)this.skipType(R);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+R+" at offset "+this.pos)}return this},z._configure=function(R){d=R,z.create=s(),d._configure();var q=h.Long?"toLong":"toNumber";h.merge(z.prototype,{int64:function(){return e.call(this)[q](!1)},uint64:function(){return e.call(this)[q](!0)},sint64:function(){return e.call(this).zzDecode()[q](!1)},fixed64:function(){return g.call(this)[q](!0)},sfixed64:function(){return g.call(this)[q](!1)}})}},593:(o,n,c)=>{o.exports=m;var d=c(1408);(m.prototype=Object.create(d.prototype)).constructor=m;var h=c(9693);function m(p){d.call(this,p)}m._configure=function(){h.Buffer&&(m.prototype._slice=h.Buffer.prototype.slice)},m.prototype.string=function(){var p=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+p,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+p,this.len))},m._configure()},5054:o=>{o.exports={}},5994:(o,n,c)=>{n.Service=c(7948)},7948:(o,n,c)=>{o.exports=h;var d=c(9693);function h(m,p,w){if(typeof m!="function")throw TypeError("rpcImpl must be a function");d.EventEmitter.call(this),this.rpcImpl=m,this.requestDelimited=!!p,this.responseDelimited=!!w}(h.prototype=Object.create(d.EventEmitter.prototype)).constructor=h,h.prototype.rpcCall=function m(p,w,z,A,y){if(!A)throw TypeError("request must be specified");var s=this;if(!y)return d.asPromise(m,s,p,w,z,A);if(s.rpcImpl)try{return s.rpcImpl(p,w[s.requestDelimited?"encodeDelimited":"encode"](A).finish(),(function(e,f){if(e)return s.emit("error",e,p),y(e);if(f!==null){if(!(f instanceof z))try{f=z[s.responseDelimited?"decodeDelimited":"decode"](f)}catch(g){return s.emit("error",g,p),y(g)}return s.emit("data",f,p),y(null,f)}s.end(!0)}))}catch(e){return s.emit("error",e,p),void setTimeout((function(){y(e)}),0)}else setTimeout((function(){y(Error("already ended"))}),0)},h.prototype.end=function(m){return this.rpcImpl&&(m||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},1945:(o,n,c)=>{o.exports=h;var d=c(9693);function h(z,A){this.lo=z>>>0,this.hi=A>>>0}var m=h.zero=new h(0,0);m.toNumber=function(){return 0},m.zzEncode=m.zzDecode=function(){return this},m.length=function(){return 1};var p=h.zeroHash="\0\0\0\0\0\0\0\0";h.fromNumber=function(z){if(z===0)return m;var A=z<0;A&&(z=-z);var y=z>>>0,s=(z-y)/4294967296>>>0;return A&&(s=~s>>>0,y=~y>>>0,++y>4294967295&&(y=0,++s>4294967295&&(s=0))),new h(y,s)},h.from=function(z){if(typeof z=="number")return h.fromNumber(z);if(d.isString(z)){if(!d.Long)return h.fromNumber(parseInt(z,10));z=d.Long.fromString(z)}return z.low||z.high?new h(z.low>>>0,z.high>>>0):m},h.prototype.toNumber=function(z){if(!z&&this.hi>>>31){var A=1+~this.lo>>>0,y=~this.hi>>>0;return A||(y=y+1>>>0),-(A+4294967296*y)}return this.lo+4294967296*this.hi},h.prototype.toLong=function(z){return d.Long?new d.Long(0|this.lo,0|this.hi,!!z):{low:0|this.lo,high:0|this.hi,unsigned:!!z}};var w=String.prototype.charCodeAt;h.fromHash=function(z){return z===p?m:new h((w.call(z,0)|w.call(z,1)<<8|w.call(z,2)<<16|w.call(z,3)<<24)>>>0,(w.call(z,4)|w.call(z,5)<<8|w.call(z,6)<<16|w.call(z,7)<<24)>>>0)},h.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},h.prototype.zzEncode=function(){var z=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^z)>>>0,this.lo=(this.lo<<1^z)>>>0,this},h.prototype.zzDecode=function(){var z=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^z)>>>0,this.hi=(this.hi>>>1^z)>>>0,this},h.prototype.length=function(){var z=this.lo,A=(this.lo>>>28|this.hi<<4)>>>0,y=this.hi>>>24;return y===0?A===0?z<16384?z<128?1:2:z<2097152?3:4:A<16384?A<128?5:6:A<2097152?7:8:y<128?9:10}},9693:function(o,n,c){var d=n;function h(p,w,z){for(var A=Object.keys(w),y=0;y<A.length;++y)p[A[y]]!==void 0&&z||(p[A[y]]=w[A[y]]);return p}function m(p){function w(z,A){if(!(this instanceof w))return new w(z,A);Object.defineProperty(this,"message",{get:function(){return z}}),Error.captureStackTrace?Error.captureStackTrace(this,w):Object.defineProperty(this,"stack",{value:new Error().stack||""}),A&&h(this,A)}return(w.prototype=Object.create(Error.prototype)).constructor=w,Object.defineProperty(w.prototype,"name",{get:function(){return p}}),w.prototype.toString=function(){return this.name+": "+this.message},w}d.asPromise=c(4537),d.base64=c(7419),d.EventEmitter=c(9211),d.float=c(945),d.inquire=c(7199),d.utf8=c(4997),d.pool=c(6662),d.LongBits=c(1945),d.isNode=!!(c.g!==void 0&&c.g&&c.g.process&&c.g.process.versions&&c.g.process.versions.node),d.global=d.isNode&&c.g||typeof window<"u"&&window||typeof self<"u"&&self||this,d.emptyArray=Object.freeze?Object.freeze([]):[],d.emptyObject=Object.freeze?Object.freeze({}):{},d.isInteger=Number.isInteger||function(p){return typeof p=="number"&&isFinite(p)&&Math.floor(p)===p},d.isString=function(p){return typeof p=="string"||p instanceof String},d.isObject=function(p){return p&&typeof p=="object"},d.isset=d.isSet=function(p,w){var z=p[w];return!(z==null||!p.hasOwnProperty(w))&&(typeof z!="object"||(Array.isArray(z)?z.length:Object.keys(z).length)>0)},d.Buffer=(function(){try{var p=d.inquire("buffer").Buffer;return p.prototype.utf8Write?p:null}catch{return null}})(),d._Buffer_from=null,d._Buffer_allocUnsafe=null,d.newBuffer=function(p){return typeof p=="number"?d.Buffer?d._Buffer_allocUnsafe(p):new d.Array(p):d.Buffer?d._Buffer_from(p):typeof Uint8Array>"u"?p:new Uint8Array(p)},d.Array=typeof Uint8Array<"u"?Uint8Array:Array,d.Long=d.global.dcodeIO&&d.global.dcodeIO.Long||d.global.Long||d.inquire("long"),d.key2Re=/^true|false|0|1$/,d.key32Re=/^-?(?:0|[1-9][0-9]*)$/,d.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,d.longToHash=function(p){return p?d.LongBits.from(p).toHash():d.LongBits.zeroHash},d.longFromHash=function(p,w){var z=d.LongBits.fromHash(p);return d.Long?d.Long.fromBits(z.lo,z.hi,w):z.toNumber(!!w)},d.merge=h,d.lcFirst=function(p){return p.charAt(0).toLowerCase()+p.substring(1)},d.newError=m,d.ProtocolError=m("ProtocolError"),d.oneOfGetter=function(p){for(var w={},z=0;z<p.length;++z)w[p[z]]=1;return function(){for(var A=Object.keys(this),y=A.length-1;y>-1;--y)if(w[A[y]]===1&&this[A[y]]!==void 0&&this[A[y]]!==null)return A[y]}},d.oneOfSetter=function(p){return function(w){for(var z=0;z<p.length;++z)p[z]!==w&&delete this[p[z]]}},d.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},d._configure=function(){var p=d.Buffer;p?(d._Buffer_from=p.from!==Uint8Array.from&&p.from||function(w,z){return new p(w,z)},d._Buffer_allocUnsafe=p.allocUnsafe||function(w){return new p(w)}):d._Buffer_from=d._Buffer_allocUnsafe=null}},1173:(o,n,c)=>{o.exports=s;var d,h=c(9693),m=h.LongBits,p=h.base64,w=h.utf8;function z(te,re,ae){this.fn=te,this.len=re,this.next=void 0,this.val=ae}function A(){}function y(te){this.head=te.head,this.tail=te.tail,this.len=te.len,this.next=te.states}function s(){this.len=0,this.head=new z(A,0,0),this.tail=this.head,this.states=null}var e=function(){return h.Buffer?function(){return(s.create=function(){return new d})()}:function(){return new s}};function f(te,re,ae){re[ae]=255&te}function g(te,re){this.len=te,this.next=void 0,this.val=re}function R(te,re,ae){for(;te.hi;)re[ae++]=127&te.lo|128,te.lo=(te.lo>>>7|te.hi<<25)>>>0,te.hi>>>=7;for(;te.lo>127;)re[ae++]=127&te.lo|128,te.lo=te.lo>>>7;re[ae++]=te.lo}function q(te,re,ae){re[ae]=255&te,re[ae+1]=te>>>8&255,re[ae+2]=te>>>16&255,re[ae+3]=te>>>24}s.create=e(),s.alloc=function(te){return new h.Array(te)},h.Array!==Array&&(s.alloc=h.pool(s.alloc,h.Array.prototype.subarray)),s.prototype._push=function(te,re,ae){return this.tail=this.tail.next=new z(te,re,ae),this.len+=re,this},g.prototype=Object.create(z.prototype),g.prototype.fn=function(te,re,ae){for(;te>127;)re[ae++]=127&te|128,te>>>=7;re[ae]=te},s.prototype.uint32=function(te){return this.len+=(this.tail=this.tail.next=new g((te>>>=0)<128?1:te<16384?2:te<2097152?3:te<268435456?4:5,te)).len,this},s.prototype.int32=function(te){return te<0?this._push(R,10,m.fromNumber(te)):this.uint32(te)},s.prototype.sint32=function(te){return this.uint32((te<<1^te>>31)>>>0)},s.prototype.uint64=function(te){var re=m.from(te);return this._push(R,re.length(),re)},s.prototype.int64=s.prototype.uint64,s.prototype.sint64=function(te){var re=m.from(te).zzEncode();return this._push(R,re.length(),re)},s.prototype.bool=function(te){return this._push(f,1,te?1:0)},s.prototype.fixed32=function(te){return this._push(q,4,te>>>0)},s.prototype.sfixed32=s.prototype.fixed32,s.prototype.fixed64=function(te){var re=m.from(te);return this._push(q,4,re.lo)._push(q,4,re.hi)},s.prototype.sfixed64=s.prototype.fixed64,s.prototype.float=function(te){return this._push(h.float.writeFloatLE,4,te)},s.prototype.double=function(te){return this._push(h.float.writeDoubleLE,8,te)};var H=h.Array.prototype.set?function(te,re,ae){re.set(te,ae)}:function(te,re,ae){for(var ne=0;ne<te.length;++ne)re[ae+ne]=te[ne]};s.prototype.bytes=function(te){var re=te.length>>>0;if(!re)return this._push(f,1,0);if(h.isString(te)){var ae=s.alloc(re=p.length(te));p.decode(te,ae,0),te=ae}return this.uint32(re)._push(H,re,te)},s.prototype.string=function(te){var re=w.length(te);return re?this.uint32(re)._push(w.write,re,te):this._push(f,1,0)},s.prototype.fork=function(){return this.states=new y(this),this.head=this.tail=new z(A,0,0),this.len=0,this},s.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new z(A,0,0),this.len=0),this},s.prototype.ldelim=function(){var te=this.head,re=this.tail,ae=this.len;return this.reset().uint32(ae),ae&&(this.tail.next=te.next,this.tail=re,this.len+=ae),this},s.prototype.finish=function(){for(var te=this.head.next,re=this.constructor.alloc(this.len),ae=0;te;)te.fn(te.val,re,ae),ae+=te.len,te=te.next;return re},s._configure=function(te){d=te,s.create=e(),d._configure()}},3155:(o,n,c)=>{o.exports=m;var d=c(1173);(m.prototype=Object.create(d.prototype)).constructor=m;var h=c(9693);function m(){d.call(this)}function p(w,z,A){w.length<40?h.utf8.write(w,z,A):z.utf8Write?z.utf8Write(w,A):z.write(w,A)}m._configure=function(){m.alloc=h._Buffer_allocUnsafe,m.writeBytesBuffer=h.Buffer&&h.Buffer.prototype instanceof Uint8Array&&h.Buffer.prototype.set.name==="set"?function(w,z,A){z.set(w,A)}:function(w,z,A){if(w.copy)w.copy(z,A,0,w.length);else for(var y=0;y<w.length;)z[A++]=w[y++]}},m.prototype.bytes=function(w){h.isString(w)&&(w=h._Buffer_from(w,"base64"));var z=w.length>>>0;return this.uint32(z),z&&this._push(m.writeBytesBuffer,z,w),this},m.prototype.string=function(w){var z=h.Buffer.byteLength(w);return this.uint32(z),z&&this._push(p,z,w),this},m._configure()},7714:(o,n,c)=>{n.R=void 0;const d=c(6919),h=c(7448);n.R=new class{async init(){}async createSessionHandler(m,p){const w=new d.Session(p);return await w.loadModel(m),new h.OnnxjsSessionHandler(w)}}},4200:(o,n,c)=>{n.c8=n.rX=void 0;const d=c(1670),h=c(5381),m=c(2157),p=c(2306);n.rX=()=>{if((typeof d.env.wasm.initTimeout!="number"||d.env.wasm.initTimeout<0)&&(d.env.wasm.initTimeout=0),typeof d.env.wasm.simd!="boolean"&&(d.env.wasm.simd=!0),typeof d.env.wasm.proxy!="boolean"&&(d.env.wasm.proxy=!1),typeof d.env.wasm.numThreads!="number"||!Number.isInteger(d.env.wasm.numThreads)||d.env.wasm.numThreads<=0){const w=typeof navigator>"u"?(0,h.cpus)().length:navigator.hardwareConcurrency;d.env.wasm.numThreads=Math.min(4,Math.ceil((w||1)/2))}},n.c8=new class{async init(){(0,n.rX)(),await(0,m.initWasm)()}async createSessionHandler(w,z){const A=new p.OnnxruntimeWebAssemblySessionHandler;return await A.loadModel(w,z),Promise.resolve(A)}}},6018:function(o,n,c){var d=this&&this.__createBinding||(Object.create?function(p,w,z,A){A===void 0&&(A=z);var y=Object.getOwnPropertyDescriptor(w,z);y&&!("get"in y?!w.__esModule:y.writable||y.configurable)||(y={enumerable:!0,get:function(){return w[z]}}),Object.defineProperty(p,A,y)}:function(p,w,z,A){A===void 0&&(A=z),p[A]=w[z]}),h=this&&this.__exportStar||function(p,w){for(var z in p)z==="default"||Object.prototype.hasOwnProperty.call(w,z)||d(w,p,z)};Object.defineProperty(n,"__esModule",{value:!0}),h(c(1670),n);const m=c(1670);{const p=c(7714).R;(0,m.registerBackend)("webgl",p,-10)}{const p=c(4200).c8;(0,m.registerBackend)("cpu",p,10),(0,m.registerBackend)("wasm",p,10),(0,m.registerBackend)("xnnpack",p,9)}},246:(o,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.createAttributeWithCacheKey=void 0;class c{constructor(h){Object.assign(this,h)}get cacheKey(){return this._cacheKey||(this._cacheKey=Object.getOwnPropertyNames(this).sort().map((h=>`${this[h]}`)).join(";")),this._cacheKey}}n.createAttributeWithCacheKey=d=>new c(d)},7778:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.Attribute=void 0;const d=c(1446),h=c(9395),m=c(9162),p=c(2517);var w=h.onnxruntime.experimental.fbs;class z{constructor(y){if(this._attributes=new Map,y!=null){for(const s of y)s instanceof d.onnx.AttributeProto?this._attributes.set(s.name,[z.getValue(s),z.getType(s)]):s instanceof w.Attribute&&this._attributes.set(s.name(),[z.getValue(s),z.getType(s)]);if(this._attributes.size<y.length)throw new Error("duplicated attribute names")}}set(y,s,e){this._attributes.set(y,[e,s])}delete(y){this._attributes.delete(y)}getFloat(y,s){return this.get(y,"float",s)}getInt(y,s){return this.get(y,"int",s)}getString(y,s){return this.get(y,"string",s)}getTensor(y,s){return this.get(y,"tensor",s)}getFloats(y,s){return this.get(y,"floats",s)}getInts(y,s){return this.get(y,"ints",s)}getStrings(y,s){return this.get(y,"strings",s)}getTensors(y,s){return this.get(y,"tensors",s)}get(y,s,e){const f=this._attributes.get(y);if(f===void 0){if(e!==void 0)return e;throw new Error(`required attribute not found: ${y}`)}if(f[1]!==s)throw new Error(`type mismatch: expected ${s} but got ${f[1]}`);return f[0]}static getType(y){const s=y instanceof d.onnx.AttributeProto?y.type:y.type();switch(s){case d.onnx.AttributeProto.AttributeType.FLOAT:return"float";case d.onnx.AttributeProto.AttributeType.INT:return"int";case d.onnx.AttributeProto.AttributeType.STRING:return"string";case d.onnx.AttributeProto.AttributeType.TENSOR:return"tensor";case d.onnx.AttributeProto.AttributeType.FLOATS:return"floats";case d.onnx.AttributeProto.AttributeType.INTS:return"ints";case d.onnx.AttributeProto.AttributeType.STRINGS:return"strings";case d.onnx.AttributeProto.AttributeType.TENSORS:return"tensors";default:throw new Error(`attribute type is not supported yet: ${d.onnx.AttributeProto.AttributeType[s]}`)}}static getValue(y){const s=y instanceof d.onnx.AttributeProto?y.type:y.type();if(s===d.onnx.AttributeProto.AttributeType.GRAPH||s===d.onnx.AttributeProto.AttributeType.GRAPHS)throw new Error("graph attribute is not supported yet");const e=this.getValueNoCheck(y);if(s===d.onnx.AttributeProto.AttributeType.INT&&p.LongUtil.isLong(e))return p.LongUtil.longToNumber(e);if(s===d.onnx.AttributeProto.AttributeType.INTS){const f=e,g=new Array(f.length);for(let R=0;R<f.length;R++){const q=f[R];g[R]=p.LongUtil.longToNumber(q)}return g}if(s===d.onnx.AttributeProto.AttributeType.TENSOR)return y instanceof d.onnx.AttributeProto?m.Tensor.fromProto(e):m.Tensor.fromOrtTensor(e);if(s===d.onnx.AttributeProto.AttributeType.TENSORS){if(y instanceof d.onnx.AttributeProto)return e.map((f=>m.Tensor.fromProto(f)));if(y instanceof w.Attribute)return e.map((f=>m.Tensor.fromOrtTensor(f)))}if(s===d.onnx.AttributeProto.AttributeType.STRING&&y instanceof d.onnx.AttributeProto){const f=e;return(0,p.decodeUtf8String)(f)}return s===d.onnx.AttributeProto.AttributeType.STRINGS&&y instanceof d.onnx.AttributeProto?e.map(p.decodeUtf8String):e}static getValueNoCheck(y){return y instanceof d.onnx.AttributeProto?this.getValueNoCheckFromOnnxFormat(y):this.getValueNoCheckFromOrtFormat(y)}static getValueNoCheckFromOnnxFormat(y){switch(y.type){case d.onnx.AttributeProto.AttributeType.FLOAT:return y.f;case d.onnx.AttributeProto.AttributeType.INT:return y.i;case d.onnx.AttributeProto.AttributeType.STRING:return y.s;case d.onnx.AttributeProto.AttributeType.TENSOR:return y.t;case d.onnx.AttributeProto.AttributeType.GRAPH:return y.g;case d.onnx.AttributeProto.AttributeType.FLOATS:return y.floats;case d.onnx.AttributeProto.AttributeType.INTS:return y.ints;case d.onnx.AttributeProto.AttributeType.STRINGS:return y.strings;case d.onnx.AttributeProto.AttributeType.TENSORS:return y.tensors;case d.onnx.AttributeProto.AttributeType.GRAPHS:return y.graphs;default:throw new Error(`unsupported attribute type: ${d.onnx.AttributeProto.AttributeType[y.type]}`)}}static getValueNoCheckFromOrtFormat(y){switch(y.type()){case w.AttributeType.FLOAT:return y.f();case w.AttributeType.INT:return y.i();case w.AttributeType.STRING:return y.s();case w.AttributeType.TENSOR:return y.t();case w.AttributeType.GRAPH:return y.g();case w.AttributeType.FLOATS:return y.floatsArray();case w.AttributeType.INTS:{const s=[];for(let e=0;e<y.intsLength();e++)s.push(y.ints(e));return s}case w.AttributeType.STRINGS:{const s=[];for(let e=0;e<y.stringsLength();e++)s.push(y.strings(e));return s}case w.AttributeType.TENSORS:{const s=[];for(let e=0;e<y.tensorsLength();e++)s.push(y.tensors(e));return s}default:throw new Error(`unsupported attribute type: ${w.AttributeType[y.type()]}`)}}}n.Attribute=z},7091:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.resolveBackend=n.backend=void 0;const d=c(5038),h=new Map;async function m(p){const w=n.backend;if(w[p]!==void 0&&(function(z){const A=z;return"initialize"in A&&typeof A.initialize=="function"&&"createSessionHandler"in A&&typeof A.createSessionHandler=="function"&&"dispose"in A&&typeof A.dispose=="function"})(w[p])){const z=w[p];let A=z.initialize();if(typeof A=="object"&&"then"in A&&(A=await A),A)return h.set(p,z),z}}n.backend={webgl:new d.WebGLBackend},n.resolveBackend=async function p(w){if(!w)return p(["webgl"]);{const z=typeof w=="string"?[w]:w;for(const A of z){const y=h.get(A);if(y)return y;const s=await m(A);if(s)return s}}throw new Error("no available backend to use")}},5038:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.WebGLBackend=void 0;const d=c(1670),h=c(6231),m=c(6416),p=c(7305);n.WebGLBackend=class{get contextId(){return d.env.webgl.contextId}set contextId(w){d.env.webgl.contextId=w}get matmulMaxBatchSize(){return d.env.webgl.matmulMaxBatchSize}set matmulMaxBatchSize(w){d.env.webgl.matmulMaxBatchSize=w}get textureCacheMode(){return d.env.webgl.textureCacheMode}set textureCacheMode(w){d.env.webgl.textureCacheMode=w}get pack(){return d.env.webgl.pack}set pack(w){d.env.webgl.pack=w}get async(){return d.env.webgl.async}set async(w){d.env.webgl.async=w}initialize(){try{return this.glContext=(0,p.createWebGLContext)(this.contextId),typeof this.matmulMaxBatchSize!="number"&&(this.matmulMaxBatchSize=16),typeof this.textureCacheMode!="string"&&(this.textureCacheMode="full"),typeof this.pack!="boolean"&&(this.pack=!1),typeof this.async!="boolean"&&(this.async=!1),h.Logger.setWithEnv(d.env),h.Logger.verbose("WebGLBackend",`Created WebGLContext: ${typeof this.glContext} with matmulMaxBatchSize: ${this.matmulMaxBatchSize}; textureCacheMode: ${this.textureCacheMode}; pack: ${this.pack}; async: ${this.async}.`),!0}catch(w){return h.Logger.warning("WebGLBackend",`Unable to initialize WebGLBackend. ${w}`),!1}}createSessionHandler(w){return new m.WebGLSessionHandler(this,w)}dispose(){this.glContext.dispose()}}},5107:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.CoordsGlslLib=void 0;const d=c(2517),h=c(8520),m=c(5060),p=c(7859),w=c(9390);class z extends h.GlslLib{constructor(y){super(y)}getFunctions(){return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},this.offsetToCoords()),this.coordsToOffset()),this.toVec()),this.valueFrom()),this.getCommonUtilFuncs()),this.getInputsSamplingSnippets()),this.getOutputSamplingSnippet())}getCustomTypes(){return{}}offsetToCoords(){return{offsetToCoords:new h.GlslLibRoutine(`
86      vec2 offsetToCoords(int offset, int width, int height) {
87        int t = offset / width;
88        int s = offset - t*width;
89        vec2 coords = (vec2(s,t) + vec2(0.5,0.5)) / vec2(width, height);
90        return coords;
91      }
92      `)}}coordsToOffset(){return{coordsToOffset:new h.GlslLibRoutine(`
93      int coordsToOffset(vec2 coords, int width, int height) {
94        float s = coords.s * float(width);
95        float t = coords.t * float(height);
96        int offset = int(t) * width + int(s);
97        return offset;
98      }
99      `)}}getOutputSamplingSnippet(){const y=this.context.outputTextureLayout;return y.isPacked?this.getPackedOutputSamplingSnippet(y):this.getUnpackedOutputSamplingSnippet(y)}getPackedOutputSamplingSnippet(y){const s=y.unpackedShape,e=[y.width,y.height],f={},g="getOutputCoords";switch(s.length){case 0:f[g]=this.getOutputScalarCoords();break;case 1:f[g]=this.getOutputPacked1DCoords(s,e);break;case 2:f[g]=this.getOutputPacked2DCoords(s,e);break;case 3:f[g]=this.getOutputPacked3DCoords(s,e);break;default:f[g]=this.getOutputPackedNDCoords(s,e)}const R=`
100      void setOutput(vec4 val) {
101        ${(0,m.getGlsl)(this.context.glContext.version).output} = val;
102      }
103    `;return f.floatTextureSetRGBA=new h.GlslLibRoutine(R),f}getUnpackedOutputSamplingSnippet(y){const s=y.unpackedShape,e=[y.width,y.height],f={},g="getOutputCoords";switch(s.length){case 0:f[g]=this.getOutputScalarCoords();break;case 1:f[g]=this.getOutputUnpacked1DCoords(s,e);break;case 2:f[g]=this.getOutputUnpacked2DCoords(s,e);break;case 3:f[g]=this.getOutputUnpacked3DCoords(s,e);break;case 4:f[g]=this.getOutputUnpacked4DCoords(s,e);break;case 5:f[g]=this.getOutputUnpacked5DCoords(s,e);break;case 6:f[g]=this.getOutputUnpacked6DCoords(s,e);break;default:throw new Error(`Unsupported output dimensionality: ${s.length}`)}const R=`
104        void setOutput(float val) {
105          ${(0,m.getGlsl)(this.context.glContext.version).output} = vec4(val, 0, 0, 0);
106        }
107    `;return f.floatTextureSetR=new h.GlslLibRoutine(R),f}getOutputScalarCoords(){return new h.GlslLibRoutine(`
108      int getOutputCoords() {
109        return 0;
110      }
111    `)}getOutputPacked1DCoords(y,s){const e=s;let f="";return e[0]===1?(f=`
112          int getOutputCoords() {
113            return 2 * int(TexCoords.y * ${e[1]}.0);
114          }
115        `,new h.GlslLibRoutine(f)):e[1]===1?(f=`
116          int getOutputCoords() {
117            return 2 * int(TexCoords.x * ${e[0]}.0);
118          }
119        `,new h.GlslLibRoutine(f)):(f=`
120        int getOutputCoords() {
121          ivec2 resTexRC = ivec2(TexCoords.xy *
122                                 vec2(${e[0]}, ${e[1]}));
123          return 2 * (resTexRC.y * ${e[0]} + resTexRC.x);
124        }
125      `,new h.GlslLibRoutine(f))}getOutputPacked2DCoords(y,s){let e="";if(d.ArrayUtil.arraysEqual(y,s))return e=`
126        ivec2 getOutputCoords() {
127          return 2 * ivec2(TexCoords.xy * vec2(${s[0]}, ${s[1]}));
128        }
129      `,new h.GlslLibRoutine(e);const f=s,g=Math.ceil(y[1]/2);return e=`
130        ivec2 getOutputCoords() {
131          ivec2 resTexRC = ivec2(TexCoords.xy *
132                                vec2(${f[0]}, ${f[1]}));
133
134          int index = resTexRC.y * ${f[0]} + resTexRC.x;
135
136          // reverse r and c order for packed texture
137          int r = imod(index, ${g}) * 2;
138          int c = 2 * (index / ${g});
139
140          return ivec2(r, c);
141        }
142      `,new h.GlslLibRoutine(e)}getOutputPacked3DCoords(y,s){const e=[s[0],s[1]],f=Math.ceil(y[2]/2),g=f*Math.ceil(y[1]/2),R=`
143        ivec3 getOutputCoords() {
144          ivec2 resTexRC = ivec2(TexCoords.xy *
145                                vec2(${e[0]}, ${e[1]}));
146          int index = resTexRC.y * ${e[0]} + resTexRC.x;
147
148          int b = index / ${g};
149          index -= b * ${g};
150
151          // reverse r and c order for packed texture
152          int r = imod(index, ${f}) * 2;
153          int c = 2 * (index / ${f});
154
155          return ivec3(b, r, c);
156        }
157      `;return new h.GlslLibRoutine(R)}getOutputPackedNDCoords(y,s){const e=[s[0],s[1]],f=Math.ceil(y[y.length-1]/2),g=f*Math.ceil(y[y.length-2]/2);let R=g,q="",H="b, r, c";for(let re=2;re<y.length-1;re++)R*=y[y.length-re-1],q=`
158      int b${re} = index / ${R};
159      index -= b${re} * ${R};
160    `+q,H=`b${re}, `+H;const te=`
161      ivec${y.length} getOutputCoords() {
162        ivec2 resTexRC = ivec2(TexCoords.xy *
163                              vec2(${e[0]}, ${e[1]}));
164        int index = resTexRC.y * ${e[0]} + resTexRC.x;
165
166        ${q}
167
168        int b = index / ${g};
169        index -= b * ${g};
170
171        // reverse r and c order for packed texture
172        int r = imod(index, ${f}) * 2;
173        int c = 2 * (index / ${f});
174
175        return ivec${y.length}(${H});
176      }
177    `;return new h.GlslLibRoutine(te)}getOutputUnpacked1DCoords(y,s){const e=`
178        int getOutputCoords() {
179          ivec2 resTexRC = ivec2(TexCoords.xy *
180                                vec2(${s[0]}, ${s[1]}));
181          return resTexRC.y * ${s[0]} + resTexRC.x;
182        }
183      `;return new h.GlslLibRoutine(e)}getOutputUnpacked2DCoords(y,s){const e=`
184        ivec2 getOutputCoords() {
185          ivec2 resTexRC = ivec2(TexCoords.xy *
186                                vec2(${s[0]}, ${s[1]}));
187          int index = resTexRC.y * ${s[0]} + resTexRC.x;
188          int r = index / ${y[1]};
189          int c = index - r * ${y[1]};
190          return ivec2(r, c);
191        }
192      `;return new h.GlslLibRoutine(e)}getOutputUnpacked3DCoords(y,s){let e="";const f=y.length;let g=null;f<2&&(g=[]),g=new Array(f-1),g[f-2]=y[f-1];for(let H=f-3;H>=0;--H)g[H]=g[H+1]*y[H+1];const R=["r","c","d"],q=g.map(((H,te)=>`int ${R[te]} = index / ${H}; ${te===g.length-1?`int ${R[te+1]} = index - ${R[te]} * ${H}`:`index -= ${R[te]} * ${H}`};`)).join("");return e=`
193        ivec3 getOutputCoords() {
194          ivec2 resTexRC = ivec2(TexCoords.xy *
195                                vec2(${s[0]}, ${s[1]}));
196          int index = resTexRC.y * ${s[0]} + resTexRC.x;
197          ${q}
198          return ivec3(r, c, d);
199        }
200      `,new h.GlslLibRoutine(e)}getOutputUnpacked4DCoords(y,s){let e="";const f=y.length;let g=null;f<2&&(g=[]),g=new Array(f-1),g[f-2]=y[f-1];for(let H=f-3;H>=0;--H)g[H]=g[H+1]*y[H+1];const R=["r","c","d","d2"],q=g.map(((H,te)=>`int ${R[te]} = index / ${H}; ${te===g.length-1?`int ${R[te+1]} = index - ${R[te]} * ${H}`:`index -= ${R[te]} * ${H}`};`)).join("");return e=`
201      ivec4 getOutputCoords() {
202          ivec2 resTexRC = ivec2(TexCoords.xy *
203                                vec2(${s[0]}, ${s[1]}));
204          int index = resTexRC.y * ${s[0]} + resTexRC.x;
205          ${q}
206          return ivec4(r, c, d, d2);
207        }
208      `,new h.GlslLibRoutine(e)}getOutputUnpacked5DCoords(y,s){let e="";const f=y.length;let g=null;f<2&&(g=[]),g=new Array(f-1),g[f-2]=y[f-1];for(let H=f-3;H>=0;--H)g[H]=g[H+1]*y[H+1];const R=["r","c","d","d2","d3"],q=g.map(((H,te)=>`int ${R[te]} = index / ${H}; ${te===g.length-1?`int ${R[te+1]} = index - ${R[te]} * ${H}`:`index -= ${R[te]} * ${H}`};`)).join("");return e=`
209      ivec5 getOutputCoords() {
210          ivec2 resTexRC = ivec2(TexCoords.xy *
211                                vec2(${s[0]}, ${s[1]}));
212          int index = resTexRC.y * ${s[0]} + resTexRC.x;
213          ${q}
214          return ivec5(r, c, d, d2, d3);
215        }
216      `,new h.GlslLibRoutine(e)}getOutputUnpacked6DCoords(y,s){let e="";const f=y.length;let g=null;f<2&&(g=[]),g=new Array(f-1),g[f-2]=y[f-1];for(let H=f-3;H>=0;--H)g[H]=g[H+1]*y[H+1];const R=["r","c","d","d2","d3","d4"],q=g.map(((H,te)=>`int ${R[te]} = index / ${H}; ${te===g.length-1?`int ${R[te+1]} = index - ${R[te]} * ${H}`:`index -= ${R[te]} * ${H}`};`)).join("");return e=`
217     ivec6 getOutputCoords() {
218         ivec2 resTexRC = ivec2(TexCoords.xy *
219                               vec2(${s[0]}, ${s[1]}));
220         int index = resTexRC.y * ${s[0]} + resTexRC.x;
221         ${q}
222         return ivec6(r, c, d, d2, d3, d4);
223       }
224     `,new h.GlslLibRoutine(e)}getCommonUtilFuncs(){const y={};let s="uvFromFlat";y[s]=new h.GlslLibRoutine(`
225    vec2 uvFromFlat(int texNumR, int texNumC, int index) {
226      int texC = index / texNumR;
227      int texR = index - texC * texNumR;
228      // TODO: swap texR, texC order in following function so row is corresponding to u and column is corresponding to
229      //       v.
230      return (vec2(texR, texC) + halfCR) / vec2(texNumR, texNumC);
231    }
232    `),s="packedUVfrom1D",y[s]=new h.GlslLibRoutine(`
233      vec2 packedUVfrom1D(int texNumR, int texNumC, int index) {
234        int texelIndex = index / 2;
235        int texR = texelIndex / texNumC;
236        int texC = texelIndex - texR * texNumC;
237        return (vec2(texC, texR) + halfCR) / vec2(texNumC, texNumR);
238      }
239      `),s="packedUVfrom2D",y[s]=new h.GlslLibRoutine(`
240      vec2 packedUVfrom2D(int texNumR, int texNumC, int texelsInLogicalRow, int row, int col) {
241        int texelIndex = (row / 2) * texelsInLogicalRow + (col / 2);
242        int texR = texelIndex / texNumC;
243        int texC = texelIndex - texR * texNumC;
244        return (vec2(texC, texR) + halfCR) / vec2(texNumC, texNumR);
245      }
246      `),s="packedUVfrom3D",y[s]=new h.GlslLibRoutine(`
247      vec2 packedUVfrom3D(int texNumR, int texNumC,
248          int texelsInBatch, int texelsInLogicalRow, int b,
249          int row, int col) {
250        int index = b * texelsInBatch + (row / 2) * texelsInLogicalRow + (col / 2);
251        int texR = index / texNumC;
252        int texC = index - texR * texNumC;
253        return (vec2(texC, texR) + halfCR) / vec2(texNumC, texNumR);
254      }
255      `),s="sampleTexture";const e=(0,m.getGlsl)(this.context.glContext.version);return y[s]=new h.GlslLibRoutine(`
256        float sampleTexture(sampler2D textureSampler, vec2 uv) {
257            return ${e.texture2D}(textureSampler, uv).r;
258        }`),y}
vendor: 4,740 bytes, lines 258-300
258getInputsSamplingSnippets(){const y={},s=this.context.outputTextureLayout;return this.context.programInfo.inputNames.forEach(((e,f)=>{const g=this.context.inputTextureLayouts[f],R=(0,w.generateShaderFuncNameFromInputSamplerName)(e);g.isPacked?y[R]=this.getPackedSamplerFromInput(R,e,g):y[R]=this.getUnpackedSamplerFromInput(R,e,g);const q=(0,w.generateShaderFuncNameFromInputSamplerNameAtOutCoords)(e);g.unpackedShape.length<=s.unpackedShape.length&&(g.isPacked?y[q]=this.getPackedSamplerAtOutputCoords(q,g,s,e):y[q]=this.getUnpackedSamplerAtOutputCoords(q,g,s,e))})),y}getPackedSamplerAtOutputCoords(y,s,e,f){const g=s.unpackedShape,R=e.unpackedShape,q=f,H=(0,w.generateShaderFuncNameFromInputSamplerName)(q),te=g.length,re=R.length,ae=d.BroadcastUtil.getBroadcastDims(g,R),ne=(0,w.getCoordsDataType)(re),oe=re-te;let le;const ce=(0,w.getGlChannels)();le=te===0?"":re<2&&ae.length>=1?"coords = 0;":ae.map((Pe=>`coords.${ce[Pe+oe]} = 0;`)).join(`
259`);let ue="";ue=re<2&&te>0?"coords":g.map(((Pe,Le)=>`coords.${ce[Le+oe]}`)).join(", ");let he="return outputValue;";const ge=d.ShapeUtil.size(g)===1,Oe=d.ShapeUtil.size(R)===1;if(te!==1||ge||Oe){if(ge&&!Oe)he=re===1?`
260          return vec4(outputValue.x, outputValue.x, 0., 0.);
261        `:`
262          return vec4(outputValue.x);
263        `;else if(ae.length){const Pe=te-2,Le=te-1;ae.indexOf(Pe)>-1&&ae.indexOf(Le)>-1?he="return vec4(outputValue.x);":ae.indexOf(Pe)>-1?he="return vec4(outputValue.x, outputValue.y, outputValue.x, outputValue.y);":ae.indexOf(Le)>-1&&(he="return vec4(outputValue.xx, outputValue.zz);")}}else he=`
264        return vec4(outputValue.xy, outputValue.xy);
265      `;const $e=`
266      vec4 ${y}() {
267        ${ne} coords = getOutputCoords();
268        
269        int lastDim = coords.${ce[re-1]};
270        coords.${ce[re-1]} = coords.${ce[re-2]};
271        coords.${ce[re-2]} = lastDim;
272      
273        ${le}
274        vec4 outputValue = ${H}(${ue});
275        ${he}
276      }
277    `;return new h.GlslLibRoutine($e,["coordinates.getOutputCoords"])}getUnpackedSamplerAtOutputCoords(y,s,e,f){const g=[e.width,e.height],R=[s.width,s.height],q=s.unpackedShape.length,H=e.unpackedShape.length,te=s.unpackedShape,re=e.unpackedShape,ae=(0,w.generateShaderFuncNameFromInputSamplerName)(f);if(q===H&&d.ArrayUtil.arraysEqual(R,g)){const Oe=`
278          float ${y}() {
279            return sampleTexture(${f}, TexCoords);
280          }
281        `;return new h.GlslLibRoutine(Oe,["coordinates.sampleTexture"])}const ne=(0,w.getCoordsDataType)(H),oe=d.BroadcastUtil.getBroadcastDims(te,re),le=H-q;let ce;const ue=(0,w.getGlChannels)();ce=q===0?"":H<2&&oe.length>=1?"coords = 0;":oe.map((Oe=>`coords.${ue[Oe+le]} = 0;`)).join(`
282`);let he="";he=H<2&&q>0?"coords":s.unpackedShape.map(((Oe,$e)=>`coords.${ue[$e+le]}`)).join(", ");const ge=`
283        float ${y}() {
284          ${ne} coords = getOutputCoords();
285          ${ce}
286          return ${ae}(${he});
287        }
288      `;return new h.GlslLibRoutine(ge,["coordinates.getOutputCoords"])}getPackedSamplerFromInput(y,s,e){switch(e.unpackedShape.length){case 0:return this.getPackedSamplerScalar(y,s);case 1:return this.getPackedSampler1D(y,s,e);case 2:return this.getPackedSampler2D(y,s,e);case 3:return this.getPackedSampler3D(y,s,e);default:return this.getPackedSamplerND(y,s,e)}}getUnpackedSamplerFromInput(y,s,e){const f=e.unpackedShape;switch(f.length){case 0:return this.getUnpackedSamplerScalar(y,s,e);case 1:return this.getUnpackedSampler1D(y,s,e);case 2:return this.getUnpackedSampler2D(y,s,e);case 3:return this.getUnpackedSampler3D(y,s,e);case 4:return this.getUnpackedSampler4D(y,s,e);case 5:return this.getUnpackedSampler5D(y,s,e);case 6:return this.getUnpackedSampler6D(y,s,e);default:throw new Error(`Unsupported dimension ${f.length}-D`)}}getPackedSamplerScalar(y,s){const e=`
289          vec4 ${y}() {
290            return ${(0,m.getGlsl)(this.context.glContext.version).texture2D}(${s}, halfCR);
291          }
292        `;return new h.GlslLibRoutine(e)}getPackedSampler1D(y,s,e){const f=[e.width,e.height],g=[f[1],f[0]],R=(0,m.getGlsl)(this.context.glContext.version),q=`vec4 ${y}(int index) {
293      vec2 uv = packedUVfrom1D(
294      ${g[0]}, ${g[1]}, index);
295      return ${R.texture2D}(${s}, uv);
296    }`;return new h.GlslLibRoutine(q,["coordinates.packedUVfrom1D"])}getPackedSampler2D(y,s,e){const f=e.unpackedShape,g=[e.width,e.height],R=(0,m.getGlsl)(this.context.glContext.version),q=g[0],H=g[1];if(g!=null&&d.ArrayUtil.arraysEqual(f,g)){const ne=`vec4 ${y}(int row, int col) {
297        vec2 uv = (vec2(col, row) + halfCR) / vec2(${H}.0, ${q}.0);
298        return ${R.texture2D}(${s}, uv);
299      }`;return new h.GlslLibRoutine(ne)}const te=g,re=Math.ceil(f[1]/2),ae=`vec4 ${y}(int row, int col) {
300      vec2 uv = packedUVfrom2D(${te[1]}, ${te[0]}, ${re}
300, row, col);
301      return ${R.texture2D}(${s}, uv);
302    }`;return new h.GlslLibRoutine(ae,["coordinates.packedUVfrom2D"])}getPackedSampler3D(y,s,e){const f=e.unpackedShape,g=[e.width,e.height],R=[g[0],g[1]],q=(0,m.getGlsl)(this.context.glContext.version);if(f[0]===1){const ne=f.slice(1),oe=[1,2],le=(0,w.squeezeInputShape)(f,ne),ce=["b","row","col"],ue=JSON.parse(JSON.stringify(e));ue.unpackedShape=le;const he=this.getPackedSamplerFromInput(y,s,ue),ge=`${he.routineBody}
303      vec4 ${y}(int b, int row, int col) {
304        return ${y}(${(0,w.getSqueezedParams)(ce,oe)});
305      } `;return new h.GlslLibRoutine(ge,he.dependencies)}const H=R[0],te=R[1],re=Math.ceil(f[2]/2),ae=`vec4 ${y}(int b, int row, int col) {
306      vec2 uv = packedUVfrom3D(
307        ${te}, ${H}, ${re*Math.ceil(f[1]/2)}, ${re}, b, row, col);
308      return ${q.texture2D}(${s}, uv);}`;return new h.GlslLibRoutine(ae,["coordinates.packedUVfrom3D"])}getPackedSamplerND(y,s,e){const f=e.unpackedShape,g=f.length,R=[e.width,e.height],q=(0,m.getGlsl)(this.context.glContext.version),H=[R[0],R[1]],te=H[1],re=H[0],ae=Math.ceil(f[g-1]/2);let ne=ae*Math.ceil(f[g-2]/2),oe="int b, int row, int col",le=`b * ${ne} + (row / 2) * ${ae} + (col / 2)`;for(let ue=2;ue<g-1;ue++)oe=`int b${ue}, `+oe,ne*=f[g-ue-1],le=`b${ue} * ${ne} + `+le;const ce=`vec4 ${y}(${oe}) {
309      int index = ${le};
310      int texR = index / ${re};
311      int texC = index - texR * ${re};
312      vec2 uv = (vec2(texC, texR) + halfCR) / vec2(${re}, ${te});
313      return ${q.texture2D}(${s}, uv);
314    }`;return new h.GlslLibRoutine(ce)}getUnpackedSamplerScalar(y,s,e){const[f,g]=[e.width,e.height];if(f===1&&g===1){const q=`
315          float ${y}() {
316            return sampleTexture(${s}, halfCR);
317          }
318        `;return new h.GlslLibRoutine(q,["coordinates.sampleTexture"])}const R=`
319        float ${y}() {
320          int offset_${s} = coordsToOffset(TexCoords, ${f}, ${g});
321          vec2 uv = uvFromFlat(${f}, ${g}, offset_${s});
322          return sampleTexture(${s}, uv);
323        }
324      `;return new h.GlslLibRoutine(R,["coordinates.uvFromFlat","coordinates.sampleTexture","coordinates.coordsToOffset"])}getUnpackedSampler1D(y,s,e){const f=e.width,g=e.height;if(g===1&&f===1){const q=`
325        float ${y}(int index) {
326          return sampleTexture(${s}, halfCR);
327        }
328      `;return new h.GlslLibRoutine(q,["coordinates.sampleTexture"])}if(g===1){const q=`
329          float ${y}(int index) {
330            vec2 uv = vec2((float(index) + 0.5) / ${f}.0, 0.5);
331            return sampleTexture(${s}, uv);
332          }
333        `;return new h.GlslLibRoutine(q,["coordinates.sampleTexture"])}if(f===1){const q=`
334          float ${y}(int index) {
335            vec2 uv = vec2(0.5, (float(index) + 0.5) / ${g}.0);
336            return sampleTexture(${s}, uv);
337          }
338        `;return new h.GlslLibRoutine(q,["coordinates.sampleTexture"])}const R=`
339        float ${y}(int index) {
340          vec2 uv = uvFromFlat(${f}, ${g}, index);
341          return sampleTexture(${s}, uv);
342        }
343      `;return new h.GlslLibRoutine(R,["coordinates.uvFromFlat","coordinates.sampleTexture"])}getUnpackedSampler2D(y,s,e){const f=e.unpackedShape,g=[e.height,e.width];if(g!=null&&d.ArrayUtil.arraysEqual(f,g)){const ne=`
344          float ${y}(int row, int col) {
345            vec2 uv = (vec2(row, col) + halfCR) / vec2(${g[1]}.0, ${g[0]}.0);
346            return sampleTexture(${s}, uv);
347          }
348        `;return new h.GlslLibRoutine(ne,["coordinates.sampleTexture"])}const{newShape:R,keptDims:q}=(0,p.squeezeShape)(f),H=R;if(H.length<f.length){const ne=(0,w.squeezeInputShape)(f,H),oe=JSON.parse(JSON.stringify(e));oe.unpackedShape=ne;const le=["col","row"],ce=`
349          ${this.getUnpackedSamplerFromInput(y,s,oe).routineBody}
350          float ${y}(int row, int col) {
351            return ${y}(${(0,w.getSqueezedParams)(le,q)});
352          }
353        `;return new h.GlslLibRoutine(ce,["coordinates.sampleTexture"])}const te=g[1],re=g[0];if(re===1){const ne=`
354          float ${y}(int row, int col) {
355            int offset_${s} = coordsToOffset(TexCoords, ${te}, ${re});
356            float index = dot(vec3(row, col, offset_${s}), vec3(${f[1]}, 1, 1));
357            vec2 uv = vec2(0.5, (index + 0.5) / ${te}.0);
358            return sampleTexture(${s}, uv);
359          }
360        `;return new h.GlslLibRoutine(ne,["coordinates.sampleTexture","coordinates.coordsToOffset"])}if(te===1){const ne=`
361          float ${y}(int row, int col) {
362            int offset_${s} = coordsToOffset(TexCoords, ${te}, ${re});
363            float index = dot(vec3(row, col, offset_${s}), vec3(${f[1]}, 1, 1));
364            vec2 uv = vec2((index + 0.5) / ${re}.0, 0.5);
365            return sampleTexture(${s}, uv);
366          }
367        `;return new h.GlslLibRoutine(ne,["coordinates.sampleTexture","coordinates.coordsToOffset"])}const ae=`
368        float ${y}(int row, int col) {
369          int index = col * ${f[1]} + row;
370          vec2 uv = uvFromFlat(${te}, ${re}, index);
371          return sampleTexture(${s}, uv);
372        }
373      `;return new h.GlslLibRoutine(ae,["coordinates.uvFromFlat","coordinates.sampleTexture","coordinates.coordsToOffset"])}getUnpackedSampler3D(y,s,e){const f=e.unpackedShape,g=f[1]*f[2],R=f[2],{newShape:q,keptDims:H}=(0,p.squeezeShape)(f),te=q;if(te.length<f.length){const ae=(0,w.squeezeInputShape)(f,te),ne=["batch","col","row"],oe=JSON.parse(JSON.stringify(e));oe.unpackedShape=ae;const le=this.getUnpackedSamplerFromInput(y,s,oe),ce=H.reverse(),ue=`
374          ${le.routineBody}
375          float ${y}(int batch, int row, int col) {
376            return ${y}(${(0,w.getSqueezedParams)(ne,ce)});
377          }
378        `;return new h.GlslLibRoutine(ue,le.dependencies)}const re=`
379          float ${y}(int depth, int row, int col) {
380            // Explicitly use integer operations as dot() only works on floats.
381            int index = depth * ${g} + col * ${R} + row;
382            vec2 uv = uvFromFlat(${e.width}, ${e.height}, index);
383            return sampleTexture(${s}, uv);
384          }
385      `;return new h.GlslLibRoutine(re,["coordinates.uvFromFlat","coordinates.sampleTexture","coordinates.coordsToOffset"])}getUnpackedSampler4D(y,s,e){const f=e.unpackedShape,g=f[3],R=f[2]*g,q=`
386        float ${y}(int row, int col, int depth, int depth2) {
387          int index = row * ${f[1]*R} + col * ${R} +
388              depth2 * ${g} + depth;
389          vec2 uv = uvFromFlat(${e.width}, ${e.height}, index);
390          return sampleTexture(${s}, uv);
391        }
392      `;return new h.GlslLibRoutine(q,["coordinates.uvFromFlat","coordinates.sampleTexture"])}getUnpackedSampler5D(y,s,e){const f=e.unpackedShape,g=f[4],R=f[3]*g,q=f[2]*R,H=f[1]*q,{newShape:te,keptDims:re}=(0,p.squeezeShape)(f);if(te.length<f.length){const ne=(0,w.squeezeInputShape)(f,te),oe=["row","col","depth","depth2","depth3"],le=JSON.parse(JSON.stringify(e));le.unpackedShape=ne;const ce=`
393          ${this.getUnpackedSamplerFromInput(y,s,le).routineBody}
394          float ${y}(int row, int col, int depth, int depth2, int depth3) {
395            return ${y}(${(0,w.getSqueezedParams)(oe,re)});
396          }
397        `;return new h.GlslLibRoutine(ce,["coordinates.sampleTexture","coordinates.uvFromFlat"])}const ae=`
398        float ${y}(int row, int col, int depth, int depth2, int depth3) {
399          int index = row * ${H} + col * ${q} + depth * ${R} +
400          depth3 * ${g} + depth2;
401          vec2 uv = uvFromFlat(${e.width}, ${e.height}, index);
402          return sampleTexture(${s}, uv);
403        }
404      `;return new h.GlslLibRoutine(ae,["coordinates.sampleTexture","coordinates.uvFromFlat"])}getUnpackedSampler6D(y,s,e){const f=e.unpackedShape,g=f[5],R=f[4]*g,q=f[3]*R,H=f[2]*q,te=f[1]*H,{newShape:re,keptDims:ae}=(0,p.squeezeShape)(f);if(re.length<f.length){const oe=(0,w.squeezeInputShape)(f,re),le=["row","col","depth","depth2","depth3","depth4"],ce=JSON.parse(JSON.stringify(e));ce.unpackedShape=oe;const ue=`
405            ${this.getUnpackedSamplerFromInput(y,s,ce).routineBody}
406            float ${y}(int row, int col, int depth,
407              int depth2, int depth3, int depth4) {
408              return ${y}(${(0,w.getSqueezedParams)(le,ae)});
409            }
410          `;return new h.GlslLibRoutine(ue,["coordinates.sampleTexture","coordinates.uvFromFlat"])}const ne=`
411          float ${y}(int row, int col, int depth,
412            int depth2, int depth3, int depth4) {
413            int index = row * ${te} + col * ${H} + depth * ${q} +
414            depth2 * ${R} + depth3 * ${g} + depth4;
415            vec2 uv = uvFromFlat(${e.width}, ${e.height}, index);
416            return sampleTexture(${s}, uv);
417          }
418        `;return new h.GlslLibRoutine(ne,["coordinates.uvFromFlat","coordinates.sampleTexture","coordinates.coordsToOffset"])}toVec(){const y=this.context.outputTextureLayout,s=y.shape.length,e=y.strides,f=y.width,g=y.height,R=[];for(let H=0;H<s-1;++H)R.push(`
419        c[${H}] = offset / ${e[H]};`),R.push(`
420        offset -= c[${H}] * ${e[H]};`);R.push(`
421        c[${s-1}] = offset;`);const q=`
422      void toVec(vec2 texCoords, out int c[${s}]) {
423        int offset = coordsToOffset(texCoords, ${f}, ${g});
424        ${R.join("")}
425      }
426      void toVec(int offset, out int c[${s}]) {
427        ${R.join("")}
428      }
429    `;return{toVec:new h.GlslLibRoutine(q,["coordinates.coordsToOffset"])}}valueFrom(){const y={};return this.context.programInfo.inputNames.forEach(((s,e)=>{const f=this.context.inputTextureLayouts[e],g=(f.unpackedShape.length>0?f.unpackedShape:f.shape).length;let R=`_${s}`;y[R]=new h.GlslLibRoutine(this.getValueFromSingle(s,g,f.width,f.height,!1),[`shapeUtils.indicesToOffset${R}`,"coordinates.offsetToCoords","fragcolor.getColorAsFloat"]),R+="_T",y[R]=new h.GlslLibRoutine(this.getValueFromSingle(s,g,f.width,f.height,!0),[`shapeUtils.indicesToOffset${R}`,"coordinates.offsetToCoords","fragcolor.getColorAsFloat"])})),y}getValueFromSingle(y,s,e,f,g){let R=`_${y}`;return g&&(R+="_T"),`
430        float ${R}(int m[${s}]) {
431          int offset = indicesToOffset${R}(m);
432          vec2 coords = offsetToCoords(offset, ${e}, ${f});
433          float value = getColorAsFloat(${(0,m.getGlsl)(this.context.glContext.version).texture2D}(${y}, coords));
434          return value;
435        }
436        `}getPackedValueFrom(y,s,e,f,g){let R=`_${y}_Pack`;return g&&(R+="_T"),`
437        vec4 ${R}(int m[${s}]) {
438          int offset = indicesToOffset_${y}(m);
439          vec2 coords = offsetToCoords(offset, ${e}, ${f});
440          return ${(0,m.getGlsl)(this.context.glContext.version).texture2D}(${y}, coords);
441        }
442        `}}n.CoordsGlslLib=z},8520:(o,n)=>{var c;Object.defineProperty(n,"__esModule",{value:!0}),n.TopologicalSortGlslRoutines=n.GlslLibRoutineNode=n.GlslLibRoutine=n.GlslLib=n.GlslContext=n.FunctionType=void 0,(c=n.FunctionType||(n.FunctionType={}))[c.ValueBased=0]="ValueBased",c[c.Positional=1]="Positional",n.GlslContext=class{constructor(d,h,m,p){this.glContext=d,this.programInfo=h,this.inputTextureLayouts=m,this.outputTextureLayout=p}},n.GlslLib=class{constructor(d){this.context=d}},n.GlslLibRoutine=class{constructor(d,h){this.routineBody=d,this.dependencies=h}},n.GlslLibRoutineNode=class{constructor(d,h,m){this.name=d,this.dependencies=m||[],h&&(this.routineBody=h)}addDependency(d){d&&this.dependencies.push(d)}},n.TopologicalSortGlslRoutines=class{static returnOrderedNodes(d){if(!d||d.length===0)return[];if(d.length===1)return d;const h=new Set,m=new Set,p=new Array;return this.createOrderedNodes(d,h,m,p),p}static createOrderedNodes(d,h,m,p){for(let w=0;w<d.length;++w)this.dfsTraverse(d[w],h,m,p)}static dfsTraverse(d,h,m,p){if(!d||m.has(d.name))return;if(h.has(d.name))throw new Error("Cyclic dependency detected. Can't topologically sort routines needed for shader.");h.add(d.name);const w=d.dependencies;if(w&&w.length>0)for(let z=0;z<w.length;++z)this.dfsTraverse(w[z],h,m,p);
vendor: 1,806 bytes, lines 442-469
442p.push(d),m.add(d.name),h.delete(d.name)}}},7341:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.EncodingGlslLib=void 0;const d=c(8520);class h extends d.GlslLib{constructor(p){super(p)}getFunctions(){return Object.assign(Object.assign({},this.encodeFloat32()),this.decodeFloat32())}getCustomTypes(){return{}}encodeFloat32(){return{encode:new d.GlslLibRoutine(`highp vec4 encode(highp float f) {
443        return vec4(f, 0.0, 0.0, 0.0);
444      }
445        `)}}decodeFloat32(){return{decode:new d.GlslLibRoutine(`highp float decode(highp vec4 rgba) {
446        return rgba.r;
447      }
448        `)}}encodeUint8(){const p=h.isLittleEndian()?"rgba.rgba=rgba.abgr;":"";return{encode:new d.GlslLibRoutine(`
449      highp vec4 encode(highp float f) {
450        highp float F = abs(f);
451        highp float Sign = step(0.0,-f);
452        highp float Exponent = floor(log2(F));
453        highp float Mantissa = (exp2(- Exponent) * F);
454        Exponent = floor(log2(F) + 127.0) + floor(log2(Mantissa));
455        highp vec4 rgba;
456        rgba[0] = 128.0 * Sign  + floor(Exponent*exp2(-1.0));
457        rgba[1] = 128.0 * mod(Exponent,2.0) + mod(floor(Mantissa*128.0),128.0);
458        rgba[2] = floor(mod(floor(Mantissa*exp2(23.0 -8.0)),exp2(8.0)));
459        rgba[3] = floor(exp2(23.0)*mod(Mantissa,exp2(-15.0)));
460        ${p}
461        rgba = rgba / 255.0; // values need to be normalized to [0,1]
462        return rgba;
463    }
464        `)}}decodeUint8(){const p=h.isLittleEndian()?"rgba.rgba=rgba.abgr;":"";return{decode:new d.GlslLibRoutine(`
465        highp float decode(highp vec4 rgba) {
466          rgba = rgba * 255.0; // values need to be de-normalized from [0,1] to [0,255]
467          ${p}
468          highp float Sign = 1.0 - step(128.0,rgba[0])*2.0;
469          highp float Exponent = 2.0 * mod(rgba[0],128.0) + step(128.0,rgba[1]) 
469- 127.0;
470          highp float Mantissa = mod(rgba[1],128.0)*65536.0 + rgba[2]*256.0 +rgba[3] + float(0x800000);
471          highp float Result =  Sign * exp2(Exponent) * (Mantissa * exp2(-23.0 ));
472          return Result;
473      }
474        `)}}static isLittleEndian(){const p=new ArrayBuffer(4),w=new Uint32Array(p),z=new Uint8Array(p);if(w[0]=3735928559,z[0]===239)return!0;if(z[0]===222)return!1;throw new Error("unknown endianness")}}n.EncodingGlslLib=h},9894:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.FragColorGlslLib=void 0;const d=c(8520),h=c(5060);class m extends d.GlslLib{constructor(w){super(w)}getFunctions(){return Object.assign(Object.assign({},this.setFragColor()),this.getColorAsFloat())}getCustomTypes(){return{}}setFragColor(){const w=(0,h.getGlsl)(this.context.glContext.version);return{setFragColor:new d.GlslLibRoutine(`
475        void setFragColor(float value) {
476            ${w.output} = encode(value);
477        }
478        `,["encoding.encode"])}}getColorAsFloat(){return{getColorAsFloat:new d.GlslLibRoutine(`
479        float getColorAsFloat(vec4 color) {
480            return decode(color);
481        }
482        `,["encoding.decode"])}}}n.FragColorGlslLib=m},2848:(o,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.replaceInlines=void 0;const c=/@inline[\s\n\r]+(\w+)[\s\n\r]+([0-9a-zA-Z_]+)\s*\(([^)]*)\)\s*{(([^}]|[\n\r])*)}/gm;n.replaceInlines=function(d){const h={};let m;for(;(m=c.exec(d))!==null;){const p=m[3].split(",").map((w=>{const z=w.trim().split(" ");return z&&z.length===2?{type:z[0],name:z[1]}:null})).filter((w=>w!==null));h[m[2]]={params:p,body:m[4]}}for(const p in h){const w="(\\w+)?\\s+([_0-9a-zA-Z]+)\\s+=\\s+__FUNC__\\((.*)\\)\\s*;".replace("__FUNC__",p),z=new RegExp(w,"gm");for(;(m=z.exec(d))!==null;){const A=m[1],y=m[2],s=m[3].split(","),e=A?`${A} ${y};`:"";let f=h[p].body,g="";h[p].params.forEach(((q,H)=>{q&&(g+=`${q.type} ${q.name} = ${s[H]};
483`)})),f=`${g}
484 ${f}`,f=f.replace("return",`${y} = `);const R=`
485      ${e}
486      {
487        ${f}
488      }
489      `;d=d.replace(m[0],R)}}return d.replace(c,"")}},8879:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.GlslPreprocessor=void 0;const d=c(8520),h=c(2848),m=c(5483),p=c(5060);n.GlslPreprocessor=class{constructor(w,z,A,y){this.libs={},this.glslLibRoutineDependencyGraph={},this.context=new d.GlslContext(w,z,A,y),Object.keys(m.glslRegistry).forEach((e=>{const f=new m.glslRegistry[e](this.context);this.libs[e]=f}));const s=this.glslLibRoutineDependencyGraph;for(const e in this.libs){const f=this.libs[e].getFunctions();for(const g in f){const R=e+"."+g;let q;s[R]?(q=s[R],q.routineBody=f[g].routineBody):(q=new d.GlslLibRoutineNode(R,f[g].routineBody),s[R]=q);const H=f[g].dependencies;if(H)for(let te=0;te<H.length;++te)if(s[H[te]])q.addDependency(s[H[te]]);else{const re=new d.GlslLibRoutineNode(H[te]);s[H[te]]=re,q.addDependency(re)}}}}preprocess(){const w=this.context.programInfo;let z=w.shaderSource;return this.context.programInfo.hasMain||(z=`${z}
490      ${(0,p.getDefaultFragShaderMain)(this.context.glContext.version,this.context.outputTextureLayout.shape.length)}`),z=(0,h.replaceInlines)(z),`${(0,p.getFragShaderPreamble)(this.context.glContext.version)}
491    ${this.getUniforms(w.inputNames,w.variables)}
492    ${this.getImports(z)}
493    ${z}`}getImports(w){const z=this.selectGlslLibRoutinesToBeIncluded(w);if(z.length===0)return"";let A="";for(let y=0;y<z.length;++y){if(!z[y].routineBody)throw new Error(`Missing body for the Glsl Library routine: ${z[y].name}`);A+=z[y].routineBody+`
494`}return A}selectGlslLibRoutinesToBeIncluded(w){const z=[];return Object.keys(this.glslLibRoutineDependencyGraph).forEach((A=>{const y=A.split(".")[1];w.indexOf(y)!==-1&&z.push(this.glslLibRoutineDependencyGraph[A])})),d.TopologicalSortGlslRoutines.returnOrderedNodes(z)}getUniforms(w,z){const A=[];if(w)for(const y of w)A.push(`uniform sampler2D ${y};`);if(z)for(const y of z)A.push(`uniform ${y.type} ${y.name}${y.arrayLength?`[${y.arrayLength}]`:""};`);return A.join(`
495`)}}},5483:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.glslRegistry=void 0;const d=c(5107),h=c(7341),m=c(9894),p=c(2655),w=c(3891);n.glslRegistry={encoding:h.EncodingGlslLib,fragcolor:m.FragColorGlslLib,vec:w.VecGlslLib,shapeUtils:p.ShapeUtilsGlslLib,coordinates:d.CoordsGlslLib}},2655:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.ShapeUtilsGlslLib=void 0;const d=c(8520);
vendor: 4,240 bytes, lines 495-546
495class h extends d.GlslLib{constructor(p){super(p)}getFunctions(){return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},this.bcastIndex()),this.bcastMatmulIndex()),this.offsetToIndices()),this.indicesToOffset()),this.incrementIndices())}getCustomTypes(){return{}}bcastIndex(){const p=this.context.outputTextureLayout.shape.length,w={};return this.context.programInfo.inputNames.forEach(((z,A)=>{const y=this.context.inputTextureLayouts[A].unpackedShape;if(y.length<=p){const s=y.length,e=p-s,f=`bcastIndices_${z}`;let g="";for(let q=0;q<s;++q)g+=`
496          realIndices[${q}] = int( mod(float(bcastedIndices[${e+q}]), ${y[q]}.0) );
497          `;const R=`
498        void ${f} (int bcastedIndices[${p}], out int realIndices[${s}]) {
499          ${g}
500        }
501        `;w[f]=new d.GlslLibRoutine(R)}})),w}bcastMatmulIndex(){const p=this.context.outputTextureLayout.shape.length,w={};return this.context.programInfo.inputNames.forEach(((z,A)=>{const y=this.context.inputTextureLayouts[A].shape;if(!(y.length<2||y.length>p)){const s=y.length,e=p-s,f=`bcastMatmulIndices_${z}`;let g="";for(let q=0;q<s-2;++q)g+=`
502          realIndices[${q}] = int( mod(float(bcastedIndices[${e+q}]), ${y[q]}.0) );
503          `;const R=`
504        void ${f}(int bcastedIndices[${p}], out int realIndices[${s}]) {
505          ${g}
506          realIndices[${s-1}] = bcastedIndices[${p-1}];
507          realIndices[${s-2}] = bcastedIndices[${p-2}];
508        }
509        `;w[f]=new d.GlslLibRoutine(R)}})),w}indicesToOffset(){const p={};return this.context.programInfo.inputNames.forEach(((w,z)=>{const A=this.context.inputTextureLayouts[z].shape,y=this.context.inputTextureLayouts[z].strides,s=A.length;let e=`indicesToOffset_${w}`;p[e]=new d.GlslLibRoutine(h.indexToOffsetSingle(e,s,y)),e=`indicesToOffset_${w}_T`,p[e]=new d.GlslLibRoutine(h.indexToOffsetSingle(e,s,y.slice().reverse()))})),p}static indexToOffsetSingle(p,w,z){let A="";for(let y=w-1;y>=0;--y)A+=`
510        offset += indices[${y}] * ${z[y]};
511        `;return`
512      int ${p}(int indices[${w}]) {
513        int offset = 0;
514        ${A}
515        return offset;
516      }
517      `}offsetToIndices(){const p={};return this.context.programInfo.inputNames.forEach(((w,z)=>{const A=this.context.inputTextureLayouts[z].shape,y=this.context.inputTextureLayouts[z].strides,s=A.length;let e=`offsetToIndices_${w}`;p[e]=new d.GlslLibRoutine(h.offsetToIndicesSingle(e,s,y)),e=`offsetToIndices_${w}_T`,p[e]=new d.GlslLibRoutine(h.offsetToIndicesSingle(e,s,y.slice().reverse()))})),p}static offsetToIndicesSingle(p,w,z){const A=[];for(let y=0;y<w-1;++y)A.push(`
518      indices[${y}] = offset / ${z[y]};`),A.push(`
519        offset -= indices[${y}] * ${z[y]};`);return A.push(`
520      indices[${w-1}] = offset;`),`
521      void ${p}(int offset, out int indices[${w}]) {
522        ${A.join("")}
523      }
524      `}incrementIndices(){const p={};return this.context.programInfo.inputNames.forEach(((w,z)=>{const A=this.context.inputTextureLayouts[z].shape,y=A.length,s=`incrementIndices_${w}`;let e="";for(let g=0;g<y;++g)e+=`
525        shape[${g}] = ${A[g]};`;const f=`
526        void ${s}(int axis, out int indices[${y}]) {
527          int shape[${y}];
528          ${e};
529          for(int i = ${y} -1 ; i >= 0; --i) {
530            if(i > axis) continue;
531            indices[i] += 1;
532            if(indices[i] < shape[i]) {
533              break;
534            }
535            indices[i] = 0;
536          }
537        }
538        `;p[s]=new d.GlslLibRoutine(f)})),p}}n.ShapeUtilsGlslLib=h},5060:(o,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.getDefaultFragShaderMain=n.getFragShaderPreamble=n.getVertexShaderSource=n.getGlsl=void 0;const c={version:"",attribute:"attribute",varyingVertex:"varying",varyingFrag:"varying",texture2D:"texture2D",output:"gl_FragColor",outputDeclaration:""},d={version:"#version 300 es",attribute:"in",varyingVertex:"out",varyingFrag:"in",texture2D:"texture",output:"outputColor",outputDeclaration:"out vec4 outputColor;"};function h(m){return m===1?c:d}n.getGlsl=h,n.getVertexShaderSource=function(m){const p=h(m);return`${p.version}
539      precision highp float;
540      ${p.attribute} vec3 position;
541      ${p.attribute} vec2 textureCoord;
542
543      ${p.varyingVertex} vec2 TexCoords;
544
545      void main()
546      {
547          gl_Position = vec4(position, 1.0);
548          TexCoords = textureCoord;
549      }`},n.getFragShaderPreamble=function(m){const p=h(m);return`${p.version}
550    precision highp float;
551    precision highp int;
552    precision highp sampler2D;
553    ${p.varyingFrag} vec2 TexCoords;
554    ${p.outputDeclaration}
555    const vec2 halfCR = vec2(0.5, 0.5);
556
557    // Custom vector types to handle higher dimenalities.
558    struct ivec5
559    {
560      int x;
561      int y;
562      int z;
563      int w;
564      int u;
565    };
566
567    struct ivec6
568    {
569      int x;
570      int y;
571      int z;
572      int w;
573      int u;
574      int v;
575    };
576
577    int imod(int x, int y) {
578      return x - y * (x / y);
579    }
580
581    `},n.getDefaultFragShaderMain=function(m,p){return`
582  void main() {
583    int indices[${p}];
584    toVec(TexCoords, indices);
585    vec4 result = vec4(process(indices));
586    ${h(m).output} = result;
587  }
588  `}},3891:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.VecGlslLib=void 0;const d=c(8520);class h extends d.GlslLib{constructor(p){super(p)}getCustomTypes(){return{}}getFunctions(){return Object.assign(Object.assign(Object.assign(Object.assign({},this.binaryVecFunctions()),this.copyVec()),this.setVecItem()),this.getVecItem())}binaryVecFunctions(){const p=this.context.outputTextureLayout.shape.length,w={add:"+=",sub:"-=",mul:"*=",div:"/="},z={};for(const A in w){const y=`${A}Vec`;let s="";for(let f=0;f<p;++f)s+=`
589          dest[${f}] ${w[A]} src[${f}];
590          `;const e=`
591        void ${y}(int src[${p}], out int dest[${p}]) {
592          ${s}
593        }
594        `;z[y]=new d.GlslLibRoutine(e)}return z}copyVec(){const p=this.context.outputTextureLayout.shape.length;let w="";for(let A=0;A<p;++A)w+=`
595        dest[${A}] = src[${A}];
596        `;const z=`
597      void copyVec(int src[${p}], out int dest[${p}]) {
598        ${w}
599      }
600      `;return{copyVec:new d.GlslLibRoutine(z)}}setVecItem(){const p=this.context.outputTextureLayout.shape.length;let w=`
601        if(index < 0)
602            index =${p} + index;
603        if (index == 0)
604            m[0] = value;
605        `;for(let A=1;A<p-1;++A)w+=`
606        else if (index == ${A})
607            m[${A}] = value;
608            `;w+=`
609        else
610            m[${p-1}] = value;
611        `;const z=`
612      void setVecItem(out int m[${p}], int index, int value) {
613        ${w}
614      }
615        `;return{setVecItem:new d.GlslLibRoutine(z)}}getVecItem(){const p=this.context.outputTextureLayout.shape.length;let w=`
616        if(index < 0)
617            index = ${p} + index;
618        if (index == 0)
619            return m[0];
620      `;for(let A=1;A<p-1;++A)w+=`
621        else if (index == ${A})
622            return m[${A}];
623      `;w+=`
624        else
625            return m[${p-1}];
626        `;const z=`
627      int getVecItem(int m[${p}], int index) {
628        ${w}
629      }
630    `;return{getVecItem:new d.GlslLibRoutine(z)}}}n.VecGlslLib=h},8316:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.WebGLInferenceHandler=void 0;const d=c(6231),h=c(9162),m=c(2517),p=c(2403),w=c(7019),z=c(8710),A=c(5611),y=c(4057),s=c(2039);n.WebGLInferenceHandler=class{constructor(e){this.session=e,this.packedTextureDataCache=new Map,this.unpackedTextureDataCache=new Map}calculateTextureWidthAndHeight(e,f){return(0,y.calculateTextureWidthAndHeight)(this.session.layoutStrategy,e,f)}executeProgram(e,f){if(f.length<e.inputNames.length)throw new Error(`Input size mustn't be less than ${e.inputNames.length}.`);if(e.inputNames.length!==e.inputTypes.length)throw new Error("input names size does not match input types");const g=[];for(let ae=0;ae<e.inputNames.length;++ae)g[ae]=this.getOrCreateTextureData(f[ae],e.inputTypes[ae]);const R=((ae,ne)=>{const oe=ne.map((ce=>`${ce.unpackedShape.join(",")};${ce.width}x${ce.height}`)).join("_");let le=ae.name;return ae.cacheHint&&(le+="["+ae.cacheHint+"]"),le+=":"+oe,le})(e,g);let q=this.session.programManager.getArtifact(R);const H=q?q.programInfo:typeof e.get=="function"?e.get():e,te=(0,y.createTextureLayoutFromTextureType)(this.session.layoutStrategy,H.output.dims,H.output.textureType),re=this.createTextureData(te,H.output.type);return q||(q=this.session.programManager.build(H,g,re),this.session.programManager.setArtifact(R,q)),this.runProgram(q,g,re),re}run(e,f){return this.executeProgram(e,f).tensor}runProgram(e,f,g){for(let R=0;R<f.length;++R)if(!!f[R].isPacked!=(e.programInfo.inputTypes[R]===s.TextureType.packed))throw new Error(`input[${R}] property packed inconsistent`);if(!!g.isPacked!=(e.programInfo.output.textureType===s.TextureType.packed))throw new Error("output property packed inconsistent");this.session.programManager.run(e,f,g)}getOrCreateTextureData(e,f){let g=this.getTextureData(e.dataId,f===s.TextureType.packed);if(!g&&(g=this.getTextureData(e.dataId,f!==s.TextureType.packed),g))return f===s.TextureType.packed?this.pack(g):this.unpack(g);if(!g){const R=(0,y.createTextureLayoutFromTextureType)(this.session.layoutStrategy,e.dims,f);if(f===s.TextureType.packedLastDimension){const te=e.dims;if(te.length===4){const re=[te[0],Math.ceil(te[1]*te[2]*te[3]/4)],ae=(0,y.createTextureLayoutFromTextureType)(this.session.layoutStrategy,re,f);let ne=e.numberData;
vendor: 9,928 bytes, lines 630-639
630if(te[1]*te[2]*te[3]%4!=0){const oe=te[0],le=te[1]*te[2]*te[3],ce=Math.ceil(le*1/4)*4;ne=new Float32Array(oe*ce);for(let ue=0;ue<oe;++ue){const he=ue*le,ge=ue*ce+ue%1*le;ne.set(e.numberData.subarray(he,he+le),ge)}}return this.createTextureData(ae,e.type,ne,e,1)}}if(f===s.TextureType.packed){const q=(0,y.createTextureLayoutFromShape)(this.session.layoutStrategy,e.dims,1,[],{reverseWH:!0}),H=this.createTextureData(q,e.type,e.numberData,e,1);g=this.pack(H)}else g=this.createTextureData(R,e.type,e.numberData,e,1)}return g}createTextureDataFromLayoutBindTensor(e,f,g,R){return this.createTextureData(e,f,g,R,1)}createTextureData(e,f,g,R,q){d.Logger.verbose("InferenceHandler",`Creating TextureData: layout:[${JSON.stringify(e)}]`);const H=this.session.textureManager.createTextureFromLayout(f,e,g,q);return this.createTextureDataFromTexture(e,f,H,R)}reshapeUnpacked(e,f){const g=this.getOrCreateTextureData(e,s.TextureType.unpacked),R={channels:g.channels,height:g.height,width:g.width,shape:f.length!==0?f:[1],strides:m.ShapeUtil.computeStrides(f),unpackedShape:f};return this.createTextureDataFromTexture(R,e.type,g.texture).tensor}reshapePacked(e,f){const g=this.getOrCreateTextureData(e,s.TextureType.packed);if((0,w.isReshapeCheap)(e.dims,f)){const re={channels:g.channels,height:g.height,width:g.width,shape:f.length!==0?f:[1],strides:m.ShapeUtil.computeStrides(f),unpackedShape:f,isPacked:!0};return this.createTextureDataFromTexture(re,e.type,g.texture).tensor}const R=(0,w.processDims3D)(e.dims),q=(0,w.processDims3D)(f),H=this.reshapePacked(e,R),te=this.run((0,w.createPackedReshape3DProgramInfoLoader)(this,H,q),[H]);return this.reshapePacked(te,f)}cast(e,f){const g=this.getOrCreateTextureData(e,s.TextureType.unpacked);return this.createTextureDataFromTexture(g,f,g.texture).tensor}createTextureDataFromTexture(e,f,g,R,q){const H=Object.assign(Object.assign({},e),{tensor:R||new h.Tensor(e.unpackedShape,f,(te=>this.readTexture(H)),(async te=>this.readTextureAsync(H)),void 0,q),texture:g});return this.setTextureData(H.tensor.dataId,H,e.isPacked),H}getTextureData(e,f=!1){return this.session.isInitializer(e)?this.session.getTextureData(e,f):f?this.packedTextureDataCache.get(e):this.unpackedTextureDataCache.get(e)}setTextureData(e,f,g=!1){this.session.isInitializer(e)?this.session.setTextureData(e,f,g):(g?this.packedTextureDataCache:this.unpackedTextureDataCache).set(e,f)}isTextureLayoutCached(e,f=!1){return!!this.getTextureData(e.dataId,f)}dispose(){this.session.textureManager.clearActiveTextures(),this.packedTextureDataCache.forEach((e=>this.session.textureManager.releaseTexture(e))),this.packedTextureDataCache=new Map,this.unpackedTextureDataCache.forEach((e=>this.session.textureManager.releaseTexture(e))),this.unpackedTextureDataCache=new Map}readTexture(e){return e.isPacked?this.readTexture(this.unpack(e)):this.session.backend.glContext.isFloat32DownloadSupported?this.session.textureManager.readTexture(e,e.tensor.type,e.channels):this.session.textureManager.readUint8TextureAsFloat((0,z.encodeAsUint8)(this,e))}async readTextureAsync(e){return e.isPacked?this.readTextureAsync(this.unpack(e)):this.session.backend.glContext.isFloat32DownloadSupported?this.session.textureManager.readTextureAsync(e,e.tensor.type,e.channels):this.session.textureManager.readUint8TextureAsFloat((0,z.encodeAsUint8)(this,e))}pack(e){return this.executeProgram((0,p.createPackProgramInfoLoader)(this,e.tensor),[e.tensor])}unpack(e){return this.executeProgram((0,A.createUnpackProgramInfoLoader)(this,e.tensor),[e.tensor])}}},1640:function(o,n,c){var d=this&&this.__createBinding||(Object.create?function(ye,ke,Ae,Ie){Ie===void 0&&(Ie=Ae);var qe=Object.getOwnPropertyDescriptor(ke,Ae);qe&&!("get"in qe?!ke.__esModule:qe.writable||qe.configurable)||(qe={enumerable:!0,get:function(){return ke[Ae]}}),Object.defineProperty(ye,Ie,qe)}:function(ye,ke,Ae,Ie){Ie===void 0&&(Ie=Ae),ye[Ie]=ke[Ae]}),h=this&&this.__setModuleDefault||(Object.create?function(ye,ke){Object.defineProperty(ye,"default",{enumerable:!0,value:ke})}:function(ye,ke){ye.default=ke}),m=this&&this.__importStar||function(ye){if(ye&&ye.__esModule)return ye;var ke={};if(ye!=null)for(var Ae in ye)Ae!=="default"&&Object.prototype.hasOwnProperty.call(ye,Ae)&&d(ke,ye,Ae);return h(ke,ye),ke};Object.defineProperty(n,"__esModule",{value:!0}),n.WEBGL_OP_RESOLVE_RULES=void 0;const p=c(2898),w=m(c(7839)),z=c(4196),A=c(2069),y=c(8138),s=c(9663),e=c(5193),f=c(7992),g=c(1253),R=c(4776),q=c(6572),H=c(3346),te=c(5623),re=c(2870),ae=c(2143),ne=c(4939),oe=c(718),le=c(2268),ce=c(8117),ue=c(2278),he=c(5524),ge=c(5975),Oe=c(3933),$e=c(6558),Pe=c(5723),Le=c(3738),me=m(c(4909)),we=c(8428),Se=c(9793);n.WEBGL_OP_RESOLVE_RULES=[["Abs","","6+",me.abs],["Acos","","7+",me.acos],["Add","","7+",w.add],["And","","7+",w.and],["Asin","","7+",me.asin],["Atan","","7+",me.atan],["AveragePool","","7+",ae.averagePool,ae.parseAveragePoolAttributes],["BatchNormalization","","7+",p.batchNormalization,p.parseBatchNormalizationAttributes],["Cast","","6+",z.cast,z.parseCastAttributes],["Ceil","","6+",me.ceil],["Clip","","6-10",me.clip,me.parseClipAttributes],["Clip","","11+",me.clipV11],["Concat","","4+",A.concat,A.parseConcatAttributes],["Conv","","1+",y.conv,y.parseConvAttributes],["ConvTranspose","","1+",s.convTranspose,s.parseConvTransposeAttributes],["Cos","","7+",me.cos],["Div","","7+",w.div],["Dropout","","7+",me.identity],["DepthToSpace","","1+",e.depthToSpace,e.parseDepthToSpaceAttributes],["Equal","","7+",w.equal],["Elu","","6+",me.elu,me.parseEluAttributes],["Exp","","6+",me.exp],["Flatten","","1+",f.flatten,f.parseFlattenAttributes],["Floor","","6+",me.floor],["FusedConv","com.microsoft","1+",y.conv,y.parseConvAttributes],["Gather","","1+",g.gather,g.parseGatherAttributes],["Gemm","","7-10",R.gemm,R.parseGemmAttributesV7],["Gemm","","11+",R.gemm,R.parseGemmAttributesV11],["GlobalAveragePool","","1+",ae.globalAveragePool,ae.parseGlobalAveragePoolAttributes],["GlobalMaxPool","","1+",ae.globalMaxPool],["Greater","","7+",w.greater],["Identity","","1+",me.identity],["ImageScaler","","1+",q.imageScaler,q.parseImageScalerAttributes],["InstanceNormalization","","6+",H.instanceNormalization,H.parseInstanceNormalizationAttributes],["LeakyRelu","","6+",me.leakyRelu,me.parseLeakyReluAttributes],["Less","","7+",w.less],["Log","","6+",me.log],["MatMul","","1+",te.matMul,te.parseMatMulAttributes],["MaxPool","","1+",ae.maxPool,ae.parseMaxPoolAttributes],["Mul","","7+",w.mul],["Neg","","6+",me.neg],["Not","","1+",me.not],["Or","","7+",w.or],["Pad","","2-10",re.padV2,re.parsePadAttributesV2],["Pad","","11+",re.padV11,re.parsePadAttributesV11],["Pow","","7+",w.pow],["PRelu","","7+",w.pRelu],["ReduceLogSum","","1+",ne.reduceLogSum,ne.parseReduceAttributes],["ReduceMax","","1+",ne.reduceMax,ne.parseReduceAttributes],["ReduceMean","","1+",ne.reduceMean,ne.parseReduceAttributes],["ReduceMin","","1+",ne.reduceMin,ne.parseReduceAttributes],["ReduceProd","","1+",ne.reduceProd,ne.parseReduceAttributes],["ReduceSum","","1-12",ne.reduceSum,ne.parseReduceAttributes],["ReduceSumSquare","","1+",ne.reduceLogSumSquare,ne.parseReduceAttributes],["Relu","","6+",me.relu],["Reshape","","5+",oe.reshape],["Resize","","10",le.resize,le.parseResizeAttributesV10],["Resize","","11+",le.resize,le.parseResizeAttributesV11],["Shape","","1+",ce.shape],["Sigmoid","","6+",me.sigmoid],["Sin","","7+",me.sin],["Slice","","10+",ue.sliceV10],["Slice","","1-9",ue.slice,ue.parseSliceAttributes],["Softmax","","1-12",he.softmax,he.parseSoftmaxAttributes],["Softmax","","13+",he.softmaxV13,he.parseSoftmaxAttributesV13],["Split","","2-12",ge.split,ge.parseSplitAttributes],["Sqrt","","6+",me.sqrt],["Squeeze","","1-12",Oe.squeeze,Oe.parseSqueezeAttributes],["Squeeze","","13+",Oe.squeezeV13],["Sub","","7+",w.sub],["Sum","","6+",$e.sum],["Tan","","7+",me.tan],["Tanh","","6+",me.tanh],["Tile","","6+",Pe.tile],["Transpose","","1+",Le.transpose,Le.parseTransposeAttributes],["Upsample","","7-8",Se.upsample,Se.parseUpsampleAttributesV7],["Upsample","","9",Se.upsample,Se.parseUpsampleAttributesV9],["Unsqueeze","","1-12",we.unsqueeze,we.parseUnsqueezeAttributes],["Unsqueeze","","13+",we.unsqueezeV13],["Xor","","7+",w.xor]]},2898:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.parseBatchNormalizationAttributes=n.batchNormalization=void 0;const d=c(246),h=c(5060),m=c(2039),p={name:"BatchNormalization",inputNames:["A","Scale","B","Mean","Variance"],inputTypes:[m.TextureType.unpacked,m.TextureType.unpacked,m.TextureType.unpacked,m.TextureType.unpacked,m.TextureType.unpacked]};n.batchNormalization=(A,y,s)=>(z(y),[A.run(Object.assign(Object.assign({},p),{cacheHint:s.cacheKey,get:()=>w(A,y,s)}),y)]),n.parseBatchNormalizationAttributes=A=>{const y=A.attributes.getFloat("epsilon",1e-5),s=A.attributes.getFloat("momentum",.9),e=A.attributes.getInt("spatial",1);return(0,d.createAttributeWithCacheKey)({epsilon:y,momentum:s,spatial:e})};const w=(A,y,s)=>{const e=(0,h.getGlsl)(A.session.backend.glContext.version),f=y[0].dims.length,[g,R]=A.calculateTextureWidthAndHeight(y[1].dims,m.TextureType.unpacked),q=`
631  float process(int[${f}] indices) {
632    vec2 position = offsetToCoords(indices[1], ${g}, ${R});
633    float scale = getColorAsFloat(${e.texture2D}(Scale, position));
634    float mean = getColorAsFloat(${e.texture2D}(Mean, position));
635    float variance = getColorAsFloat(${e.texture2D}(Variance, position));
636    float b = getColorAsFloat(${e.texture2D}(B, position));
637
638    return scale * ( (_A(indices) - mean) / sqrt(variance + float(${s.epsilon})) ) + b;
639  }`;return Object.assign(Object.assign({},p),{output:{dims:y[0].dims,type:y[0].type,textureType:m.TextureType.unpacked},shaderSource:q})},z=A=>{if(!A||A.length!==5)throw new Error("BatchNormalization requires 5 inputs.");const y=A[0],s=A[1],e=A[2],f=A[3],g=A[4];if(y.dims.length<3||s.dims.length!==1||e.dims.length!==1||f.dims.length!==1||g.dims.length!==1)throw new Error("invalid input shape.");
639if(s.dims[0]!==y.dims[1]||e.dims[0]!==y.dims[1]||f.dims[0]!==y.dims[1]||g.dims[0]!==y.dims[1])throw new Error("invalid input shape.");if(y.type!=="float32"&&y.type!=="float64"||s.type!=="float32"&&s.type!=="float64"||e.type!=="float32"&&e.type!=="float64"||f.type!=="float32"&&f.type!=="float64"||g.type!=="float32"&&g.type!=="float64")throw new Error("invalid input tensor types.")}},7839:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.xor=n.sub=n.pRelu=n.pow=n.or=n.mul=n.less=n.greater=n.equal=n.div=n.and=n.add=n.glslPRelu=n.glslPow=n.glslXor=n.glslOr=n.glslAnd=n.glslLess=n.glslGreater=n.glslEqual=n.glslSub=n.glslMul=n.glslDiv=n.glslAdd=void 0;const d=c(2517),h=c(8520),m=c(5060),p=c(2039);function w(){const ne="add_";return{body:`
640  float ${ne}(float a, float b) {
641    return a + b;
642  }
643  vec4 ${ne}(vec4 v1, vec4 v2) {
644    return v1 + v2;
645  }
646  `,name:ne,type:h.FunctionType.ValueBased}}function z(){const ne="div_";return{body:`
647  float ${ne}(float a, float b) {
648    return a / b;
649  }
650  vec4 ${ne}(vec4 v1, vec4 v2) {
651    return v1 / v2;
652  }
653  `,name:ne,type:h.FunctionType.ValueBased}}function A(){const ne="mul_";return{body:`
654  float ${ne}(float a, float b) {
655    return a * b;
656  }
657  vec4 ${ne}(vec4 v1, vec4 v2) {
658    return v1 * v2;
659  }
660  `,name:ne,type:h.FunctionType.ValueBased}}function y(){const ne="sub_";return{body:`
661  float ${ne}(float a, float b) {
662    return a - b;
663  }
664  vec4 ${ne}(vec4 v1, vec4 v2) {
665    return v1 - v2;
666  }
667  `,name:ne,type:h.FunctionType.ValueBased}}function s(){const ne="equal_";return{body:`
668  float ${ne}(float a, float b) {
669    return float(a == b);
670  }
671  vec4 ${ne}(vec4 v1, vec4 v2) {
672    return vec4(equal(v1, v2));
673  }
674  `,name:ne,type:h.FunctionType.ValueBased}}function e(){const ne="greater_";return{body:`
675  float ${ne}(float a, float b) {
676    return float(a > b);
677  }
678  vec4 ${ne}(vec4 v1, vec4 v2) {
679    return vec4( v1.r > v2.r ,
680      v1.g > v2.g,
681      v1.b > v2.b,
682      v1.a > v2.a );
683  }
684  `,name:ne,type:h.FunctionType.ValueBased}}function f(){const ne="less_";return{body:`
685  float ${ne}(float a, float b) {
686    return float(a < b);
687  }
688  vec4 ${ne}(vec4 v1, vec4 v2) {
689    return vec4( v1.r < v2.r ,
690                v1.g < v2.g,
691                v1.b < v2.b,
692                v1.a < v2.a );
693  }
694  `,name:ne,type:h.FunctionType.ValueBased}}function g(){const ne="and_";return{body:`
695  float ${ne}(float a, float b) {
696    return float( bool(a) && bool(b) );
697  }
698  vec4 ${ne}(vec4 v1, vec4 v2) {
699    bvec4 b1 = bvec4(v1);
700    bvec4 b2 = bvec4(v2);
701    return vec4( b1.r && b2.r ,
702                b1.g && b2.g,
703                b1.b && b2.b,
704                b1.a && b2.a );
705  }
706  `,name:ne,type:h.FunctionType.ValueBased}}function R(){return{body:`
707  float or_(float a, float b) {
708    return float( bool(a) || bool(b) );
709  }
710  vec4 or_(vec4 v1, vec4 v2) {
711    bvec4 b1 = bvec4(v1);
712    bvec4 b2 = bvec4(v2);
713    return vec4( b1.r || b2.r ,
714                b1.g || b2.g,
715                b1.b || b2.b,
716                b1.a || b2.a );
717  }
718  `,name:"or_",type:h.FunctionType.ValueBased}}function q(){const ne="xor_";return{body:`
719  float ${ne}(float a, float b) {
720    return float( bool(a) ^^ bool(b) );
721  }
722  vec4 ${ne}(vec4 v1, vec4 v2) {
723    bvec4 b1 = bvec4(v1);
724    bvec4 b2 = bvec4(v2);
725    return vec4( b1.r ^^ b2.r ,
726                b1.g ^^ b2.g,
727                b1.b ^^ b2.b,
728                b1.a ^^ b2.a );
729  }
730  `,name:ne,type:h.FunctionType.ValueBased}}function H(){return(function(ne){const oe=`${ne}_`;return{body:`
731  float ${oe}(float a, float b) {
732    return ${ne}(a, b);
733  }
734  vec4 ${oe}(vec4 v1, vec4 v2) {
735    return ${ne}(v1, v2);
736  }
737  `,name:oe,type:h.FunctionType.ValueBased}})("pow")}function te(){const ne="prelu_";return{body:`
738  float ${ne}(float a, float b) {
739    return a < 0.0 ? a * b: a;
740  }
741  vec4 ${ne}(vec4 v1, vec4 v2) {
742    return vec4(
743      v1.r < 0.0 ? v1.r * v2.r: v1.r,
744      v1.g < 0.0 ? v1.g * v2.g: v1.g,
745      v1.b < 0.0 ? v1.b * v2.b: v1.b,
746      v1.a < 0.0 ? v1.a * v2.a: v1.a
747      );
748  }
749  `,name:ne,type:h.FunctionType.ValueBased}}n.glslAdd=w,n.glslDiv=z,n.glslMul=A,n.glslSub=y,n.glslEqual=s,n.glslGreater=e,n.glslLess=f,n.glslAnd=g,n.glslOr=R,n.glslXor=q,n.glslPow=H,n.glslPRelu=te;const re=(ne,oe,le,ce=oe[0].type,ue)=>{const he=ne.session.pack?p.TextureType.packed:p.TextureType.unpacked;return{name:le.name,inputNames:["A","B"],inputTypes:[he,he],cacheHint:ue,get:()=>ae(ne,oe,le,ce)}},ae=(ne,oe,le,ce=oe[0].type)=>{const ue=ne.session.pack?p.TextureType.packed:p.TextureType.unpacked,he=!d.ShapeUtil.areEqual(oe[0].dims,oe[1].dims);let ge=oe[0].dims;const Oe=ne.session.pack;
vendor: 4,309 bytes, lines 749-792
749if(he){const Le=d.BroadcastUtil.calcShape(oe[0].dims,oe[1].dims,!1);if(!Le)throw new Error("Can't perform binary op on the given tensors");ge=Le;const me=ge.length,we=oe[0].dims.length!==0?oe[0].dims.length:1,Se=oe[1].dims.length!==0?oe[1].dims.length:1,ye=oe[0].dims.length!==0?"bcastIndices_A(indices, aindices);":"aindices[0] = 0;",ke=oe[1].dims.length!==0?"bcastIndices_B(indices, bindices);":"bindices[0] = 0;",Ae=(0,m.getGlsl)(ne.session.backend.glContext.version),Ie=Oe?`
750      ${le.body}
751      void main() {
752        vec4 a = getAAtOutCoords();
753        vec4 b = getBAtOutCoords();
754        vec4 result = ${le.name}(a, b);
755        ${Ae.output} = result;
756      }`:`
757      ${le.body}
758      float process(int indices[${me}]) {
759        int aindices[${we}];
760        int bindices[${Se}];
761        ${ye}
762        ${ke}
763        return ${le.name}(_A(aindices), _B(bindices));
764      }`;return{name:le.name,inputNames:["A","B"],inputTypes:[ue,ue],output:{dims:ge,type:ce,textureType:ue},shaderSource:Ie,hasMain:Oe}}const $e=(0,m.getGlsl)(ne.session.backend.glContext.version),Pe=`
765    ${le.body}
766    void main() {
767      vec4 v1 = ${$e.texture2D}(A, TexCoords);
768      vec4 v2 = ${$e.texture2D}(B, TexCoords);
769      vec4 result = ${le.name}(v1, v2);
770      ${$e.output} = result;
771    }
772    `;return{name:le.name,inputNames:["A","B"],inputTypes:[ue,ue],output:{dims:oe[0].dims,type:ce,textureType:ue},shaderSource:Pe,hasMain:!0}};n.add=(ne,oe)=>[ne.run(re(ne,oe,w()),oe)],n.and=(ne,oe)=>[ne.run(re(ne,oe,g(),"bool"),oe)],n.div=(ne,oe)=>[ne.run(re(ne,oe,z()),oe)],n.equal=(ne,oe)=>[ne.run(re(ne,oe,s(),"bool"),oe)],n.greater=(ne,oe)=>[ne.run(re(ne,oe,e(),"bool"),oe)],n.less=(ne,oe)=>[ne.run(re(ne,oe,f(),"bool"),oe)],n.mul=(ne,oe)=>[ne.run(re(ne,oe,A()),oe)],n.or=(ne,oe)=>[ne.run(re(ne,oe,R(),"bool"),oe)],n.pow=(ne,oe)=>[ne.run(re(ne,oe,H()),oe)],n.pRelu=(ne,oe)=>[ne.run(re(ne,oe,te()),oe)],n.sub=(ne,oe)=>[ne.run(re(ne,oe,y()),oe)],n.xor=(ne,oe)=>[ne.run(re(ne,oe,q(),"bool"),oe)]},4196:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.parseCastAttributes=n.cast=void 0;const d=c(2517);n.cast=(m,p,w)=>(h(p),[m.cast(p[0],w)]),n.parseCastAttributes=m=>d.ProtoUtil.tensorDataTypeFromProto(m.attributes.getInt("to"));const h=m=>{if(!m||m.length!==1)throw new Error("Cast requires 1 input.");if(m[0].type==="string")throw new Error("Invalid input type.")}},1163:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.createPackedConcatProgramInfoLoader=void 0;const d=c(5060),h=c(2039),m=c(9390),p=c(2827);n.createPackedConcatProgramInfoLoader=(z,A,y)=>{const s=(e=A.length,f=y.cacheKey,{name:"Concat (packed)",inputNames:Array.from({length:e},((g,R)=>`X${R}`)),inputTypes:Array(e).fill(h.TextureType.packed),cacheHint:f});var e,f;return Object.assign(Object.assign({},s),{get:()=>((g,R,q,H)=>{const te=q[0].dims.slice();if(H>=te.length||H<-1*te.length)throw new Error("axis specified for concat doesn't match input dimensionality");H<0&&(H=te.length+H);const re=te.slice(0);for(let ye=1;ye<q.length;ye++){const ke=q[ye].dims.slice();for(let Ae=0;Ae<te.length;Ae++)if(Ae===H)re[H]+=ke[Ae];else if(te[Ae]!==ke[Ae])throw new Error("non concat dimensions must match")}const ae=re.length,ne=(0,p.getChannels)("coords",ae),oe=(0,m.getCoordsDataType)(ae),le=(0,p.unpackFromChannel)(),ce=q.map((ye=>ye.dims)),ue=(0,m.getGlChannels)(ae),he=new Array(ce.length-1);he[0]=ce[0][H];for(let ye=1;ye<he.length;ye++)he[ye]=he[ye-1]+ce[ye][H];const ge=ue[H],Oe=ue.slice(-2),$e=ue.join();let Pe=`if (${ge} < ${he[0]}) {
773        return getChannel(
774            getX0(${$e}), vec2(${Oe.join()}));
775        }`;for(let ye=1;ye<he.length;ye++){const ke=he[ye-1];Pe+=`
776            if (${ge} < ${he[ye]}  && ${ge} >= ${he[ye-1]}) {
777              return getChannel(
778                getX${ye}(${w(ue,ge,ke)}),
779                vec2(${w(Oe,ge,ke)}));
780            }`}const Le=he.length,me=he[he.length-1];Pe+=`
781            return getChannel(
782              getX${Le}(${w(ue,ge,me)}),
783              vec2(${w(Oe,ge,me)}));`;const we=(0,d.getGlsl)(g.session.backend.glContext.version),Se=`
784          ${le}
785          float getValue(${ue.map((ye=>"int "+ye))}) {
786            ${Pe}
787          }
788
789          void main() {
790            ${oe} coords = getOutputCoords();
791            int lastDim = coords.${ue[ae-1]};
792            coords.${ue[ae-1]}
792 = coords.${ue[ae-2]};
793            coords.${ue[ae-2]} = lastDim;
794
795            vec4 result = vec4(getValue(${ne}), 0., 0., 0.);
796
797            ${ne[ae-1]} = ${ne[ae-1]} + 1;
798            if (${ne[ae-1]} < ${re[ae-1]}) {
799              result.g = getValue(${ne});
800            }
801
802            ${ne[ae-2]} = ${ne[ae-2]} + 1;
803            if (${ne[ae-2]} < ${re[ae-2]}) {
804              result.a = getValue(${ne});
805            }
806
807            ${ne[ae-1]} = ${ne[ae-1]} - 1;
808            if (${ne[ae-2]} < ${re[ae-2]} &&
809                ${ne[ae-1]} < ${re[ae-1]}) {
810              result.b = getValue(${ne});
811            }
812            ${we.output} = result;
813          }
814        `;return Object.assign(Object.assign({},R),{output:{dims:re,type:q[0].type,textureType:h.TextureType.packed},shaderSource:Se,hasMain:!0})})(z,s,A,y.axis)})};const w=(z,A,y)=>{const s=z.indexOf(A);return z.map(((e,f)=>f===s?`${e} - ${y}`:e)).join()}},2069:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.parseConcatAttributes=n.concat=void 0;const d=c(246),h=c(2039),m=c(1163);n.concat=(e,f,g)=>(s(f),e.session.pack&&f[0].dims.length>1?[e.run((0,m.createPackedConcatProgramInfoLoader)(e,f,g),f)]:[e.run(p(e,f,g),f)]);const p=(e,f,g)=>{const R=(q=f.length,H=g.cacheKey,{name:"Concat",inputNames:Array.from({length:q},((te,re)=>`X${re}`)),inputTypes:Array(q).fill(h.TextureType.unpacked),cacheHint:H});var q,H;return Object.assign(Object.assign({},R),{get:()=>((te,re,ae,ne)=>{const oe=ae[0].dims.slice();if(ne>=oe.length||ne<-1*oe.length)throw new Error("axis specified for concat doesn't match input dimensionality");ne<0&&(ne=oe.length+ne);const le=oe.slice(0);for(let $e=1;$e<ae.length;$e++){const Pe=ae[$e].dims.slice();for(let Le=0;Le<oe.length;Le++)if(Le===ne)le[ne]+=Pe[Le];else if(oe[Le]!==Pe[Le])throw new Error("non concat dimensions must match")}const ce=le.length,ue=new Array(ae.length);let he=0;for(let $e=0;$e<ue.length;++$e)he+=ae[$e].dims[ne],ue[$e]=he;let ge="";ge=ae.length<5?w(ue):z(ue);const Oe=`
815        ${A(ae.length,ce)}
816        ${y(ue)}
817        ${ge}
818        float process(int indices[${ce}]) {
819          int textureIndex = getTextureWhereDataResides (indices[${ne}]);
820
821          if(textureIndex != 0) {
822            indices[${ne}] = indices[${ne}] - int(getSizeInConcatAxisValueFromIndex(textureIndex-int(1)));
823          }
824
825          return fetchDataFromCorrectTexture(textureIndex, indices);
826        }`;return Object.assign(Object.assign({},re),{output:{dims:le,type:ae[0].type,textureType:h.TextureType.unpacked},shaderSource:Oe})})(0,R,f,g.axis)})},w=e=>`int getTextureWhereDataResides(int index) {
827      ${e.map(((f,g)=>`if(index<${f}) {return ${g};}
828`)).join("")}
829    }`,z=e=>w(e),A=(e,f)=>{const g=[`float fetchDataFromCorrectTexture(int textureIndex, int indices[${f}]) {`];for(let R=0;R<e;++R)R===0?g.push(`	if (textureIndex == ${R}) { return _X${R}(indices); }`):R===e-1?g.push(`	else { return _X${R}(indices); }`):g.push(`	else if (textureIndex == ${R}) { return _X${R}(indices); }`);return g.push("	}"),g.join(`
830`)},y=e=>{const f=["int getSizeInConcatAxisValueFromIndex(int index) {"];for(let g=0;g<e.length;++g)g===0?f.push(`	if (index == ${g}) { return ${e[g]}; }`):g===e.length-1?f.push(`	else { return ${e[g]}; }`):f.push(`	else if (index == ${g}) { return ${e[g]}; }`);return f.push("	}"),f.join(`
831`)};n.parseConcatAttributes=e=>(0,d.createAttributeWithCacheKey)({axis:e.attributes.getInt("axis")});const s=e=>{if(!e||e.length<1)throw new Error("too few inputs");const f=e[0].type,g=e[0].dims.length;if(f==="string")throw new Error("string tensor is not supported yet");for(const R of e){if(R.type!==f)throw new Error("input tensors should be one type");if(R.dims.length!==g)throw new Error("input tensors should have the same shape")}}},4770:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.createUnpackedGroupedConvProgramInfoLoader=void 0;const d=c(6231),h=c(5060),m=c(2039),p=c(8138),w=c(2823);n.createUnpackedGroupedConvProgramInfoLoader=(z,A,y)=>{const s=(e=A.length>2,f=y.cacheKey,{name:"GroupedConv",inputNames:e?["X","W","Bias"]:["X","W"],inputTypes:e?[m.TextureType.unpacked,m.TextureType.unpacked,m.TextureType.unpacked]:[m.TextureType.unpacked,m.TextureType.unpacked],cacheHint:f});var e,f;return Object.assign(Object.assign({},s),{get:()=>((g,R,q,H)=>{const te=R.length>2?"value += getBias(output_channel);":"",re=R[0].dims.slice(),ae=R[1].dims.slice(),ne=ae[0]/H.group;d.Logger.verbose("GroupedConv",`autpPad:${H.autoPad}, dilations:${H.dilations}, group:${H.group}, kernelShape:${H.kernelShape}, pads:${H.pads}, strides:${H.strides}`);const oe=(0,p.calculateOutputShape)(re,ae,H.dilations,H.pads,H.strides),le=(0,h.getGlsl)(g.session.backend.glContext.version),{activationFunction:ce,applyActivation:ue}
vendor: 6,170 bytes, lines 831-905
831=(0,w.getActivationSnippet)(H),he=`
832  const ivec2 strides = ivec2(${H.strides[0]}, ${H.strides[1]});
833  const ivec2 pads = ivec2(${H.pads[0]}, ${H.pads[1]});
834  ${ce}
835  void main() {
836    ivec4 coords = getOutputCoords();
837    int batch = coords.x;
838    int output_channel = coords.y;
839    ivec2 xRCCorner = coords.zw * strides - pads;
840    int group_id = output_channel / ${ne};
841
842    float value = 0.0;
843    for (int wInChannel = 0; wInChannel < ${ae[1]}; wInChannel++) {
844      int input_channel = group_id * ${ae[1]} + wInChannel;
845      for (int wHeight = 0; wHeight < ${ae[2]}; wHeight++) {
846        int xHeight = xRCCorner.x + wHeight * ${H.dilations[0]};
847
848        if (xHeight < 0 || xHeight >= ${re[2]}) {
849          continue;
850        }
851
852        for (int wWidth = 0; wWidth < ${ae[3]}; wWidth++) {
853          int xWidth = xRCCorner.y + wWidth * ${H.dilations[1]};
854          if (xWidth < 0 || xWidth >= ${re[3]}) {
855            continue;
856          }
857
858          float xVal = getX(batch, input_channel, xWidth, xHeight);
859          float wVal = getW(output_channel, wInChannel, wWidth, wHeight);
860          value += xVal*wVal;
861        }
862      }
863    }
864    ${te}
865    ${ue}
866    ${le.output} = vec4(value, .0, .0, .0);
867  }
868`;return Object.assign(Object.assign({},q),{output:{dims:oe,type:R[0].type,textureType:m.TextureType.unpacked},shaderSource:he,hasMain:!0})})(z,A,s,y)})}},1386:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.conv2DPacked=n.conv2DPackedPointwise=void 0;const d=c(8138),h=c(8555),m=c(708);n.conv2DPackedPointwise=(p,w,z)=>{const A=w[0].dims,y=w[1].dims,s=(0,d.calculateOutputShape)(A,y,z.dilations,z.pads,z.strides),e=p.reshapePacked(w[0],[A[1],A[2]*A[3]]),f=p.reshapePacked(w[1],[y[0],y[1]]),g=w.length>2?[f,e,w[2]]:[f,e],R=p.run((0,m.createPackedMatmulProgramInfoLoader)(p,g,z),g);return p.reshapePacked(R,s)},n.conv2DPacked=(p,w,z)=>{const A=w[0].dims,y=w[1].dims,s=(0,d.calculateOutputShape)(A,y,z.dilations,z.pads,z.strides),e=p.run((0,h.createPackedIm2ColProgramInfoLoader)(p,w[0],w[1],s,z),[w[0]]),f=p.reshapePacked(w[1],[y[0],y[1]*y[2]*y[3]]),g=w.length===3?[f,e,w[2]]:[f,e],R=p.run((0,m.createPackedMatmulProgramInfoLoader)(p,g,z),g);return p.reshapePacked(R,s)}},9663:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.parseConvTransposeAttributes=n.convTranspose=void 0;const d=c(246),h=c(5060),m=c(2039),p=c(2823),w=(f,g,R,q,H,te)=>(f-1)*g+R+(q-1)*H+1-te,z=(f,g,R,q,H)=>{const te=Math.floor(f/2);g==="SAME_UPPER"?(R[q]=te,R[H]=f-te):g==="SAME_LOWER"&&(R[q]=f-te,R[H]=te)};n.convTranspose=(f,g,R)=>(e(g,R),A(f,g,R));const A=(f,g,R)=>{const q=s(R,g);return[y(f,g,q)]},y=(f,g,R)=>f.run(((q,H,te)=>{const re=(ae=H.length>2,ne=te.cacheKey,{name:"ConvTranspose",inputNames:ae?["X","W","B"]:["X","W"],inputTypes:ae?[m.TextureType.unpacked,m.TextureType.unpacked,m.TextureType.unpacked]:[m.TextureType.unpacked,m.TextureType.unpacked],cacheHint:ne});var ae,ne;return Object.assign(Object.assign({},re),{get:()=>((oe,le,ce,ue)=>{const he=le.length>2?"getB(output_channel)":"0.0",ge=le[0].dims,Oe=le[1].dims,$e=Oe[1],Pe=Oe[0]/ue.group,Le=[le[0].dims[0],le[1].dims[1]*ue.group,...ue.outputShape],me=(0,h.getGlsl)(oe.session.backend.glContext.version),{activationFunction:we,applyActivation:Se}=(0,p.getActivationSnippet)(ue),ye=`
869  const ivec2 strides = ivec2(${ue.strides[0]}, ${ue.strides[1]});
870  const ivec2 pads = ivec2(${ue.pads[0]}, ${ue.pads[1]});
871  ${we}
872  void main() {
873    ivec4 coords = getOutputCoords();
874    int batch = coords.x;
875    int output_channel = coords.y;
876
877    ivec2 loc = coords.zw + pads;
878
879    int group_id = output_channel / ${$e};
880    int wOutChannel = output_channel - group_id * ${$e};
881
882    float value = ${he};
883    for (int inChannelOffset = 0; inChannelOffset < ${Pe}; inChannelOffset++) {
884      int input_channel = group_id * ${Pe} + inChannelOffset;
885      for (int wWOff = 0; wWOff < ${Oe[2]}; wWOff++) {
886        for (int wHOff = 0; wHOff < ${Oe[3]}; wHOff++) {
887          ivec2 wOff = ivec2(wWOff * ${ue.dilations[0]}, wHOff * ${ue.dilations[1]});
888          ivec2 wLoc = loc - wOff;
889          ivec2 wLocIn = wLoc / strides;
890          if (
891            wLocIn * strides == wLoc &&
892            wLocIn.x >= 0 && wLocIn.x < ${ge[2]} &&
893            wLocIn.y >= 0 && wLocIn.y < ${ge[3]}
894          ) {
895            float xVal = getX(batch, input_channel, wLocIn.y, wLocIn.x);
896            float wVal = getW(input_channel, wOutChannel, wHOff, wWOff);
897            value += xVal * wVal;
898          }
899        }
900      }
901    }
902    ${Se}
903    ${me.output} = vec4(value, .0, .0, .0);
904  }
905`;return Object.assign(Object.assign({},ce),{output:{dims:Le,type:le[0].type,textureType:m.TextureType.unpacked},shaderSource:ye,hasMain:!0})})(q,H,re,te)})})(f,g,R),g),s=(f,g)=>{const R=f.kernelShape.slice();if(f.kernelShape.length===0)for(let re=2;re<g[1].dims.length;++re)R.push(g[1].dims[re]);const q=f.pads.slice(),H=f.outputShape.slice();((re,ae,ne,oe,le,ce,ue,he)=>{const ge=re.length-2,Oe=he.length===0;for(let $e=0;$e<ge;++$e){const Pe=Oe?re[$e+2]*ce[$e]:he[$e],Le=w(re[$e+2],ce[$e],le[$e],ae[$e],ne[$e],Pe);z(Le,oe,le,$e,$e+ge),Oe&&he.push(ce[$e]*(re[$e+2]-1)+ue[$e]+(ae[$e]-1)*ne[$e]+1-le[$e]-le[$e+ge])}})(g[0].dims,R,f.dilations,f.autoPad,q,f.strides,f.outputPadding,H);const te=Object.assign({},f);return Object.assign(te,{kernelShape:R,pads:q,outputShape:H,cacheKey:f.cacheKey}),te};n.parseConvTransposeAttributes=f=>{const g=f.attributes,R=(0,p.parseInternalActivationAttributes)(g),q=g.getString("auto_pad","NOTSET"),H=g.getInts("dilations",[1,1]),te=g.getInt("group",1),re=g.getInts("kernel_shape",[]),ae=g.getInts("output_padding",[0,0]),ne=g.getInts("output_shape",[]),oe=g.getInts("pads",[0,0,0,0]),le=g.getInts("strides",[1,1]);return(0,d.createAttributeWithCacheKey)(Object.assign({autoPad:q,dilations:H,group:te,kernelShape:re,outputPadding:ae,outputShape:ne,pads:oe,strides:le},R))};const e=(f,g)=>{if(!f||f.length!==2&&f.length!==3)throw new Error("Conv requires 2 or 3 inputs");if(f[0].dims.length!==4||f[1].dims.length!==4)throw new Error("currently only support 2-dimensional conv");if(f[0].dims[1]!==f[1].dims[0])throw new Error("FILTER_IN_CHANNEL should be equal to DATA_CHANNEL");const R=f[1].dims[1]*g.group;
905if(f.length===3&&(f[2].dims.length!==1||f[2].dims[0]!==R))throw new Error("invalid bias");const q=f[0].dims.length-2;if(g.dilations.length!==q)throw new Error(`dilations should be ${q}D`);if(g.strides.length!==q)throw new Error(`strides should be ${q}D`);if(g.pads.length!==2*q)throw new Error(`pads should be ${2*q}D`);if(g.outputPadding.length!==q)throw new Error(`output_padding should be ${q}D`);if(g.kernelShape.length!==0&&g.kernelShape.length!==f[1].dims.length-2)throw new Error("invalid kernel shape");if(g.outputShape.length!==0&&g.outputShape.length!==f[0].dims.length-2)throw new Error("invalid output shape");if(f[0].type!=="float32"||f[1].type!=="float32")throw new Error("ConvTranspose input(X,W) should be float tensor");if(f.length===3&&f[2].type!=="float32")throw new Error("ConvTranspose input(bias) should be float tensor")}},8138:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.parseConvAttributes=n.conv=n.calculateOutputShape=void 0;const d=c(246),h=c(2517),m=c(4770),p=c(1386),w=c(9828),z=c(2823),A=c(3248),y=c(5623);n.calculateOutputShape=(q,H,te,re,ae)=>{const ne=q[0],oe=q.slice(2),le=oe.length,ce=H[0],ue=H.slice(2).map(((ge,Oe)=>ge+(ge-1)*(te[Oe]-1))),he=oe.map(((ge,Oe)=>ge+re[Oe]+re[Oe+le])).map(((ge,Oe)=>Math.floor((ge-ue[Oe]+ae[Oe])/ae[Oe])));return[ne,ce].concat(...he)},n.conv=(q,H,te)=>(R(H,te),s(q,H,te));const s=(q,H,te)=>{const re=g(te,H),ae=q.session.pack,ne=re.kernelShape[0]===1&&re.kernelShape[1]===1;return re.group>1?[q.run((0,m.createUnpackedGroupedConvProgramInfoLoader)(q,H,re),H)]:ne&&ae?[e(q,H,re)]:ae&&H[0].dims.length===4&&H[0].dims[0]===1&&!ne?[(0,p.conv2DPacked)(q,H,re)]:[f(q,H,re)]},e=(q,H,te)=>{const re=H[0].dims,ae=H[1].dims,ne=(0,n.calculateOutputShape)(re,ae,te.dilations,te.pads,te.strides),oe=q.reshapeUnpacked(H[0],[re[1],re[2]*re[3]]),le=q.reshapeUnpacked(H[1],[ae[0],ae[1]]),ce=H.length>2?[le,oe,H[2]]:[le,oe],ue=q.run((0,y.createMatmulProgramInfoLoader)(ce,te),ce);return q.reshapeUnpacked(ue,ne)},f=(q,H,te)=>{const re=H[0].dims,ae=H[1].dims,ne=(0,n.calculateOutputShape)(re,ae,te.dilations,te.pads,te.strides),oe=q.run((0,A.createIm2ColProgramInfoLoader)(q,H[0],H[1],ne,te),[H[0]]),le=H.length===3?[oe,H[1],H[2]]:[oe,H[1]];return q.run((0,w.createDotProductProgramInfoLoader)(q,H,ne,te),le)},g=(q,H)=>{const te=q.kernelShape.slice();if(q.kernelShape.length===0)for(let ne=2;ne<H[1].dims.length;++ne)te.push(H[1].dims[ne]);const re=q.pads.slice();h.PoolConvUtil.adjustPadsBasedOnAutoPad(H[0].dims,q.strides,q.dilations,te,re,q.autoPad);const ae=Object.assign({},q);return Object.assign(ae,{kernelShape:te,pads:re,cacheKey:q.cacheKey}),ae};n.parseConvAttributes=q=>{const H=q.attributes,te=(0,z.parseInternalActivationAttributes)(H),re=H.getString("auto_pad","NOTSET"),ae=H.getInts("dilations",[1,1]),ne=H.getInt("group",1),oe=H.getInts("kernel_shape",[]),le=H.getInts("pads",[0,0,0,0]),ce=H.getInts("strides",[1,1]);return(0,d.createAttributeWithCacheKey)(Object.assign({autoPad:re,dilations:ae,group:ne,kernelShape:oe,pads:le,strides:ce},te))};const R=(q,H)=>{if(!q||q.length!==2&&q.length!==3)throw new Error("Conv requires 2 or 3 inputs");if(q[0].dims.length!==4||q[1].dims.length!==4)throw new Error("currently only support 2-dimensional conv");if(q[0].dims[1]!==q[1].dims[1]*H.group)throw new Error("FILTER_IN_CHANNEL should be equal to DATA_CHANNEL");if(q.length===3&&(q[2].dims.length!==1||q[1].dims[0]!==q[2].dims[0]))throw new Error("invalid bias");const te=q[0].dims.length-2;if(H.dilations.length!==te)throw new Error(`dilations should be ${te}D`);if(H.strides.length!==te)throw new Error(`strides should be ${te}D`);if(H.pads.length!==2*te)throw new Error(`pads should be ${2*te}D`);if(H.kernelShape.length!==0&&H.kernelShape.length!==q[1].dims.length-2)throw new Error("invalid kernel shape");if(q[0].type!=="float32"||q[1].type!=="float32")throw new Error("Conv input(X,W) should be float tensor");if(q.length===3&&q[2].type!=="float32")throw new Error("Conv input(bias) should be float tensor")}},5193:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.parseDepthToSpaceAttributes=n.depthToSpace=void 0;const d=c(3738);n.depthToSpace=(m,p,w)=>{h(p);const z=w.blocksize,A=z*z,y=w.mode==="DCR"?[0,3,4,1,5,2]:[0,1,4,2,5,3],s=w.mode==="DCR"?[p[0].dims[0],z,z,p[0].dims[1]/A,p[0].dims[2],p[0].dims[3]]:[p[0].dims[0],p[0].dims[1]/A,z,z,p[0].dims[2],p[0].dims[3]],e=m.reshapeUnpacked(p[0],s),f={perm:y,cacheKey:`${y}`},[g]=(0,d.transpose)(m,[e],f),R=[p[0].dims[0],p[0].dims[1]/A,p[0].dims[2]*z,p[0].dims[3]*z];return[m.reshapeUnpacked(g,R)]},n.parseDepthToSpaceAttributes=m=>{const p=m.attributes.getInt("blocksize");if(p<1)throw new Error(`blocksize must be >= 1, but got : ${p} for DepthToSpace`);const w=m.attributes.getString("mode","DCR");if(w!=="DCR"&&w!=="CRD")throw new Error(`unrecognized mode: ${w} for DepthToSpace`);return{mode:w,blocksize:p}};const h=m=>
vendor: 4,146 bytes, lines 905-926
905{if(m.length!==1)throw new Error(`DepthToSpace expect 1 inputs, but got ${m.length}`);if(m[0].type==="string"||m[0].dims.length!==4)throw new TypeError("DepthToSpace input should be a 4-D numeric tensor")}},9828:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.createDotProductProgramInfoLoader=void 0;const d=c(2517),h=c(5060),m=c(2039),p=c(2823),w=c(3248);n.createDotProductProgramInfoLoader=(z,A,y,s)=>{const e=((f,g)=>({name:"ConvDotProduct",inputNames:f?["Im2Col","K","B"]:["Im2Col","K"],inputTypes:f?[m.TextureType.unpacked,m.TextureType.packedLastDimension,m.TextureType.unpacked]:[m.TextureType.unpacked,m.TextureType.packedLastDimension],cacheKey:g.activationCacheKey}))(A.length>2,s);return Object.assign(Object.assign({},e),{get:()=>((f,g,R,q,H)=>{const te=R[0].dims,re=R[1].dims,ae=[re[0],Math.ceil(te[1]*re[2]*re[3]/4)],ne=(0,w.calculateIm2ColDims)(te,re,q),[oe,le]=f.calculateTextureWidthAndHeight(ae,m.TextureType.packedLastDimension),ce=d.ShapeUtil.computeStrides(ne),[ue,he]=f.calculateTextureWidthAndHeight(ne,m.TextureType.packedLastDimension),ge=q.length,Oe=R.length<3?"0.0":"_B(b)",$e=Math.ceil(te[1]*re[2]*re[3]/4),{activationFunction:Pe,applyActivation:Le}=(0,p.getActivationSnippet)(H),me=(0,h.getGlsl)(f.session.backend.glContext.version),we=`
906${Pe}
907float process(int indices[${ge}]) {
908  int b[1];
909  b[0] = indices[1];
910  int im2col[4];
911  im2col[0] = indices[0];
912  im2col[1] = indices[2];
913  im2col[2] = indices[3];
914  int im2colOffset = im2col[0] * ${ce[0]} + im2col[1] * ${ce[1]} + im2col[2] * ${ce[2]};
915  int kernelOffset = indices[1] * ${ae[1]};
916  float value = ${Oe};
917  for (int i = 0; i < ${$e}; ++i) {
918    vec2 im2colCoords = offsetToCoords(im2colOffset, ${ue}, ${he});
919    vec2 kernelCoords = offsetToCoords(kernelOffset, ${oe}, ${le});
920    value += dot(${me.texture2D}(Im2Col, im2colCoords), ${me.texture2D}(K, kernelCoords));
921    ++im2colOffset;
922    ++kernelOffset;
923  }
924  ${Le}
925  return value;
926}`;return Object.assign(Object.assign({},g),{output:{dims:q,type:R[0].type,textureType:m.TextureType.unpacked},shaderSource:we})})(z,e,A,y,s)})}},7992:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.parseFlattenAttributes=n.flatten=void 0;const d=c(2517);n.flatten=(m,p,w)=>{h(p,w);const z=d.ShapeUtil.flattenShape(p[0].dims,w);return[m.reshapeUnpacked(p[0],z)]},n.parseFlattenAttributes=m=>m.attributes.getInt("axis",1);const h=(m,p)=>{if(!m||m.length!==1)throw new Error("Flatten requires 1 input.");const w=m[0].dims.length;if(w===0)throw new Error("scalar tensor is not supported.");if(p<-w||p>w)throw new Error("Invalid axis");if(m[0].type==="string")throw new Error("string tensor is not supported.")}},2823:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.parseInternalActivationAttributes=n.getActivationSnippet=void 0;const d=c(2517),h=c(4909);n.getActivationSnippet=function(m){let p;switch(m.activation){case"Relu":p=(0,h.glslRelu)();break;case"Sigmoid":p=(0,h.glslSigmoid)();break;case"Clip":p=(0,h.glslClip)(m.clipMin,m.clipMax);break;default:return{activationFunction:"",applyActivation:""}}const w=p.name;return{activationFunction:p.body,applyActivation:`value = ${w}_(value);`}},n.parseInternalActivationAttributes=m=>{const p=m.getString("activation","");if(p==="Clip"){const[w,z]=m.getFloats("activation_params",[d.MIN_CLIP,d.MAX_CLIP]);return{activation:p,clipMax:z,clipMin:w,activationCacheKey:`${p}:${w},${z}`}}return{activation:p,activationCacheKey:p}}},1253:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.parseGatherAttributes=n.gather=void 0;const d=c(246),h=c(782),m=c(2517),p=c(2039);n.gather=(y,s,e)=>(A(s,e.axis),[y.run(z(y,s,e),s)]),n.parseGatherAttributes=y=>(0,d.createAttributeWithCacheKey)({axis:y.attributes.getInt("axis",0)});const w={name:"Gather",inputNames:["A","B"],inputTypes:[p.TextureType.unpacked,p.TextureType.unpacked]},z=(y,s,e)=>{const f=Object.assign(Object.assign({},w),{cacheHint:e.cacheKey});return Object.assign(Object.assign({},f),{get:()=>((g,R,q,H)=>{const te=q[0].dims.slice(),re=q[1].dims.slice(),ae=new Array(te.length+re.length-1);H=m.ShapeUtil.normalizeAxis(H,te.length);const ne=[];for(let le=0;le<ae.length;
926le++)le<H?(ae[le]=te[le],ne.push(`inputIdx[${le}] = outputIdx[${le}];`)):le<H+re.length?(ae[le]=re[le-H],ne.push(`indexDataIdx[${le-H}] = outputIdx[${le}];`)):(ae[le]=te[le-re.length+1],ne.push(`inputIdx[${le-re.length+1}] = outputIdx[${le}];`));const oe=`
927      float process(int outputIdx[${ae.length||1}]) {
928        int inputIdx[${te.length}];
929        int indexDataIdx[${re.length||1}];
930        indexDataIdx[0] = 0;
931        ${ne.join(`
932        `)}
933        int idx = int(_B(indexDataIdx));
934        inputIdx[${H}] = idx < 0 ? idx + ${te[H]} : idx;
935        return _A(inputIdx);
936      }`;return Object.assign(Object.assign({},R),{output:{dims:ae,type:q[0].type,textureType:p.TextureType.unpacked},shaderSource:oe})})(0,f,s,e.axis)})},A=(y,s)=>{if(!y||y.length!==2)throw new Error("Gather requires 2 inputs.");const e=y[0].dims.length;if(e<1)throw new Error("Invalid input shape.");if(s<-e||s>e-1)throw new Error("Invalid axis.");if(h.NUMBER_TYPES.indexOf(y[0].type)===-1)throw new Error("Invaid input type.");if(y[1].type!=="int32"&&y[1].type!=="int16")throw new Error("Invaid input type.")}},4776:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.parseGemmAttributesV11=n.parseGemmAttributesV7=n.gemm=void 0;const d=c(246),h=c(2517),m=c(2039);n.gemm=(y,s,e)=>(A(s,e),[y.run(w(s,e),s)]);const p=(y,s)=>{const e=y.attributes.getInt("transA",0)!==0,f=y.attributes.getInt("transB",0)!==0,g=y.attributes.getFloat("alpha",1),R=y.attributes.getFloat("beta",1);return(0,d.createAttributeWithCacheKey)({transA:e,transB:f,alpha:g,beta:R,isOptionalC:s})};n.parseGemmAttributesV7=y=>p(y,!1),n.parseGemmAttributesV11=y=>p(y,!0);const w=(y,s)=>{const e={name:"Gemm",inputNames:y.length===3?["A","B","C"]:["A","B"],inputTypes:y.length===3?[m.TextureType.unpacked,m.TextureType.unpacked,m.TextureType.unpacked]:[m.TextureType.unpacked,m.TextureType.unpacked],key:s.cacheKey};return Object.assign(Object.assign({},e),{get:()=>z(e,y,s)})},z=(y,s,e)=>{const f=s[0].dims.slice(),g=s[1].dims.slice(),[R,q]=h.GemmUtil.getShapeOfGemmResult(f,e.transA,g,e.transB,s.length===3?s[2].dims:void 0),H=[R,q];
936if(!H)throw new Error("Can't use gemm on the given tensors");let te=f[f.length-1],re="";e.transA&&(te=f[0]),e.transA&&e.transB?re="value += _A_T(a) * _B_T(b);":e.transA&&!e.transB?re="value += _A_T(a) * _B(b);":!e.transA&&e.transB?re="value += _A(a) * _B_T(b);":e.transA||e.transB||(re="value += _A(a) * _B(b);");const ae=H.length,ne=`
937      float process(int indices[${ae}]) {
938          int a[${ae}];
939          int b[${ae}];
940          ${s.length===3?`int c[${s[2].dims.length}];`:""}
941
942          copyVec(indices, a);
943          copyVec(indices, b);
944          ${s.length===3?"bcastIndices_C(indices, c);":""}
945
946          float value = 0.0;
947          for (int k=0; k<${te}; ++k) {
948              a[${ae-1}] = k;
949              b[${ae-2}] = k;
950              ${re}
951          }
952
953          value = value * alpha;
954          ${s.length===3?"value += beta * _C(c);":""}
955          return value;
956      }`;return Object.assign(Object.assign({},y),{output:{dims:H,type:s[0].type,textureType:m.TextureType.unpacked},variables:[{name:"alpha",type:"float",data:e.alpha},{name:"beta",type:"float",data:e.beta}],shaderSource:ne})},A=(y,s)=>{if(!y)throw new Error("Input is missing");if(s.isOptionalC&&(y.length<2||y.length>3))throw new Error("Invaid input shape.");if(!s.isOptionalC&&y.length!==3)throw new Error("Gemm requires 3 inputs");if(y.length===3&&y[2].dims.length!==1&&y[2].dims.length!==2)throw new Error("Invalid input shape of C");if(y[0].type!=="float32"&&y[0].type!=="float64"||y[1].type!=="float32"&&y[1].type!=="float64"||y.length===3&&y[2].type!=="float32"&&y[2].type!=="float64")throw new Error("Invalid input type.");if(y[0].type!==y[1].type||y.length===3&&y[0].type!==y[2].type)throw new Error("Input types are mismatched")}},8555:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.createPackedIm2ColProgramInfoLoader=void 0;const d=c(5060),h=c(2039),m=c(2827);n.createPackedIm2ColProgramInfoLoader=(p,w,z,A,y)=>{const s=(e=y.cacheKey,{name:"Im2Col (packed)",inputNames:["A"],inputTypes:[h.TextureType.packed],cacheHint:e});var e;return Object.assign(Object.assign({},s),{get:()=>((f,g,R,q,H,te)=>{const re=R.dims,ae=q.dims,ne=H.length,oe=[ae[1]*ae[2]*ae[3],H[2]*H[3]],le=ae[2]*ae[3],ce=(0,m.unpackFromChannel)(),ue=(0,d.getGlsl)(f.session.backend.glContext.version);let he="";for(let Oe=0;Oe<=1;Oe++)for(let $e=0;$e<=1;$e++)he+=`
957            blockIndex = rc.x + ${$e};
958            pos = rc.y + ${Oe};
959
960            if(blockIndex < ${oe[1]} && pos < ${oe[0]}) {
961              offsetY = int(blockIndex / (${H[ne-1]})) * ${te.strides[0]} -
962                ${te.pads[0]};
963              d0 = offsetY + ${te.dilations[0]} * (imod(pos, ${le}) / ${ae[2]});
964
965              if(d0 < ${re[2]} && d0 >= 0) {
966                offsetX = imod(blockIndex, ${H[ne-1]}) * ${te.strides[1]} -
967                  ${te.pads[1]};
968                d1 = offsetX + ${te.dilations[1]} * imod(imod(pos, ${le}), ${ae[2]});
969
970                if(d1 < ${re[3]} && d1 >= 0) {
971
972                  ch = int(float(pos)/ ${le}.);
973                    innerDims = vec2(d0, d1);
974                    result[${2*Oe+$e}] = getChannel(
975                      getA(0, ch, int(innerDims.x),
976                      int(innerDims.y)), innerDims);
977                }
978              }
979            }
980
981          `;const ge=`
982      ${ce}
983
984      void main() {
985        ivec2 rc = getOutputCoords();
986          vec4 result = vec4(0.0);
987          int blockIndex, pos, offsetY, d0, offsetX, d1, ch;
988          vec2 innerDims;
989          ${he}
990          ${ue.output} = result;
991      }
992            `;return Object.assign(Object.assign({},g),{output:{dims:oe,type:R.type,textureType:h.TextureType.packed},shaderSource:ge,hasMain:!0})})(p,s,w,z,A,y)})}},3248:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.calculateIm2ColDims=n.createIm2ColProgramInfoLoader=void 0;const d=c(2039);n.createIm2ColProgramInfoLoader=(h,m,p,w,z)=>{const A=(y=z.cacheKey,{name:"Im2Col",inputNames:["X"],inputTypes:[d.TextureType.unpacked],cacheHint:y});var y;return Object.assign(Object.assign({},A),{get:()=>((s,e,f,g,R,q)=>{const H=f.dims,te=g.dims,re=R.length,ae=(0,n.calculateIm2ColDims)(H,te,R,4),ne=`
993        const int XC = ${H[1]};
994        const int XH = ${H[2]};
995        const int XW = ${H[3]};
996        const int KH = ${q.kernelShape[0]};
997        const int KW = ${q.kernelShape[1]};
998        const int dilationH = ${q.dilations[0]};
999        const int dilationW = ${q.dilations[1]};
1000        const int strideH = ${q.strides[0]};
1001        const int strideW = ${q.strides[1]};
1002        const int padH = ${q.pads[0]};
1003        const int padW = ${q.pads[1]};
1004        const int KHKW = KH*KW;
1005        const int XCKHKW = XC * KHKW;
1006        const int outputChannels = 4;
1007        vec4 process(int indices[${re}]) {
1008          int b  = indices[0]; // batch size
1009          int oh = indices[1] * strideH - padH; //output height
1010          int ow = indices[2] * strideW - padW; //output width
1011          int p = indices[3] * outputChannels; //patch
1012          vec4 value = vec4(0.0);
1013          for(int i=0; i < outputChannels; ++i) {
1014            if(p < XCKHKW) {
1015              int patchC = p / KHKW;
1016              int patchH = (p - patchC*KHKW) / KW;
1017              int patchW = (p - patchC*KHKW) - patchH * KW;
1018              int xh2 = oh + patchH * dilationH;
1019              int xw2 = ow + patchW * dilationW;
1020              int x[${H.length}];
1021              x[0] = b;
1022              x[1] = patchC;
1023              x[2] = xh2;
1024              x[3] = xw2;
1025              if(xh2 >= 0 &&
1026                  xh2 < XH &&
1027                  xw2 >= 0 &&
1028                  xw2 < XW) {
1029                value[i] = _X(x);
1030              }
1031            }
1032            ++p;
1033          }
1034          return value;
1035        }
1036        `;return Object.assign(Object.assign({},e),{output:{dims:ae,type:f.type,textureType:d.TextureType.packedLastDimension},shaderSource:ne})})(0,A,m,p,w,z)})},n.calculateIm2ColDims=(h,m,p,w=4)=>[p[0],p[2],p[3],Math.ceil(h[1]*m[2]*m[3]/w)]},6572:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.parseImageScalerAttributes=n.imageScaler=void 0;const d=c(246),h=c(2039);n.imageScaler=(A,y,s)=>(z(y),[A.run(p(A,y,s),y)]),n.parseImageScalerAttributes=A=>{const y=A.attributes.getFloat("scale"),s=A.attributes.getFloats("bias");return(0,d.createAttributeWithCacheKey)({scale:y,bias:s})};const m={name:"ImageScaler",inputNames:["X"],inputTypes:[h.TextureType.unpacked]},p=(A,y,s)=>{const e=Object.assign(Object.assign({},m),{cacheHint:s.cacheKey});return Object.assign(Object.assign({},e),{get:()=>((f,g,R,q)=>{const H=R[0].dims.slice(),te=H.length,re=`
1037      ${w(q.bias.length)}
1038      float process(int indices[${te}]) {
1039        return _X(indices) * scale + getBias(bias, indices[1]);
1040      }`;return Object.assign(Object.assign({},g),{output:{dims:H,type:R[0].type,textureType:h.TextureType.unpacked},variables:[{name:"bias",type:"float",arrayLength:q.bias.length,data:q.bias},{name:"scale",type:"float",data:q.scale}],shaderSource:re})})(0,e,y,s)})},w=A=>{const y=[`float getBias(float bias[${A}], int channel) {`];for(let s=0;s<A;++s)s===0?y.push(`	if (channel == ${s}) { return bias[${s}]; }`):s===A-1?y.push(`	else { return bias[${s}]; }`):y.push(`	else if (channel == ${s}) { return bias[${s}]; }`);return y.push("	}"),y.join(`
1041`)},z=A=>{if(!A||A.length!==1)throw new Error("ImageScaler requires 1 input.");if(A[0].dims.length!==4)throw new Error("Invalid input shape.");if(A[0].type!=="float32"&&A[0].type!=="float64")throw new Error("Invalid input type.")}},3346:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.parseInstanceNormalizationAttributes=n.instanceNormalization=void 0;const d=c(5060),h=c(2039);n.instanceNormalization=(y,s,e)=>{A(s);const f=y.run(p(s[0]),s);return[y.run(z(y,s[0],e,f.dims),[s[0],f,s[1],s[2]])]},n.parseInstanceNormalizationAttributes=y=>y.attributes.getFloat("epsilon",1e-5);const m={name:"InstanceNormalization_MeanAndVariance",inputNames:["X"],inputTypes:[h.TextureType.unpacked]},p=y=>Object.assign(Object.assign({},m),{get:()=>((s,e)=>{const f=e.dims.slice(),g=f[1],R=f[2]*f[3],q=[f[0],g],H=`
1042      vec4 process(int[2] indices) {
1043        vec4 v = vec4(0.0);
1044        int a[4];
1045        a[0] = indices[0];
1046        a[1] = indices[1];
1047        float temp = 0.0;
1048        for(int a2=0; a2<${f[2]}; a2++) {
1049          a[2] = a2;
1050          for(int a3=0; a3<${f[3]}; a3++) {
1051            a[3] = a3;
1052            float x = _X(a);
1053            temp += x;
1054          }
1055        }
1056        float mean = temp / float(${R});
1057        temp = 0.0;
1058        for(int a2=0; a2<${f[2]};
1058 a2++) {
1059          a[2] = a2;
1060          for(int a3=0; a3<${f[3]}; a3++) {
1061            a[3] = a3;
1062            float x = _X(a);
1063            temp += (x - mean) * (x - mean);
1064          }
1065        }
1066        v.r = mean;
1067        v.g = temp / float(${R});
1068
1069        return v;
1070      }`;return Object.assign(Object.assign({},s),{output:{dims:q,type:e.type,textureType:h.TextureType.packedLastDimension},shaderSource:H})})(m,y)}),w={name:"InstanceNormalization_ComputeOutput",inputNames:["X","MeanAndVariance","Scale","B"],inputTypes:[h.TextureType.unpacked,h.TextureType.packedLastDimension,h.TextureType.unpacked,h.TextureType.unpacked]},z=(y,s,e,f)=>{const g=Object.assign(Object.assign({},w),{cacheHint:`${e}`});return Object.assign(Object.assign({},g),{get:()=>((R,q,H,te,re)=>{const ae=(0,d.getGlsl)(R.session.backend.glContext.version),[ne,oe]=R.calculateTextureWidthAndHeight(re,h.TextureType.packedLastDimension),[le,ce]=[ne/4,oe],ue=`
1071      vec4 get_MeanAndVariance(int[2] mv) {
1072        int offset = indicesToOffset_MeanAndVariance(mv);
1073        vec2 coords = offsetToCoords(offset, ${le}, ${ce});
1074        return ${ae.texture2D}(MeanAndVariance, coords);
1075      }
1076
1077      float process(int[4] indices) {
1078        int mv[2];
1079        mv[0] = indices[0];
1080        mv[1] = indices[1];
1081        vec4 mean_and_variance = get_MeanAndVariance(mv);
1082        float mean = mean_and_variance.r;
1083        float variance = mean_and_variance.g;
1084
1085        int sb[1];
1086        sb[0] = indices[1];
1087        float scale = _Scale(sb);
1088        float b = _B(sb);
1089
1090        return scale * (_X(indices) - mean) / sqrt(variance + epsilon) + b;
1091      }`;return Object.assign(Object.assign({},q),{output:{dims:H.dims,type:H.type,textureType:h.TextureType.unpacked},variables:[{name:"epsilon",type:"float",data:te}],shaderSource:ue})})(y,g,s,e,f)})},A=y=>{if(!y||y.length!==3)throw new Error("InstanceNormalization requires 3 inputs.");const s=y[0],e=y[1],f=y[2];if(s.dims.length<3||e.dims.length!==1||f.dims.length!==1)throw new Error("Invalid input shape.");if(e.dims[0]!==s.dims[1]||f.dims[0]!==s.dims[1])throw new Error("Input shapes are mismatched.");if(s.type!=="float32"&&s.type!=="float64"||e.type!=="float32"&&e.type!=="float64"||f.type!=="float32"&&f.type!=="float64")throw new Error("Invalid input type.");if(y[0].dims.length!==4)throw new Error("Only support 4-D input shape.")}},708:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.createPackedMatmulProgramInfoLoader=void 0;const d=c(2517),h=c(5060),m=c(2039),p=c(9390),w=c(2823),z=c(5623);n.createPackedMatmulProgramInfoLoader=(A,y,s)=>{const e=(f=y.length>2,g=s.activationCacheKey,{name:"MatMul (packed)",inputNames:f?["A","B","Bias"]:["A","B"],inputTypes:f?[m.TextureType.packed,m.TextureType.packed,m.TextureType.packed]:[m.TextureType.packed,m.TextureType.packed],cacheHint:g});var f,g;return Object.assign(Object.assign({},e),{get:()=>((R,q,H,te)=>{const re=H.length>2,ae=re?"value += getBiasForMatmul();":"",ne=H[0].dims,oe=H[1].dims,le=d.BroadcastUtil.calcShape(ne,oe,!0),ce=!d.ShapeUtil.areEqual(H[0].dims,H[1].dims);if(!le)throw new Error("Can't use matmul on the given tensors");const ue=ne[ne.length-1],he=Math.ceil(ue/2),ge=ne.length,Oe=oe.length,$e=(0,h.getGlsl)(R.session.backend.glContext.version),Pe=(0,p.getCoordsDataType)(le.length),Le=le.length,me=(0,p.getGlChannels)(),{activationFunction:we,applyActivation:Se}=(0,w.getActivationSnippet)(te),ye=re?`${(0,z.getBiasForMatmul)(Pe,me,H[2].dims,le,!0)}`:"",ke=ce?`${(function(Ge,Je,Te,ve){let et=[],mt=[];const ht=Te[0].dims,ct=Te[1].dims,Ue=ht.length,ot=ct.length,bt=ve.length,At=bt-Ue,ft=bt-ot;et=ht.map(((Vt,Tt)=>`coords.${Je[Tt+At]}`)),et[Ue-1]="i*2",et.join(", "),mt=ct.map(((Vt,Tt)=>`coords.${Je[Tt+ft]}`)),mt[ot-2]="i*2",mt.join(", ");const be=d.BroadcastUtil.getBroadcastDims(ht,ve),Et=d.BroadcastUtil.getBroadcastDims(ct,ve),St=be.map((Vt=>`coords.${Je[Vt+At]} = 0;`)).join(`
1092`),Jt=Et.map((Vt=>`coords.${Je[Vt+ft]} = 0;`)).join(`
1093`),Bt=`int lastDim = coords.${Je[bt-1]};
1094  coords.${Je[bt-1]} = coords.${Je[bt-2]};
1095  coords.${Je[bt-2]} = lastDim;`;return`
1096vec4 getAAtOutCoordsMatmul(int i) {
1097  ${Ge} coords = getOutputCoords();
1098  ${Bt}
1099  ${St}
1100  vec4 outputValue = getA(${et});
1101  return outputValue;
1102}
1103
1104vec4 getBAtOutCoordsMatmul(int i) {
1105  ${Ge} coords = getOutputCoords();
1106  ${Bt}
1107  ${Jt}
1108  vec4 outputValue = getB(${mt});
1109  return outputValue;
1110}`})(Pe,me,H,le)}`:"",Ae=ce?"getAAtOutCoordsMatmul(i)":`getA(${(function(Ge,Je){let Te="";for(let ve=0;ve<Je-2;ve++)Te+=`rc.${Ge[ve]}, `;return Te+=`rc.${Ge[Je-2]}, i*2`,Te})(me,ge)})`,Ie=ce?"getBAtOutCoordsMatmul(i)":`getB(${(function(Ge,Je){let Te="";for(let ve=0;ve<Je-2;ve++)Te+=`rc.${Ge[ve]}, `;return Te+=`i*2, rc.${Ge[Je-1]}`,Te})(me,Oe)})`,qe=`
1111            ${ke}
1112            ${ye}
1113            ${we}
1114            void main() {
1115              ${ce?"":`${Pe} rc =
1116          getOutputCoords(); int lastDim = rc.${me[Le-1]}; rc.${me[Le-1]} =
1117          rc.${me[Le-2]}; rc.${me[Le-2]} = lastDim;
1118      `}
1119
1120              vec4 value = vec4(0);
1121              for (int i = 0; i < ${he}; i++) {
1122                vec4 a = ${Ae};
1123                vec4 b = ${Ie};
1124
1125                value += (a.rrbb * b.rgrg);
1126                value += (a.ggaa * b.baba);
1127              }
1128              ${ae}
1129              ${Se}
1130              ${$e.output} = value;
1131            }`;return Object.assign(Object.assign({},q),{output:{dims:le,type:H[0].type,textureType:m.TextureType.packed},shaderSource:qe,hasMain:!0})})(A,e,y,s)})}},5623:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.getBiasForMatmul=n.createMatmulProgramInfoLoader=n.parseMatMulAttributes=n.matMul=void 0;const d=c(2517),h=c(2039),m=c(9390),p=c(2823),w=c(708);function z(s,e){const f=(g=s.length>2,R=e.activationCacheKey,{name:"MatMul",inputNames:g?["A","B","Bias"]:["A","B"],inputTypes:g?[h.TextureType.unpacked,h.TextureType.unpacked,h.TextureType.unpacked]:[h.TextureType.unpacked,h.TextureType.unpacked],cacheHint:R});var g,R;return Object.assign(Object.assign({},f),{get:()=>(function(q,H,te){const re=H[0].dims,ae=H[1].dims,ne=d.BroadcastUtil.calcSh
1131ape(re,ae,!0);if(!ne)throw new Error("Can't use matmul on the given tensors");const oe=(0,m.getCoordsDataType)(ne.length),le=(0,m.getGlChannels)(),{activationFunction:ce,applyActivation:ue}=(0,p.getActivationSnippet)(te),he=H.length>2,ge=he?"value += getBiasForMatmul();":"",Oe=he?`${y(oe,le,H[2].dims,ne,!1)}`:"",$e=ne.length,Pe=re.length,Le=ae.length,me=`
1132    ${ce}
1133    ${Oe}
1134    float process(int indices[${$e}]) {
1135        int a[${Pe}];
1136        int b[${Le}];
1137        bcastMatmulIndices_A(indices, a);
1138        bcastMatmulIndices_B(indices, b);
1139
1140        float value;
1141        for (int k=0; k<${re[re.length-1]}; ++k) {
1142            a[${Pe-1}] = k;
1143            b[${Le-2}] = k;
1144            value += _A(a) * _B(b);
1145        }
1146        ${ge}
1147        ${ue}
1148        return value;
1149    }`;return Object.assign(Object.assign({},q),{output:{dims:ne,type:H[0].type,textureType:h.TextureType.unpacked},shaderSource:me})})(f,s,e)})}n.matMul=(s,e,f)=>(A(e),s.session.pack?[s.run((0,w.createPackedMatmulProgramInfoLoader)(s,e,f),e)]:[s.run(z(e,f),e)]),n.parseMatMulAttributes=s=>(0,p.parseInternalActivationAttributes)(s.attributes),n.createMatmulProgramInfoLoader=z;const A=s=>{if(!s||s.length!==2)throw new Error("MatMul requires 2 inputs.");if(s[0].dims[s[0].dims.length-1]!==s[1].dims[s[1].dims.length-2])throw new Error("shared dimension does not match.");if(s[0].type!=="float32"&&s[0].type!=="float64"||s[1].type!=="float32"&&s[1].type!=="float64")throw new Error("inputs should be float type");if(s[0].type!==s[1].type)throw new Error("inputs types should match")};function y(s,e,f,g,R){let q="";const H=f.length,te=g.length,re=te-H;q=te<2&&H>0?"coords":f.map(((oe,le)=>`coords.${e[le+re]}`)).join(", ");const ae=d.BroadcastUtil.getBroadcastDims(f,g).map((oe=>`coords.${e[oe+re]} = 0;`)).join(`
1150`);let ne="vec4(outputValue.xx, outputValue.yy)";return d.ShapeUtil.size(f)===1&&(ne="vec4(outputValue.x)"),R?`
1151vec4 getBiasForMatmul() {
1152  ${s} coords = getOutputCoords();
1153  ${ae}
1154  vec4 outputValue = getBias(${q});
1155  return ${ne};
1156}`:`
1157float getBiasForMatmul() {
1158  ${s} coords = getOutputCoords();
1159  ${ae}
1160  return getBias(coords.x);
1161}`}n.getBiasForMatmul=y},2403:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.createPackProgramInfoLoader=void 0;const d=c(5060),h=c(2039),m=c(9390),p=c(2827),w={name:"pack",inputNames:["A"],inputTypes:[h.TextureType.unpackedReversed]};n.createPackProgramInfoLoader=(z,A)=>Object.assign(Object.assign({},w),{get:()=>((y,s)=>{const e=(0,d.getGlsl)(y.session.backend.glContext.version),f=s.dims,g=f.length,R=s.dims.length,q=(0,m.getCoordsDataType)(R),H=(0,p.getChannels)("rc",R),te=(re=R,ae=H,ne=f[f.length-2],oe=f[f.length-1],re===0||re===1?"":`
1162    int r = ${ae[re-2]};
1163    int c = ${ae[re-1]};
1164    int rp1 = ${ae[re-2]} + 1;
1165    int cp1 = ${ae[re-1]} + 1;
1166    bool rEdge = rp1 >= ${oe};
1167    bool cEdge = cp1 >= ${ne};
1168    `);var re,ae,ne,oe;let le;le=g===0?[1,1]:g===1?[f[0],1]:[f[R-1],f[R-2]];const ce=(function(ge,Oe,$e){if(ge===0)return"false";if(ge===1)return`rc > ${Oe[0]}`;let Pe="";for(let Le=ge-2;Le<ge;Le++)Pe+=`${$e[Le]} >= ${Oe[Le-ge+2]}`,Le<ge-1&&(Pe+="||");return Pe})(R,le,H),ue=(function(ge,Oe){const $e=ge.length;if($e===0)return"getA(), 0, 0, 0";if($e===1)return`getA(rc),
1169            rc + 1 >= ${ge[0]} ? 0. : getA(rc + 1),
1170            0, 0`;let Pe="";if($e>2)for(let Le=0;Le<$e-2;++Le)Pe+=`${Oe[Le]},`;return`getA(${Pe}r, c),
1171          rEdge ? 0. : getA(${Pe}rp1, c),
1172          cEdge ? 0. : getA(${Pe}r, cp1),
1173          rEdge || cEdge ? 0. : getA(${Pe}rp1, cp1)`})(f,H),he=`
1174        void main() {
1175          ${q} rc = getOutputCoords();
1176
1177          if(${ce}) {
1178            ${e.output} = vec4(0);
1179          } else {
1180            ${te}
1181
1182            ${e.output} = vec4(${ue});
1183          }
1184        }
1185      `;return Object.assign(Object.assign({},w),{hasMain:!0,output:{dims:s.dims,type:s.type,textureType:h.TextureType.packed},shaderSource:he})})(z,A)})},2827:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.unpackFromChannel=n.getChannels=n.getVecChannels=void 0;const d=c(9390);function h(m,p){return(0,d.getGlChannels)(p).map((w=>`${m}.${w}`))}
vendor: 5,537 bytes, lines 1185-1250
1185n.getVecChannels=h,n.getChannels=function(m,p){return p===1?[m]:h(m,p)},n.unpackFromChannel=function(){return`
1186    float getChannel(vec4 frag, int dim) {
1187      int modCoord = imod(dim, 2);
1188      return modCoord == 0 ? frag.r : frag.g;
1189    }
1190
1191    float getChannel(vec4 frag, vec2 innerDims) {
1192      vec2 modCoord = mod(innerDims, 2.);
1193      return modCoord.x == 0. ?
1194        (modCoord.y == 0. ? frag.r : frag.g) :
1195        (modCoord.y == 0. ? frag.b : frag.a);
1196    }
1197  `}},2870:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.parsePadAttributesV11=n.padV11=n.parsePadAttributesV2=n.padV2=void 0;const d=c(246),h=c(2517),m=c(5060),p=c(2039),w={name:"Pad",inputNames:["A"],inputTypes:[p.TextureType.unpacked]};n.padV2=(q,H,te)=>(y(H),[q.run(Object.assign(Object.assign({},w),{cacheHint:te.cacheKey,get:()=>A(q,H[0],te)}),H)]),n.parsePadAttributesV2=q=>{const H=q.attributes.getString("mode","constant"),te=q.attributes.getFloat("value",0),re=q.attributes.getInts("pads");return(0,d.createAttributeWithCacheKey)({mode:H,value:te,pads:re})},n.padV11=(q,H,te)=>{s(H);const re=z(q,H,te);return(0,n.padV2)(q,[H[0]],re)},n.parsePadAttributesV11=q=>q.attributes.getString("mode","constant");const z=(q,H,te)=>{if(!q.session.isInitializer(H[1].dataId)||H.length>=3&&!q.session.isInitializer(H[2].dataId))throw new Error("dynamic pad attributes are not allowed");const re=Array.from(H[1].integerData),ae=H.length>=3?H[2].floatData[0]:0;return(0,d.createAttributeWithCacheKey)({mode:te,pads:re,value:ae})},A=(q,H,te)=>{const re=h.ShapeUtil.padShape(H.dims.slice(),te.pads),ae=re.length,ne=`
1198      ${e(q,H,te)}
1199      float process(int[${ae}] indices) {
1200          return padA(indices);
1201      }`;return{name:"Pad",inputNames:["A"],inputTypes:[p.TextureType.unpacked],output:{dims:re,type:H.type,textureType:p.TextureType.unpacked},shaderSource:ne}},y=q=>{if(!q||q.length!==1)throw new Error("Pad requires 1 input");if(q[0].type!=="float32"&&q[0].type!=="float64")throw new Error("Invalid input type.")},s=q=>{if(!q||q.length!==2&&q.length!==3)throw new Error("Pad requires 2 or 3 inputs");if(q[1].type!=="int32")throw new Error("Invalid input type.");if(q.length>=3&&q[2].type==="string")throw new Error("Invalid input type.")},e=(q,H,te)=>{const re=(0,m.getGlsl)(q.session.backend.glContext.version),[ae,ne]=q.calculateTextureWidthAndHeight(H.dims,p.TextureType.unpacked),oe=h.ShapeUtil.computeStrides(H.dims);switch(te.mode){case"constant":return f(re,H.dims,oe,ae,ne,te.pads,te.value);case"reflect":return g(re,H.dims,oe,ae,ne,te.pads);case"edge":return R(re,H.dims,oe,ae,ne,te.pads);default:throw new Error("Invalid mode")}},f=(q,H,te,re,ae,ne,oe)=>{const le=H.length;let ce="";for(let ue=le-1;ue>=0;--ue)ce+=`
1202        k = m[${ue}] - ${ne[ue]};
1203        if (k < 0)  return constant;
1204        if (k >= ${H[ue]}) return constant;
1205        offset += k * ${te[ue]};
1206        `;return`
1207      float padA(int m[${le}]) {
1208        const float constant = float(${oe});
1209        int offset = 0;
1210        int k = 0;
1211        ${ce}
1212        vec2 coords = offsetToCoords(offset, ${re}, ${ae});
1213        float value = getColorAsFloat(${q.texture2D}(A, coords));
1214        return value;
1215      }
1216      `},g=(q,H,te,re,ae,ne)=>{const oe=H.length;let le="";for(let ce=oe-1;ce>=0;--ce)le+=`
1217        k = m[${ce}] - ${ne[ce]};
1218        if (k < 0) { k = -k; }
1219        {
1220          const int _2n_1 = ${2*(H[ce]-1)};
1221          k = int( mod( float(k), float(_2n_1) ) ) ;
1222          if(k >= ${H[ce]}) { k = _2n_1 - k; }
1223        }
1224        offset += k * ${te[ce]};
1225        `;return`
1226      float padA(int m[${oe}]) {
1227        int offset = 0;
1228        int k = 0;
1229        ${le}
1230        vec2 coords = offsetToCoords(offset, ${re}, ${ae});
1231        float value = getColorAsFloat(${q.texture2D}(A, coords));
1232        return value;
1233      }
1234      `},R=(q,H,te,re,ae,ne)=>{const oe=H.length;let le="";for(let ce=oe-1;ce>=0;--ce)le+=`
1235        k = m[${ce}] - ${ne[ce]};
1236        if (k < 0)  k = 0;
1237        if (k >= ${H[ce]}) k = ${H[ce]-1};
1238        offset += k * ${te[ce]};
1239      `;return`
1240      float padA(int m[${oe}]) {
1241        int offset = 0;
1242        int k = 0;
1243        ${le}
1244        vec2 coords = offsetToCoords(offset, ${re}, ${ae});
1245        float value = getColorAsFloat(${q.texture2D}(A, coords));
1246        return value;
1247      }
1248      `}},2143:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.globalMaxPool=n.parseMaxPoolAttributes=n.maxPool=n.parseGlobalAveragePoolAttributes=n.globalAveragePool=n.parseAveragePoolAttributes=n.averagePool=void 0;const d=c(246),h=c(2517),m=c(2039);n.averagePool=(R,q,H)=>{s(q);const te={name:"AveragePool",inputNames:["X"],inputTypes:[m.TextureType.unpacked],cacheHint:H.cacheKey};return[R.run(Object.assign(Object.assign({},te),{get:()=>p(q,te,!1,H)}),q)]},n.parseAveragePoolAttributes=R=>{const q=R.attributes.getString("auto_pad","NOTSET"),H=R.attributes.getInt("ceil_mode",0),te=R.attributes.getInt("count_include_pad",0)!==0,re=R.attributes.getInts("kernel_shape"),ae=R.attributes.getInts("strides",[]),ne=R.attributes.getInts("pads",[]);if(H!==0)throw new Error("using ceil() in shape computation is not yet supported for AveragePool");return(0,d.createAttributeWithCacheKey)({autoPad:q,ceilMode:H,countIncludePad:te,kernelShape:re,strides:ae,pads:ne})};const p=(R,q,H,te)=>{const[re,ae]=z(R,te,H),ne=h.ShapeUtil.size(re.kernelShape);let oe="";re.countIncludePad?oe+=`value /= float(${ne});`:oe+=`value /= float(${ne} - pad);`;const le=`
1249        ${e(R[0].dims,re,"value += _X(x);",oe,"0.0")}
1250      `;return Object.assign(Object.assign({}
vendor: 4,795 bytes, lines 1250-1308
1250,q),{output:{dims:ae,type:R[0].type,textureType:m.TextureType.unpacked},shaderSource:le})};n.globalAveragePool=(R,q,H)=>{s(q);const te={name:"GlobalAveragePool",inputNames:["X"],inputTypes:[m.TextureType.unpacked],cacheHint:`${H.countIncludePad}`};return[R.run(Object.assign(Object.assign({},te),{get:()=>p(q,te,!0,H)}),q)]},n.parseGlobalAveragePoolAttributes=R=>{const q=R.attributes.getInt("count_include_pad",0)!==0;return(0,d.createAttributeWithCacheKey)({autoPad:"",ceilMode:0,countIncludePad:q,kernelShape:[],strides:[],pads:[]})},n.maxPool=(R,q,H)=>{s(q);const te={name:"MaxPool",inputNames:["X"],inputTypes:[m.TextureType.unpacked],cacheHint:H.cacheKey};return[R.run(Object.assign(Object.assign({},te),{get:()=>w(q,te,!1,H)}),q)]},n.parseMaxPoolAttributes=R=>{const q=R.attributes.getString("auto_pad","NOTSET"),H=R.attributes.getInt("ceil_mode",0),te=R.attributes.getInts("kernel_shape"),re=R.attributes.getInts("strides",[]),ae=R.attributes.getInts("pads",[]),ne=R.attributes.getInt("storage_order",0),oe=R.attributes.getInts("dilations",[]);if(ne!==0)throw new Error("column major storage order is not yet supported for MaxPool");if(H!==0)throw new Error("using ceil() in shape computation is not yet supported for MaxPool");return(0,d.createAttributeWithCacheKey)({autoPad:q,ceilMode:H,countIncludePad:!1,kernelShape:te,strides:re,pads:ae,storageOrder:ne,dilations:oe})};const w=(R,q,H,te)=>{const[re,ae]=z(R,te,H),ne=`
1251      ${e(R[0].dims,re,`
1252      value = max(_X(x), value);
1253    `,"","-1e5")}
1254    `;return Object.assign(Object.assign({},q),{output:{dims:ae,type:R[0].type,textureType:m.TextureType.unpacked},shaderSource:ne})},z=(R,q,H)=>{const te=R[0].dims.slice(),re=Object.hasOwnProperty.call(q,"dilations"),ae=q.kernelShape.slice(),ne=q.strides.slice(),oe=re?q.dilations.slice():[],le=q.pads.slice();h.PoolConvUtil.adjustPoolAttributes(H,te,ae,ne,oe,le);const ce=h.PoolConvUtil.computePoolOutputShape(H,te,ne,oe,ae,le,q.autoPad),ue=Object.assign({},q);return re?Object.assign(ue,{kernelShape:ae,strides:ne,pads:le,dilations:oe,cacheKey:q.cacheKey}):Object.assign(ue,{kernelShape:ae,strides:ne,pads:le,cacheKey:q.cacheKey}),[ue,ce]},A={autoPad:"",ceilMode:0,countIncludePad:!1,kernelShape:[],strides:[],pads:[],storageOrder:0,dilations:[],cacheKey:""},y={name:"GlobalMaxPool",inputNames:["X"],inputTypes:[m.TextureType.unpacked]};n.globalMaxPool=(R,q)=>(s(q),[R.run(Object.assign(Object.assign({},y),{get:()=>w(q,y,!0,A)}),q)]);const s=R=>{if(!R||R.length!==1)throw new Error("Pool ops requires 1 input.");if(R[0].type!=="float32"&&R[0].type!=="float64")throw new Error("Invalid input type.")},e=(R,q,H,te,re)=>{const ae=R.length;if(q.kernelShape.length<=2){const ne=q.kernelShape[q.kernelShape.length-1],oe=q.strides[q.strides.length-1],le=q.pads[q.pads.length/2-1],ce=q.pads[q.pads.length-1],ue=R[ae-1];let he="",ge="",Oe="";if(he=le+ce!==0?`
1255          for (int i = 0; i < ${ne}; i++) {
1256            x[${ae} - 1] = indices[${ae} - 1] * ${oe} - ${le} + i;
1257            if (x[${ae} - 1] < 0 || x[${ae} - 1] >= ${ue}) {
1258              pad++;
1259              continue;
1260            }
1261            ${H}
1262          }`:`
1263          for (int i = 0; i < ${ne}; i++) {
1264            x[${ae} - 1] = indices[${ae} - 1] * ${oe} - ${le} + i;
1265            ${H}
1266          }`,q.kernelShape.length===2){const $e=q.kernelShape[q.kernelShape.length-2],Pe=q.strides[q.strides.length-2],Le=q.pads[q.pads.length/2-2],me=q.pads[q.pads.length-2],we=R[ae-2];ge=Le+me!==0?`
1267            for (int j = 0; j < ${$e}; j++) {
1268              x[${ae} - 2] = indices[${ae} - 2] * ${Pe} - ${Le} + j;
1269              if (x[${ae} - 2] < 0 || x[${ae} - 2] >= ${we}) {
1270                pad+= ${ne};
1271                continue;
1272              }
1273          `:`
1274            for (int j = 0; j < ${$e}; j++) {
1275              x[${ae} - 2] = indices[${ae} - 2] * ${Pe} - ${Le} + j;
1276            `,Oe=`
1277          }
1278        `}return`
1279        float process(int indices[${ae}]) {
1280          int x[${ae}];
1281          copyVec(indices, x);
1282
1283          float value = ${re};
1284          int pad = 0;
1285          ${ge}
1286          ${he}
1287          ${Oe}
1288          ${te}
1289          return value;
1290        }
1291      `}{const ne=h.ShapeUtil.size(q.kernelShape),oe=h.ShapeUtil.computeStrides(q.kernelShape),le=oe.length,ce=q.pads.length,ue=g(le),he=f(R,"inputDims"),ge=f(q.pads,"pads"),Oe=f(oe,"kernelStrides"),$e=f(q.strides,"strides");let Pe="";return Pe=q.pads.reduce(((Le,me)=>Le+me))?`
1292            if (x[j] >= inputDims[j] || x[j] < 0) {
1293              pad++;
1294              isPad = true;
1295              break;
1296            }
1297          }
1298          if (!isPad) {
1299            ${H}
1300          }`:`
1301          }
1302          ${H}
1303        `,`
1304        ${ue}
1305        float process(int indices[${ae}]) {
1306          int x[${ae}];
1307          copyVec(indices, x);
1308          int offset[${le}
1308];
1309          int pads[${ce}];
1310          int inputDims[${ae}];
1311          int kernelStrides[${le}];
1312          int strides[${le}];
1313          ${ge}
1314          ${he}
1315          ${$e}
1316          ${Oe}
1317
1318          float value = ${re};
1319          int pad = 0;
1320          bool isPad = false;
1321          for (int i = 0; i < ${ne}; i++) {
1322            offsetToIndices(i, kernelStrides, offset);
1323            isPad = false;
1324            for (int j = ${ae} - ${le}; j < ${ae}; j++) {
1325              x[j] = indices[j] * strides[j - ${ae} + ${le}]
1326                + offset[j - ${ae} + ${le}] - pads[j - 2];
1327              ${Pe}
1328          }
1329          ${te}
1330
1331          return value;
1332        }
1333      `}},f=(R,q)=>{let H="";for(let te=0;te<R.length;te++)H+=`
1334      ${q}[${te}] = ${R[te]};
1335    `;return H},g=R=>`
1336  void offsetToIndices(int offset, int[${R}] strides, out int[${R}] indices) {
1337    if (${R} == 0) {
1338      return;
1339    }
1340    for (int i = 0; i < ${R} - 1; ++i) {
1341      indices[i] = offset / strides[i];
1342      offset -= indices[i] * strides[i];
1343    }
1344    indices[${R} - 1] = offset;
1345  }`},4939:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.reduceLogSumSquare=n.reduceLogSum=n.reduceProd=n.reduceMin=n.reduceMax=n.reduceMean=n.reduceSum=n.parseReduceAttributes=void 0;const d=c(246),h=c(782),m=c(2517),p=c(2039),w=(y,s,e,f,g)=>{A(s);const R={name:f,inputNames:["A"],inputTypes:[p.TextureType.unpacked]};return[y.run(Object.assign(Object.assign({},R),{cacheHint:e.cacheKey,get:()=>z(y,s,e,f,g,R)}),s)]};n.parseReduceAttributes=y=>{const s=y.attributes.getInts("axes",[]),e=y.attributes.getInt("keepdims",1)===1;return(0,d.createAttributeWithCacheKey)({axes:s,keepDims:e})};const z=(y,s,e,f,g,R)=>{const q=[],H=s[0].dims.length||1,te=[],re=m.ShapeUtil.normalizeAxes(e.axes,s[0].dims.length),ae=g(s,re);let ne=ae[1];for(let le=0;le<s[0].dims.length;le++)re.indexOf(le)>=0||re.length===0?(e.keepDims&&q.push(1),ne=`
1346          for(int j${le} = 0; j${le} < ${s[0].dims[le]}; j${le}++) {
1347            inputIdx[${le}] = j${le};
1348            ${ne}
1349          }`):(te.push(`inputIdx[${le}] = outputIdx[${q.length}];`),q.push(s[0].dims[le]));const oe=`
1350      float process(int outputIdx[${q.length||1}]) {
1351        float value;                 // final result
1352        int inputIdx[${H}];      // addressing input data
1353        ${te.join(`
1354`)}
1355        ${ae[0]}       // init ops for reduce max/min
1356        ${ne}
1357        ${ae[2]}       // final computation for reduce mean
1358        return value;
1359      }`;return Object.assign(Object.assign({},R),{output:{dims:q,type:s[0].type,textureType:p.TextureType.unpacked},shaderSource:oe})},A=y=>{if(!y||y.length!==1)throw new Error("Reduce op requires 1 input.");if(h.NUMBER_TYPES.indexOf(y[0].type)===-1)throw new Error("Invalid input type.")};n.reduceSum=(y,s,e)=>w(y,s,e,"ReduceSum",(()=>["value = 0.0;","value += _A(inputIdx);",""])),n.reduceMean=(y,s,e)=>w(y,s,e,"ReduceMean",((f,g)=>{let R=1;for(let q=0;q<f[0].dims.length;q++)(g.indexOf(q)>=0||g.length===0)&&(R*=f[0].dims[q]);return["value = 0.0;","value += _A(inputIdx);",`value /= ${R}.;`]})),n.reduceMax=(y,s,e)=>w(y,s,e,"ReduceMax",((f,g)=>{const R=[];for(let q=0;q<f[0].dims.length;q++)(g.indexOf(q)>=0||g.length===0)&&R.push(`inputIdx[${q}] = 0;`);return[`${R.join(`
1360`)}
1361value = _A(inputIdx);`,"value = max(value, _A(inputIdx));",""]})),n.reduceMin=(y,s,e)=>w(y,s,e,"ReduceMin",((f,g)=>{const R=[];for(let q=0;q<f[0].dims.length;q++)(g.indexOf(q)>=0||g.length===0)&&R.push(`inputIdx[${q}] = 0;`);return[`${R.join(`
1362`)}
1363value = _A(inputIdx);`,"value = min(value, _A(inputIdx));",""]})),n.reduceProd=(y,s,e)=>w(y,s,e,"ReduceProd",(()=>["value = 1.0;","value *= _A(inputIdx);",""])),n.reduceLogSum=(y,s,e)=>w(y,s,e,"ReduceLogSum",(()=>["value = 0.0;","value += _A(inputIdx);","value = log(value);"])),n.reduceLogSumSquare=(y,s,e)=>w(y,s,e,"ReduceLogSumSquare",(()=>["float t; value = 0.0;","t = _A(inputIdx); value += t * t;",""]))},7019:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.isReshapeCheap=n.processDims3D=n.createPackedReshape3DProgramInfoLoader=void 0;const d=c(2517),h=c(5060),m=c(2039),p=c(2827);n.createPackedReshape3DProgramInfoLoader=(w,z,A)=>{const y=(s=>({name:"Reshape (packed)",inputTypes:[m.TextureType.packed],inputNames:["A"],cacheHint:`${s}`}))(A);return Object.assign(Object.assign({},y),{get:()=>((s,e,f,g)=>{const R=e.dims,q=g;let H="";for(let ae=0;ae<4;ae++){let ne="";switch(ae){case 0:ne="outputCoords = rc;";break;
vendor: 5,973 bytes, lines 1363-1445
1363case 1:ne="outputCoords = ivec3(rc.x, rc.y+1, rc.z);";break;case 2:ne="outputCoords = ivec3(rc.x, rc.y, rc.z+1);";break;case 3:ne="outputCoords = ivec3(rc.x, rc.y+1, rc.z+1);";break;default:throw new Error}H+=`
1364        ${ne}
1365        ${ae>0?"if(outputCoords.y < rows && outputCoords.z < cols){":""}
1366          int flattenedIndex = getFlattenedIndex(outputCoords);
1367
1368          ivec3 inputRC = inputCoordsFromReshapedOutCoords(flattenedIndex);
1369          vec2 innerDims = vec2(float(inputRC.y),float(inputRC.z));
1370
1371          result[${ae}] = getChannel(getA(inputRC.x, inputRC.y, inputRC.z), innerDims);
1372
1373        ${ae>0?"}":""}
1374      `}const te=(0,h.getGlsl)(s.session.backend.glContext.version),re=`
1375      ${(function(ae){const ne=d.ShapeUtil.computeStrides(ae),oe=["b","r","c"],le="index";return`
1376    ivec3 inputCoordsFromReshapedOutCoords(int index) {
1377      ${ne.map(((ce,ue)=>`int ${oe[ue]} = ${le} / ${ce}; ${ue===ne.length-1?`int ${oe[ue+1]} = ${le} - ${oe[ue]} * ${ce}`:`index -= ${oe[ue]} * ${ce}`};`)).join("")}
1378      return ivec3(b, r, c);
1379    }
1380  `})(R)}
1381      ${(function(ae){const ne=d.ShapeUtil.computeStrides(ae);return`
1382  int getFlattenedIndex(ivec3 coords) {
1383    // reverse y, z order
1384    return coords.x * ${ne[0]} + coords.z * ${ne[1]} + coords.y;
1385  }
1386`})(q)}
1387      ${(0,p.unpackFromChannel)()}
1388
1389      void main() {
1390        ivec3 rc = getOutputCoords();
1391
1392        vec4 result = vec4(0.0);
1393
1394        ivec3 outputCoords;
1395        int rows = ${q[2]};
1396        int cols = ${q[1]};
1397
1398        ${H}
1399        ${te.output} = result;
1400      }
1401    `;return Object.assign(Object.assign({},f),{output:{dims:q,type:e.type,textureType:m.TextureType.packed},shaderSource:re,hasMain:!0})})(w,z,y,A)})},n.processDims3D=function(w){if(w.length===0)return[1,1,1];let z=1;for(let A=0;A<w.length-2;++A)z*=w[A];return[z,w.length>1?w[w.length-2]:1,w[w.length-1]]},n.isReshapeCheap=function(w,z){let A=!1;return A=w.length===0||z.length===0||(w.length<2||z.length<2?w[w.length-1]===z[z.length-1]:w[w.length-1]===z[z.length-1]&&w[w.length-2]===z[z.length-2]),A}},718:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.reshape=void 0;const d=c(2517);n.reshape=(h,m)=>{const p=d.ShapeUtil.calculateReshapedDims(m[0].dims,m[1].integerData);return h.session.pack?[h.reshapePacked(m[0],p)]:[h.reshapeUnpacked(m[0],p)]}},2268:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.parseResizeAttributesV11=n.parseResizeAttributesV10=n.resize=void 0;const d=c(5060),h=c(2039),m=c(9390),p=c(2827),w=c(9793),z={name:"Resize",inputNames:["A"],inputTypes:[h.TextureType.packed]};n.resize=(f,g,R)=>((0,w.validateInputs)(g,R),[f.run(Object.assign(Object.assign({},z),{cacheHint:R.cacheKey,get:()=>A(f,g,R)}),g)]),n.parseResizeAttributesV10=f=>(0,w.parseUpsampleAttributes)(f,10),n.parseResizeAttributesV11=f=>(0,w.parseUpsampleAttributes)(f,11);const A=(f,g,R)=>{const q=(0,d.getGlsl)(f.session.backend.glContext.version),[H,te]=y(g,R);if(H.every((Pe=>Pe===1))&&R.coordinateTransformMode!=="tf_crop_and_resize")return Object.assign(Object.assign({},z),{output:{dims:te,type:g[0].type,textureType:h.TextureType.packed},hasMain:!0,shaderSource:`void main() {
1402                    vec4 v = ${q.texture2D}(X, TexCoords);
1403                    ${q.output} = v;
1404                }`});const re=te.length;if(re<2)throw new Error(`output dimension should be at least 2, but got ${re}`);const ae=te[re-2],ne=te[re-1],oe=g[0].dims;if(re!==oe.length)throw new Error(`output dimension should match input ${oe.length}, but got ${re}`);const le=oe[re-2],ce=oe[re-1],ue=H[re-2],he=H[re-1];let ge="";if(R.mode!=="linear")throw new Error(`resize (packed) does not support mode: '${R.mode}'`);switch(R.coordinateTransformMode){case"asymmetric":ge=`
1405                    vec4 getSourceFracIndex(ivec4 coords) {
1406                        return vec4(coords) / scaleWHWH;
1407                    }
1408                `;break;case"half_pixel":ge=`
1409                    vec4 getSourceFracIndex(ivec4 coords) {
1410                        return (vec4(coords) + 0.5) / scaleWHWH - 0.5;
1411                    }
1412                `;break;case"pytorch_half_pixel":ge=`
1413                    vec4 getSourceFracIndex(ivec4 coords) {
1414                        vec4 fcoords = vec4(coords);
1415                        return vec4(
1416                            ${ne}.0 > 1.0 ? (fcoords.x + 0.5) / scaleWHWH.x - 0.5 : 0.0,
1417                            ${ae}.0 > 1.0 ? (fcoords.y + 0.5) / scaleWHWH.y - 0.5 : 0.0,
1418                            ${ne}.0 > 1.0 ? (fcoords.z + 0.5) / scaleWHWH.z - 0.5 : 0.0,
1419                            ${ae}.0 > 1.0 ? (fcoords.w + 0.5) / scaleWHWH.w - 0.5 : 0.0
1420                          );
1421                    }
1422                `;break;case"align_corners":ge=`
1423                    vec4 getSourceFracIndex(ivec4 coords) {
1424                        vec4 resized = vec4(${ne}.0 - 1.0, ${ae}.0 - 1.0, ${ne}.0 - 1.0,
1425                            ${ae}.0 - 1.0);
1426                        vec4 original = vec4(${ce}.0 - 1.0, ${le}.0 - 1.0, ${ce}.0 - 1.0,
1427                            ${le}.0 - 1.0);
1428                        vec4 new_scale = original / resized;
1429                        return vec4(coords) * new_scale;
1430                    }
1431                `;break;default:throw new Error(`resize (packed) does not support coordinateTransformMode:                                 '${R.coordinateTransformMode}'`)}const Oe=(0,m.getCoordsDataType)(re),$e=`
1432            const vec2 inputWH = vec2(${le}.0, ${ce}.0);
1433            const vec4 scaleWHWH = vec4(float(${ue}), float(${he}), float(${ue}), float(${he}));
1434            ${(0,p.unpackFromChannel)()}
1435            ${ge}
1436            float getAValue(int x10, int r, int c, int d) {
1437                return getChannel(getA(x10, r, c, d), vec2(c, d));
1438            }
1439            void main() {
1440                ${Oe} rc = getOutputCoords();
1441
1442                int batch = rc[0];
1443                int depth = rc[1];
1444
1445                // retrieve the 4 coordinates that is used in the 4 packed output values.
1446                ivec4 coords = ivec4(rc.wz, rc.w + 1, rc.z + 1);
1447
1448                // calculate the source index in fraction
1449                vec4 sourceFrac = getSourceFracIndex(coords);
1450
1451                // get the lower and upper bound of the 4 values that will be packed into one texel.
1452                ivec4 x00 = ivec4(max(sourceFrac.xy, vec2(0.0)), min(inputWH - 1.0, ceil(sourceFrac.xy)));
1453                ivec4 x01 = ivec4(max(sourceFrac.xw, vec2(0.0)), min(inputWH - 1.0, ceil(sourceFrac.xw)));
1454                ivec4 x10 = ivec4(max(sourceFrac.zy, vec2(0.0)), min(inputWH - 1.0, ceil(sourceFrac.zy)));
1455                ivec4 x11 = ivec4(max(sourceFrac.zw, vec2(0.0)), min(inputWH - 1.0, ceil(sourceFrac.zw)));
1456
1457                bool hasNextRow = rc.w < ${ae-1};
1458                bool hasNextCol = rc.z < ${ne-1};
1459
1460                // pack x00, x01, x10, x11's top-left corner into one vec4 structure
1461                vec4 topLeft = vec4(
1462                    getAValue(batch, depth, x00.x, x00.y),
1463                    hasNextCol ? getAValue(batch, depth, x01.x, x01.y) : 0.0,
1464                    hasNextRow ? getAValue(batch, depth, x10.x, x10.y) : 0.0,
1465                    (hasNextRow && hasNextCol) ? getAValue(batch, depth, x11.x, x11.y) : 0.0);
1466
1467                // pack x00, x01, x10, x11's top-right corner into one vec4 structure
1468                vec4 topRight = vec4(
1469                    getAValue(batch, depth, x00.x, x00.w),
1470                    hasNextCol ? getAValue(batch, depth, x01.x, x01.w) : 0.0,
1471                    hasNextRow ? getAValue(batch, depth, x10.x, x10.w) : 0.0,
1472                    (hasNextRow && hasNextCol) ? getAValue(batch, depth, x11.x, x11.w) : 0.0);
1473
1474                // pack x00, x01, x10, x11's bottom-left corner into one vec4 structure
1475                vec4 bottomLeft = vec4(
1476                    getAValue(batch, depth, x00.z, x00.y),
1477                    hasNextCol ? getAValue(batch, depth, x01.z, x01.y) : 0.0,
1478                    hasNextRow ? getAValue(batch, depth, x10.z, x10.y) : 0.0,
1479                    (hasNextRow && hasNextCol) ? getAValue(batch, depth, x11.z, x11.y) : 0.0);
1480
1481                // pack x00, x01, x10, x11's bottom-right corner into one vec4 structure
1482                vec4 bottomRight = vec4(
1483                    getAValue(batch, depth, x00.z, x00.w),
1484                    hasNextCol ? getAValue(batch, depth, x01.z, x01.w) : 0.0,
1485                    hasNextRow ? getAValue(batch, depth, x10.z, x10.w) : 0.0,
1486                    (hasNextRow && hasNextCol) ? getAValue(batch, depth, x11.z, x11.w) : 0.0);
1487
1488                // calculate the interpolation fraction on u and v direction
1489                vec4 frac = vec4(sourceFrac) - floor(sourceFrac);
1490                vec4 clampFrac = clamp(frac, vec4(0.0), vec4(1.0));
1491
1492                vec4 top = mix(topLeft, topRight, clampFrac.ywyw);
1493                vec4 bottom = mix(bottomLeft, bottomRight, clampFrac.ywyw);
1494                vec4 newValue = mix(top, bottom, clampFrac.xxzz);
1495
1496                ${q.output} = vec4(newValue);
1497            }
1498        `;return Object.assign(Object.assign({},z),{output:{dims:te,type:g[0].type,textureType:h.TextureType.packed},hasMain:!0,shaderSource:$e})},y=(f,g)=>{const R=f[0].dims;let q,H=g.scales;if(H.length===0){const re=f[g.scalesInputIdx];if(re&&re.size!==0){if(f[g.sizesInputIdx])throw new Error("Only one of scales or sizes must be provided as input.");H=s(re,g.mode,g.isResize)}else{const ae=f[g.sizesInputIdx];if(!ae||ae.size===0)throw new Error("Either scales or sizes MUST be provided as input.");q=Array.from(ae.integerData),H=e(q,R,g.mode,g.isResize)}}else if(f[g.sizesInputIdx])throw new Error("Only one of scales or sizes must be provided as input.");const te=q||R.map(((re,ae)=>Math.floor(re*H[ae])));return[H,te]},s=(f,g,R)=>{const q=Array.from(f.floatData);return(0,w.scalesValidation)(q,g,R),q},e=(f,g,R,q)=>{const H=g.length,te=new Array(H);for(let re=0,ae=H;re<ae;re++)if(g[re]===0){if(f[re]!==0)throw new Error("Input dim is zero but required output dim is non-zero.");te[re]=1}else te[re]=f[re]/g[re];return(0,w.scalesValidation)(te,R,q),te}},8117:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.shape=void 0;const d=c(9162);n.shape=(m,p)=>(h(p),[new d.Tensor([p[0].dims.length],"int32",void 0,void 0,new Int32Array(p[0].dims))]);const h=m=>{if(!m||m.length!==1)throw new Error("Shape requires 1 input.")}},2278:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.sliceV10=n.parseSliceAttributes=n.slice=void 0;const d=c(246),h=c(782),m=c(2517),p=c(2039),w={name:"Slice",inputNames:["A"],inputTypes:[p.TextureType.unpacked]};n.slice=(e,f,g)=>(A(f),[e.run(Object.assign(Object.assign({},w),{cacheHint:g.cacheKey,get:()=>z(e,f[0],g)}),f)]),n.parseSliceAttributes=e=>{const f=e.attributes.getInts("starts"),g=e.attributes.getInts("ends"),R=e.attributes.getInts("axes",[]);return(0,d.createAttributeWithCacheKey)({starts:f,ends:g,axes:R})};const z=(e,f,g)=>{const R=g.axes.length===0?f.dims.slice(0).map(((oe,le)=>le)):g.axes,q=m.ShapeUtil.normalizeAxes(R,f.dims.length),H=g.starts.map(((oe,le)=>oe>f.dims[q[le]]-1?f.dims[q[le]]:m.ShapeUtil.normalizeAxis(oe,f.dims[q[le]]))),te=g.ends.map(((oe,le)=>oe>f.dims[q[le]]-1?f.dims[q[le]]:m.ShapeUtil.normalizeAxis(oe,f.dims[q[le]]))),re=f.dims.slice(),ae=[];for(let oe=0;oe<q.length;oe++)re[q[oe]]=te[oe]-H[oe],H[oe]>0&&ae.push(`outputIdx[${q[oe]}] += ${H[oe]};`);const ne=`
1499      float process(int outputIdx[${re.length}]) {
1500        ${ae.join(`
1501      `)}
1502        return _A(outputIdx);
1503      }`;return Object.assign(Object.assign({},w),{output:{dims:re,type:f.type,textureType:p.TextureType.unpacked},shaderSource:ne})},A=e=>{if(!e||e.length!==1)throw new Error("Slice requires 1 input.");if(h.NUMBER_TYPES.indexOf(e[0].type)===-1)throw new Error("Invalid input type.")};n.sliceV10=(e,f)=>{s(f);const g=y(e,f);return[e.run(Object.assign(Object.assign({},w),{cacheHint:g.cacheKey,get:()=>z(e,f[0],g)}),[f[0]])]};const y=(e,f)=>{if(!e.session.isInitializer(f[1].dataId)||!e.session.isInitializer(f[2].dataId)||f.length>=4&&!e.session.isInitializer(f[3].dataId)||f.length>=5&&!e.session.isInitializer(f[4].dataId))throw new Error("dynamic slice attributes are not allowed");if(f.length>=5&&f[4].integerData.some((H=>H!==1)))throw new Error("currently non-1 steps is not supported for Slice");const g=Array.from(f[1].integerData),R=Array.from(f[2].integerData),q=f.length>=4?Array.from(f[3].integerData):[];return{starts:g,ends:R,axes:q,cacheKey:`${q};${g};${R}`}},s=e=>{if(!e||e.length<3||e.length>5)throw new Error("Invalid input number.");if(e[1].type!=="int32"||e[1].dims.length!==1)throw new Error("Invalid input type.");if(e[2].type!=="int32"||e[2].dims.length!==1)throw new Error("Invalid input type.");if(e.length>=4&&(e[3].type!=="int32"||e[3].dims.length!==1))throw new Error("Invalid input type.");if(e.length>=5&&(e[4].type!=="int32"||e[4].dims.length!==1))throw new Error("Invalid input type.")}},5524:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.softmaxV13=n.parseSoftmaxAttributesV13=n.parseSoftmaxAttributes=n.softmax=void 0;const d=c(246),h=c(2517),m=c(5060),p=c(2039),w=c(3738),z={name:"SoftmaxComputeMax",
vendor: 15,604 bytes, lines 1503-1693
1503inputNames:["A"],inputTypes:[p.TextureType.unpacked]},A={name:"SoftmaxComputeScale",inputNames:["A","Max"],inputTypes:[p.TextureType.unpacked,p.TextureType.unpacked]},y={name:"SoftMax",inputNames:["A","Max","Norm"],inputTypes:[p.TextureType.unpacked,p.TextureType.unpacked,p.TextureType.unpacked]};n.softmax=(q,H,te)=>{R(H);const re=H[0].dims.slice(),ae=h.ShapeUtil.normalizeAxis(te.axis,re.length),ne=h.ShapeUtil.sizeToDimension(re,ae),oe=h.ShapeUtil.sizeFromDimension(re,ae);return s(q,H,te,ne,oe)},n.parseSoftmaxAttributes=q=>(0,d.createAttributeWithCacheKey)({axis:q.attributes.getInt("axis",1)}),n.parseSoftmaxAttributesV13=q=>(0,d.createAttributeWithCacheKey)({axis:q.attributes.getInt("axis",-1)}),n.softmaxV13=(q,H,te)=>{R(H);const re=H[0].dims.slice(),ae=h.ShapeUtil.normalizeAxis(te.axis,re.length),ne=re.length,oe=ae!==ne-1,le=[];let ce,ue=[],he=[];oe&&(ue=Array.from({length:ne}).map(((Pe,Le)=>Le)),ue[ae]=ne-1,ue[ne-1]=ae,ue.map((Pe=>le.push(re[Pe]))),ce=(0,d.createAttributeWithCacheKey)({perm:ue}),he=(0,w.transpose)(q,H,ce));const ge=oe?h.ShapeUtil.sizeToDimension(le,ne-1):h.ShapeUtil.sizeToDimension(re,ne-1),Oe=oe?h.ShapeUtil.sizeFromDimension(le,ne-1):h.ShapeUtil.sizeFromDimension(re,ne-1),$e=s(q,oe?he:H,te,ge,Oe);return oe?(0,w.transpose)(q,$e,ce):$e};const s=(q,H,te,re,ae)=>{const ne=e(q,H[0],re,ae,[re]),oe=q.run(Object.assign(Object.assign({},z),{cacheHint:te.cacheKey,get:()=>ne}),H),le=f(q,H[0],re,ae,ne.output.dims,[re]),ce=q.run(Object.assign(Object.assign({},A),{cacheHint:te.cacheKey,get:()=>le}),[H[0],oe]),ue=g(q,H[0],re,ae,ne.output.dims,le.output.dims);return[q.run(Object.assign(Object.assign({},y),{cacheHint:te.cacheKey,get:()=>ue}),[H[0],oe,ce])]},e=(q,H,te,re,ae)=>{const[ne,oe]=q.calculateTextureWidthAndHeight(H.dims,p.TextureType.unpacked),le=ae.length;if(te<1||re<1)throw new Error("Logical row count N and feature count D must be greater than or equal to 1");if(ae.length!==1)throw new Error("Dimensionality of the output should be 1");if(ae[0]!==te)throw new Error("Shape of the output should be equal to logical row count");const ce=(0,m.getGlsl)(q.session.backend.glContext.version),ue=`
1504      float process(int[${le}] indices) {
1505        int logical_row_start_offset = indices[0] * ${re};
1506
1507        float max = getColorAsFloat(${ce.texture2D}(A, offsetToCoords(logical_row_start_offset, ${ne},
1508        ${oe} )));
1509        for(int i=1; i<${re}; ++i)
1510        {
1511          float current = getColorAsFloat(${ce.texture2D}(A, offsetToCoords(logical_row_start_offset + i,
1512            ${ne}, ${oe})));
1513          if(current > max)
1514          max = current;
1515        }
1516
1517        return max;
1518      }`;return Object.assign(Object.assign({},z),{output:{dims:ae,type:H.type,textureType:p.TextureType.unpacked},shaderSource:ue})},f=(q,H,te,re,ae,ne)=>{const[oe,le]=q.calculateTextureWidthAndHeight(H.dims,p.TextureType.unpacked),ce=ne.length;if(te<1||re<1)throw new Error("Logical row count N and feature count D must be greater than or equal to 1");if(ne.length!==1)throw new Error("Dimensionality of the output should be 1");if(ne[0]!==te)throw new Error("Shape of the output should be equal to logical row count");if(ae.length!==1)throw new Error("Dimensionality of the intermediate results should be 1");if(ae[0]!==te)throw new Error("Shape of the intermediate results should be equal to logical row count");const ue=`
1519      float process(int[${ce}] indices) {
1520        int logical_row_start_offset = indices[0] * ${re};
1521
1522        float norm_factor = 0.0;
1523        float max = _Max(indices);
1524        for(int i=0; i<${re}; ++i)
1525        {
1526          norm_factor += exp(getColorAsFloat(${(0,m.getGlsl)(q.session.backend.glContext.version).texture2D}(A, offsetToCoords(logical_row_start_offset + i,
1527            ${oe}, ${le}))) - max);
1528        }
1529
1530        return norm_factor;
1531      }`;return Object.assign(Object.assign({},A),{output:{dims:ne,type:H.type,textureType:p.TextureType.unpacked},shaderSource:ue})},g=(q,H,te,re,ae,ne)=>{const[oe,le]=q.calculateTextureWidthAndHeight(H.dims,p.TextureType.unpacked),ce=H.dims.length;if(te<1||re<1)throw new Error("Logical row count N and feature count D must be greater than or equal to 1");if(ae.length!==1||ne.length!==1)throw new Error("Dimensionality of the intermediate results should be 1");if(ae[0]!==te||ne[0]!==te)throw new Error("Shape of the intermediate results should be equal to logical row count");const ue=`
1532      float process(int[${ce}] indices) {
1533
1534      // get offset of current logical tensor index from the 2-D texture coordinates (TexCoords)
1535      int offset = coordsToOffset(TexCoords, ${oe}, ${le});
1536
1537      //determine the logical row for this index
1538      int logical_row_index[1];
1539      logical_row_index[0] = offset / ${re};
1540
1541      float norm_factor = _Norm(logical_row_index);
1542
1543      // avoid possible division by 0
1544      // if norm_facor is 0, all elements are zero
1545      // if so, return 0
1546      if(norm_factor == 0.0)
1547        return 0.0;
1548
1549      return exp(_A(indices) - _Max(logical_row_index)) / norm_factor;
1550    }`;return Object.assign(Object.assign({},y),{output:{dims:H.dims,type:H.type,textureType:p.TextureType.unpacked},shaderSource:ue})},R=q=>{if(!q||q.length!==1)throw new Error("Softmax requires 1 input.");if(q[0].type!=="float32"&&q[0].type!=="float64")throw new Error("Invalid input type")}},5975:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.parseSplitAttributes=n.split=void 0;const d=c(246),h=c(2517),m=c(2039),p={name:"Split",inputNames:["A"],inputTypes:[m.TextureType.unpacked]};n.split=(y,s,e)=>{A(s);const f=h.ShapeUtil.normalizeAxis(e.axis,s[0].dims.length),g=w(y,s,f,e),R=[];for(let q=0;q<g;++q)R.push(y.run(Object.assign(Object.assign({},p),{cacheHint:`${e.cacheKey};${q}`,get:()=>z(y,s[0],e,f,q)}),s));return R},n.parseSplitAttributes=y=>{const s=y.attributes.getInt("axis",0),e=y.attributes.getInts("split",[]),f=y.outputs.length;return(0,d.createAttributeWithCacheKey)({axis:s,split:e,numOutputs:f})};const w=(y,s,e,f)=>{const[,g]=h.SplitUtil.splitShape(s[0].dims,e,f.split,f.numOutputs);return g.length},z=(y,s,e,f,g)=>{const[R,q]=h.SplitUtil.splitShape(s.dims,f,e.split,e.numOutputs),H=q[g],te=R[g],re=`
1551      float process(int indices[${te.length}]) {
1552        indices[${f}] += ${H};
1553        return _A(indices);
1554      }
1555    `;return Object.assign(Object.assign({},p),{cacheHint:`${e.cacheKey}:${g}`,output:{dims:te,type:s.type,textureType:m.TextureType.unpacked},shaderSource:re})},A=y=>{if(!y||y.length!==1)throw new Error("Split requires one input.");if(y[0].type!=="int8"&&y[0].type!=="uint8"&&y[0].type!=="int16"&&y[0].type!=="uint16"&&y[0].type!=="int32"&&y[0].type!=="uint32"&&y[0].type!=="float32"&&y[0].type!=="float64"&&y[0].type!=="bool")throw new Error("Invalid input type.")}},3933:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.parseSqueezeAttributes=n.squeezeV13=n.squeeze=void 0;const d=c(2517);n.squeeze=(p,w,z)=>{h(w);const A=d.ShapeUtil.squeezeShape(w[0].dims,z);return[p.reshapeUnpacked(w[0],A)]},n.squeezeV13=(p,w)=>(m(w),(0,n.squeeze)(p,[w[0]],Array.from(w[1].integerData))),n.parseSqueezeAttributes=p=>p.attributes.getInts("axes");const h=p=>{if(!p||p.length!==1)throw new Error("Squeeze requires 1 input.");if(p[0].type==="string")throw new Error("invalid input tensor types.")},m=p=>{if(!p||p.length!==2)throw new Error("Squeeze requires 2 inputs.");if(p[1].type!=="int32")throw new Error("Invalid input type.")}},6558:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.sum=void 0;const d=c(5060),h=c(2039);n.sum=(w,z)=>{p(z);const A={name:"Sum",inputNames:z.map(((y,s)=>`X${s}`)),inputTypes:new Array(z.length).fill(h.TextureType.unpacked)};return[w.run(Object.assign(Object.assign({},A),{get:()=>m(w,z,A)}),z)]};const m=(w,z,A)=>{const y=(0,d.getGlsl)(w.session.backend.glContext.version),s=z[0].dims.slice(),e=`
1556      void main() {
1557        vec4 result = ${z.map(((f,g)=>`${y.texture2D}(X${g},TexCoords)`)).join(" + ")};
1558        ${y.output} = result;
1559      }
1560    `;return Object.assign(Object.assign({},A),{output:{dims:s,type:z[0].type,textureType:h.TextureType.unpacked},hasMain:!0,shaderSource:e})},p=w=>{if(!w||w.length===0)throw new Error("Sum requires inputs.");const z=w[0].dims.length;for(let A=1;A<w.length;A++){if(z!==w[A].dims.length)throw new Error("Input shapes are mismatched.");for(let y=0;y<z;y++)if(w[0].dims[y]!==w[A].dims[y])throw new Error("Input shapes are not matched.")}if(w[0].type!=="float32"&&w[0].type!=="float64")throw new Error("Invalid input type.");for(let A=1;A<w.length;A++)if(w[0].type!==w[A].type)throw new Error("Input types are not matched.")}},5723:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.tile=void 0;const d=c(782),h=c(2039);n.tile=(w,z)=>{p(z);const A={name:"Tile",inputNames:["A"],inputTypes:[h.TextureType.unpacked]};return[w.run(Object.assign(Object.assign({},A),{get:()=>m(w,z,A)}),z)]};const m=(w,z,A)=>{const y=z[0].dims.slice(),s=new Array(y.length),e=[];for(let R=0;R<y.length;R++)s[R]=y[R]*z[1].numberData[R],e.push(`inputIdx[${R}] = int(mod(float(outputIdx[${R}]), ${y[R]}.));`);const f=s.length,g=`
1561      float process(int outputIdx[${f}]) {
1562        int inputIdx[${f}];
1563        ${e.join(`
1564`)}
1565        return _A(inputIdx);
1566      }
1567    `;return Object.assign(Object.assign({},A),{output:{dims:s,type:z[0].type,textureType:h.TextureType.unpacked},shaderSource:g})},p=w=>{if(!w||w.length!==2)throw new Error("Tile requires 2 input.");if(w[1].dims.length!==1)throw new Error("The second input shape must 1 dimension.");if(w[1].dims[0]!==w[0].dims.length)throw new Error("Invalid input shape.");if(d.NUMBER_TYPES.indexOf(w[0].type)===-1)throw new Error("Invalid input type.");if(w[1].type!=="int32"&&w[1].type!=="int16")throw new Error("Invalid repeat type.")}},3738:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.parseTransposeAttributes=n.transpose=void 0;const d=c(246),h=c(2517),m=c(2039),p={name:"Transpose",inputNames:["A"],inputTypes:[m.TextureType.unpacked]};n.transpose=(e,f,g)=>(s(f),[e.run(Object.assign(Object.assign({},p),{cacheHint:g.cacheKey,get:()=>w(e,f[0],g.perm)}),f)]),n.parseTransposeAttributes=e=>(0,d.createAttributeWithCacheKey)({perm:e.attributes.getInts("perm",[])});const w=(e,f,g)=>{const R=f.dims;g=z(R,g);const q=A(R,g),H=R.length,te=`
1568      ${y("perm",g,H)}
1569      float process(int indices[${H}]) {
1570        int a[${H}];
1571        perm(a, indices);
1572        return _A(a);
1573      }`;return Object.assign(Object.assign({},p),{output:{dims:q,type:f.type,textureType:m.TextureType.unpacked},shaderSource:te})},z=(e,f)=>(f&&f.length!==e.length&&(f=[...e.keys()].reverse()),f),A=(e,f)=>(f=z(e,f),h.ShapeUtil.sortBasedOnPerm(e,f)),y=(e,f,g)=>{const R=[];R.push(`void ${e}(out int a[${g}], int src[${g}]) {`);for(let q=0;q<g;++q)R.push(`	a[${f[q]}]=src[${q}];`);return R.push("	}"),R.join(`
1574`)},s=e=>{if(!e||e.length!==1)throw new Error("Transpose requires 1 input.");if(e[0].type!=="float32"&&e[0].type!=="float64")throw new Error("input should be float tensor")}},8710:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.encodeAsUint8=void 0;const d=c(5060),h=c(2039);n.encodeAsUint8=(m,p)=>{const w=p.shape,z=(0,d.getGlsl)(m.session.backend.glContext.version),A=`
1575    const float FLOAT_MAX = 1.70141184e38;
1576    const float FLOAT_MIN = 1.17549435e-38;
1577
1578    bool isNaN(float val) {
1579      return (val < 1.0 || 0.0 < val || val == 0.0) ? false : true;
1580    }
1581
1582    highp vec4 encodeAsUint8(highp float v) {
1583      if (isNaN(v)) {
1584        return vec4(255, 255, 255, 255);
1585      }
1586
1587      highp float av = abs(v);
1588
1589      if(av < FLOAT_MIN) {
1590        return vec4(0.0, 0.0, 0.0, 0.0);
1591      } else if(v > FLOAT_MAX) {
1592        return vec4(0.0, 0.0, 128.0, 127.0) / 255.0;
1593      } else if(v < -FLOAT_MAX) {
1594        return vec4(0.0, 0.0,  128.0, 255.0) / 255.0;
1595      }
1596
1597      highp vec4 c = vec4(0,0,0,0);
1598
1599      highp float e = floor(log2(av));
1600      highp float m = exp2(fract(log2(av))) - 1.0;
1601
1602      c[2] = floor(128.0 * m);
1603      m -= c[2] / 128.0;
1604      c[1] = floor(32768.0 * m);
1605      m -= c[1] / 32768.0;
1606      c[0] = floor(8388608.0 * m);
1607
1608      highp float ebias = e + 127.0;
1609      c[3] = floor(ebias / 2.0);
1610      ebias -= c[3] * 2.0;
1611      c[2] += floor(ebias) * 128.0;
1612
1613      c[3] += 128.0 * step(0.0, -v);
1614
1615      return c / 255.0;
1616    }
1617
1618    void main() {
1619      float value = ${z.texture2D}(X,TexCoords).r;
1620      ${z.output} = encodeAsUint8(value);
1621    }`,y={name:"Uint8Encode",inputTypes:[h.TextureType.unpacked],inputNames:["X"],output:{dims:w,type:p.tensor.type,textureType:h.TextureType.downloadUint8AsFloat},shaderSource:A,hasMain:!0};return m.executeProgram(y,[p.tensor])}},4909:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.tanh=n.tan=n.sqrt=n.sin=n.sigmoid=n.relu=n.not=n.neg=n.log=n.parseLeakyReluAttributes=n.leakyRelu=n.identity=n.floor=n.exp=n.parseEluAttributes=n.elu=n.cos=n.ceil=n.clipV11=n.parseClipAttributes=n.clip=n.atan=n.asin=n.acos=n.abs=n.glslTanh=n.glslTan=n.glslSqrt=n.glslSigmoid=n.glslRelu=n.glslSin=n.glslNot=n.glslNeg=n.glslLog=n.glslLeakyRelu=n.glslIdentity=n.glslClip=n.glslFloor=n.glslExp=n.glslElu=n.glslCos=n.glslCeil=n.glslAtan=n.glslAsin=n.glslAcos=n.glslAbs=void 0;const d=c(246),h=c(2517),m=c(8520),p=c(5060),w=c(2039);function z(){return $e("abs")}function A(){return $e("acos")}function y(){return $e("asin")}function s(){return $e("atan")}function e(){return $e("ceil")}function f(){return $e("cos")}function g(me){return{body:`
1622  const float alpha = float(${me});
1623
1624  float elu_(float a) {
1625    return a >= 0.0 ? a: (exp(a) - 1.0) * alpha;
1626  }
1627  vec4 elu_(vec4 v) {
1628    return vec4(elu_(v.x), elu_(v.y), elu_(v.z), elu_(v.w));
1629  }
1630  `,name:"elu",type:m.FunctionType.ValueBased}}function R(){return $e("exp")}function q(){return $e("floor")}function H(me,we){const Se="clip";return{body:`
1631  const float min = float(${me});
1632  const float max = float(${we});
1633
1634  float ${Se}_(float a) {
1635    return clamp(a, min, max);
1636  }
1637  vec4 ${Se}_(vec4 v) {
1638    return clamp(v, min, max);
1639  }
1640  `,name:Se,type:m.FunctionType.ValueBased}}function te(){const me="indentity";return{body:`
1641  float ${me}_(float a) {
1642    return a;
1643  }
1644  vec4 ${me}_(vec4 v) {
1645    return v;
1646  }
1647  `,name:me,type:m.FunctionType.ValueBased}}function re(me){const we="leakyRelu";return{body:`
1648  const float alpha = float(${me});
1649
1650  float ${we}_(float a) {
1651    return a < 0.0 ? a * alpha : a;
1652  }
1653  vec4 ${we}_(vec4 v) {
1654    return vec4(${we}_(v.x), ${we}_(v.y), ${we}_(v.z), ${we}_(v.w));
1655  }
1656  `,name:we,type:m.FunctionType.ValueBased}}function ae(){return $e("log")}function ne(){return{body:`
1657  float neg_(float a) {
1658    return -a;
1659  }
1660  vec4 neg_(vec4 v) {
1661    return -v;
1662  }
1663  `,name:"neg",type:m.FunctionType.ValueBased}}function oe(){return{body:`
1664  float not_(float a) {
1665    return float( ! bool(a) );
1666  }
1667  bool not_(bool a) {
1668    return !a;
1669  }
1670  vec4 not_(vec4 v) {
1671    return vec4(!bool(v.x), !bool(v.y), !bool(v.z), !bool(v.w));
1672  }
1673  bvec4 not_(bvec4 v) {
1674    return bvec4(!v.x, !v.y, !v.z, !v.w);
1675  }
1676  `,name:"not",type:m.FunctionType.ValueBased}}function le(){return $e("sin")}function ce(){const me="relu";return{body:`
1677  float ${me}_(float a) {
1678    return max( a, 0.0 );
1679  }
1680  vec4 ${me}_(vec4 v) {
1681    return max( v, 0.0 );
1682  }
1683  `,name:me,type:m.FunctionType.ValueBased}}function ue(){const me="sigmoid";return{body:`
1684  float ${me}_(float a) {
1685    return 1.0 / (1.0 + exp(-a));
1686  }
1687  vec4 ${me}_(vec4 v) {
1688    return 1.0 / (1.0 + exp(-v));
1689  }
1690  `,name:me,type:m.FunctionType.ValueBased}}function he(){return $e("sqrt")}function ge(){return $e("tan")}function Oe(){const me="tanh";return{body:`
1691  float ${me}_(float a) {
1692    a = clamp(a, -10., 10.);
1693    a = exp(2.*a);
1694    return (a - 1.) / (a + 1.);
1695  }
1696  vec4 ${me}_(vec4 v) {
1697    v = clamp(v, -10., 10.);
1698    v = exp(2.*v);
1699    return (v - 1.) / (v + 1.);
1700  }
1701  `,name:me,type:m.FunctionType.ValueBased}}function $e(me){return{body:`
1702  float ${me}_(float a) {
1703    return ${me}(a);
1704  }
1705  vec4 ${me}_(vec4 v) {
1706    return ${me}(v);
1707  }
1708  `,name:me,type:m.FunctionType.ValueBased}}n.glslAbs=z,n.glslAcos=A,n.glslAsin=y,n.glslAtan=s,n.glslCeil=e,n.glslCos=f,n.glslElu=g,n.glslExp=R,n.glslFloor=q,n.glslClip=H,n.glslIdentity=te,n.glslLeakyRelu=re,n.glslLog=ae,n.glslNeg=ne,n.glslNot=oe,n.glslSin=le,n.glslRelu=ce,n.glslSigmoid=ue,n.glslSqrt=he,n.glslTan=ge,n.glslTanh=Oe;const Pe=(me,we,Se,ye)=>{const ke=me.session.pack?w.TextureType.packed:w.TextureType.unpacked,Ae={name:Se.name,inputTypes:[ke],inputNames:["A"],cacheHint:ye};return Object.assign(Object.assign({},Ae),{get:()=>((Ie,qe,Ge,Je)=>{const Te=Ie.session.pack?w.TextureType.packed:w.TextureType.unpacked,ve=(0,p.getGlsl)(Ie.session.backend.glContext.version);return Object.assign(Object.assign({},qe),{output:{dims:Ge.dims,type:Ge.type,textureType:Te},shaderSource:`
1709     ${Je.body}
1710     void main() {
1711       vec4 v = ${ve.texture2D}(A, TexCoords);
1712       v = ${Je.name}_(v);
1713       ${ve.output} = v;
1714     }
1715     `,hasMain:!0})})(me,Ae,we,Se)})};n.abs=(me,we)=>[me.run(Pe(me,we[0],z()),we)],n.acos=(me,we)=>[me.run(Pe(me,we[0],A()),we)],n.asin=(me,we)=>[me.run(Pe(me,we[0],y()),we)],n.atan=(me,we)=>[me.run(Pe(me,we[0],s()),we)],n.clip=(me,we,Se)=>[me.run(Pe(me,we[0],H(Se.min,Se.max),Se.cacheKey),we)],n.parseClipAttributes=me=>(0,d.createAttributeWithCacheKey)({min:me.attributes.getFloat("min",h.MIN_CLIP),max:me.attributes.getFloat("max",h.MAX_CLIP)}),n.clipV11=(me,we)=>{const Se=Le(me,we);return(0,n.clip)(me,[we[0]],Se)};const Le=(me,we)=>{if(we.length>=3&&(!me.session.isInitializer(we[1].dataId)||!me.session.isInitializer(we[2].dataId)))throw new Error("dynamic clip attributes are not allowed");const Se=we.length>=3?we[1].numberData[0]:h.MIN_CLIP,ye=we.length>=3?we[2].numberData[0]:h.MAX_CLIP;return(0,d.createAttributeWithCacheKey)({min:Se,max:ye})};n.ceil=(me,we)=>[me.run(Pe(me,we[0],e()),we)],n.cos=(me,we)=>[me.run(Pe(me,we[0],f()),we)],n.elu=(me,we,Se)=>[me.run(Pe(me,we[0],g(Se.alpha),Se.cacheKey),we)],n.parseEluAttributes=me=>(0,d.createAttributeWithCacheKey)({alpha:me.attributes.getFloat("alpha",1)}),n.exp=(me,we)=>[me.run(Pe(me,we[0],R()),we)],n.floor=(me,we)=>[me.run(Pe(me,we[0],q()),we)],n.identity=(me,we)=>[me.run(Pe(me,we[0],te()),we)],n.leakyRelu=(me,we,Se)=>[me.run(Pe(me,we[0],re(Se.alpha),Se.cacheKey),we)],n.parseLeakyReluAttributes=me=>(0,d.createAttributeWithCacheKey)({alpha:me.attributes.getFloat("alpha",.01)}),n.log=(me,we)=>[me.run(Pe(me,we[0],ae()),we)],n.neg=(me,we)=>[me.run(Pe(me,we[0],ne()),we)],n.not=(me,we)=>[me.run(Pe(me,we[0],oe()),we)],n.relu=(me,we)=>[me.run(Pe(me,we[0],ce()),we)],n.sigmoid=(me,we)=>[me.run(Pe(me,we[0],ue()),we)],n.sin=(me,we)=>[me.run(Pe(me,we[0],le()),we)],n.sqrt=(me,we)=>[me.run(Pe(me,we[0],he()),we)],n.tan=(me,we)=>[me.run(Pe(me,we[0],ge()),we)],n.tanh=(me,we)=>[me.run(Pe(me,we[0],Oe()),we)]},5611:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.createUnpackProgramInfoLoader=n.createUnpackProgramInfo=void 0;const d=c(5060),h=c(2039),m=c(9390),p=c(2827),w={name:"unpack",inputNames:["A"],inputTypes:[h.TextureType.packed]};n.createUnpackProgramInfo=(z,A)=>{const y=A.dims.length,s=(0,p.getChannels)("rc",y),e=s.slice(-2),f=(0,m.getCoordsDataType)(y),g=(0,p.unpackFromChannel)(),R=A.dims.length===0?"":(function(te,re){if(te===1)return"rc";let ae="";for(let ne=0;ne<te;ne++)ae+=re[ne],ne<te-1&&(ae+=",");return ae})(y,s),q=y<=1?"rc":`vec2(${e.join(",")})`,H=`
1716    ${g}
1717    void main() {
1718      ${f} rc = getOutputCoords();
1719
1720       // Sample the texture with the coords to get the rgba channel value.
1721       vec4 packedInput = getA(${R});
1722
1723       ${(0,d.getGlsl)(z.session.backend.glContext.version).output} = vec4(getChannel(packedInput, ${q}), 0, 0, 0);
1724     }
1725   `;return Object.assign(Object.assign({},w),{hasMain:!0,output:{dims:A.dims,type:A.type,textureType:h.TextureType.unpacked},shaderSource:H})},n.createUnpackProgramInfoLoader=(z,A)=>Object.assign(Object.assign({},w),{get:()=>(0,n.createUnpackProgramInfo)(z,A)})},8428:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.parseUnsqueezeAttributes=n.unsqueezeV13=n.unsqueeze=void 0;const d=c(2517);n.unsqueeze=(p,w,z)=>{h(w);const A=d.ShapeUtil.unsqueezeShape(w[0].dims,z);return[p.reshapeUnpacked(w[0],A)]},n.unsqueezeV13=(p,w)=>(m(w),(0,n.unsqueeze)(p,[w[0]],Array.from(w[1].integerData))),n.parseUnsqueezeAttributes=p=>p.attributes.getInts("axes");const h=p=>{if(!p||p.length!==1)throw new Error("Unsqueeze requires 1 input.");if(p[0].type==="string")throw new Error("invalid input tensor types.")},m=p=>{if(!p||p.length!==2)throw new Error("Unsqueeze requires 2 inputs.");if(p[1].type!=="int32")throw new Error("Invalid input type.")}},9793:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.scalesValidation=n.validateInputs=n.parseUpsampleAttributes=n.parseUpsampleAttributesV9=n.parseUpsampleAttributesV7=n.upsample=void 0;const d=c(246),h=c(5060),m=c(2039),p={name:"Upsample",inputNames:["X"],inputTypes:[m.TextureType.unpacked]};n.upsample=(z,A,y)=>((0,n.validateInputs)(A,y),[z.run(Object.assign(Object.assign({},p),{cacheHint:y.cacheKey,get:()=>w(z,A,y)}),A)]),n.parseUpsampleAttributesV7=z=>(0,n.parseUpsampleAttributes)(z,7),n.parseUpsampleAttributesV9=z=>(0,n.parseUpsampleAttributes)(z,9),n.parseUpsampleAttributes=(z,A)=>{const y=A>=10,s=z.attributes.getString("mode","nearest");
1725if(s!=="nearest"&&s!=="linear"&&(A<11||s!=="cubic"))throw new Error(`unrecognized mode: ${s}`);let e=[];A<9&&(e=z.attributes.getFloats("scales"),(0,n.scalesValidation)(e,s,y));const f=z.attributes.getFloat("extrapolation_value",0),g=A>10?z.attributes.getString("coordinate_transformation_mode","half_pixel"):"asymmetric";if(["asymmetric","pytorch_half_pixel","tf_half_pixel_for_nn","align_corners","tf_crop_and_resize","half_pixel"].indexOf(g)===-1)throw new Error(`coordinate_transform_mode '${g}' is not supported`);const R=g==="tf_crop_and_resize",q=R,H=s==="nearest"&&A>=11?z.attributes.getString("nearest_mode","round_prefer_floor"):"";if(["round_prefer_floor","round_prefer_ceil","floor","ceil",""].indexOf(H)===-1)throw new Error(`nearest_mode '${H}' is not supported`);const te=z.attributes.getFloat("cubic_coeff_a",-.75),re=z.attributes.getInt("exclude_outside",0)!==0;if(re&&s!=="cubic")throw new Error("exclude_outside can be set to 1 only when mode is CUBIC.");const ae=A<11||s==="nearest"&&g==="asymmetric"&&H==="floor";let ne=0,oe=0,le=0;return A>10?z.inputs.length>2?(ne=1,oe=2,le=3):(oe=1,le=2):A===9&&(oe=1),(0,d.createAttributeWithCacheKey)({opset:A,isResize:y,mode:s,scales:e,extrapolationValue:f,coordinateTransformMode:g,useExtrapolation:q,needRoiInput:R,nearestMode:H,cubicCoefficientA:te,excludeOutside:re,useNearest2xOptimization:ae,roiInputIdx:ne,scalesInputIdx:oe,sizesInputIdx:le})};const w=(z,A,y)=>{const s=(0,h.getGlsl)(z.session.backend.glContext.version),[e,f]=z.calculateTextureWidthAndHeight(A[0].dims,m.TextureType.unpacked),g=A[0].dims.map(((le,ce)=>Math.floor(le*y.scales[ce]))),[R,q]=z.calculateTextureWidthAndHeight(g,m.TextureType.unpacked),H=g.length,te=new Array(H),re=new Array(H);let ae=`
1726      int output_pitches[${H}];
1727      int input_pitches[${H}];
1728      `;for(let le=H-1;le>=0;le--)te[le]=le===H-1?1:te[le+1]*g[le+1],re[le]=le===H-1?1:re[le+1]*A[0].dims[le+1],ae+=`
1729        output_pitches[${le}] = ${te[le]};
1730        input_pitches[${le}] = ${re[le]};
1731        `;const ne=`
1732      float getInputFloat(int index) {
1733        vec2 coords = offsetToCoords(index, ${e}, ${f});
1734        float value = getColorAsFloat(${s.texture2D}(X, coords));
1735        return value;
1736      }
1737      `,oe=y.mode==="nearest"?`
1738    ${ne}
1739    float process(int indices[${H}]) {
1740      int input_index = 0;
1741      int output_index = coordsToOffset(TexCoords, ${R}, ${q});
1742
1743      ${ae}
1744
1745      int d, m;
1746      for (int dim = 0; dim < ${H}; ++dim) {
1747        d = output_index / output_pitches[dim];
1748        m = output_index - d * output_pitches[dim];
1749        output_index = m;
1750
1751        if (scales[dim] != 1 && d > 0) {
1752          int d2 = d / scales[dim];
1753          m = d - d2 * scales[dim];
1754          d = d2;
1755        }
1756        input_index += input_pitches[dim] * d;
1757      }
1758
1759      return getInputFloat(input_index);
1760    }`:H===4?`
1761    ${ne}
1762    float process(int indices[4]) {
1763      int input_index = 0;
1764      int output_index = coordsToOffset(TexCoords, ${R}, ${q});
1765
1766      ${ae}
1767
1768      int m;
1769      int index_of_dim0, index_of_dim1, index_of_dim2, index_of_dim3;
1770      index_of_dim0 = output_index / output_pitches[0];
1771      m = output_index - index_of_dim0 * output_pitches[0];
1772      index_of_dim1 = m / output_pitches[1];
1773      m = m - index_of_dim1 * output_pitches[1];
1774      index_of_dim2 = m / output_pitches[2];
1775      m = m - index_of_dim2 * output_pitches[2];
1776      index_of_dim3 = m;
1777
1778      int index_of_input_dim2, index_of_input_dim3, x_offset, y_offset;
1779      index_of_input_dim2 = index_of_dim2 / scales[2];
1780      y_offset = index_of_dim2 - index_of_input_dim2 * scales[2];
1781      index_of_input_dim3 = index_of_dim3 / scales[3];
1782      x_offset = index_of_dim3 - index_of_input_dim3 * scales[3];
1783
1784      input_index = index_of_dim0 * input_pitches[0] +
1785            index_of_dim1 * input_pitches[1] +
1786            index_of_input_dim2 * input_pitches[2] +
1787            index_of_input_dim3;
1788
1789      float x00 = getInputFloat(input_index);
1790      float x10, x01, x11;
1791
1792      bool end_of_dim2 = false;
1793      if (index_of_input_dim2 == (${A[0].dims[2]} - 1)) {
1794        // It's the end in dimension 2
1795        x01 = x00;
1796        end_of_dim2 = true;
1797      } else {
1798        x01 = getInputFloat(input_index + input_pitches[2]);
1799      }
1800
1801      if (index_of_input_dim3 == (input_pitches[2] - 1)) {
1802        // It's the end in dimension 3
1803        x10 = x00;
1804        x11 = x01;
1805      }
1806      else {
1807        x10 = getInputFloat(input_index + 1);
1808        x11 = end_of_dim2 ? x10 : getInputFloat(input_index + input_pitches[2] + 1);
1809      }
1810
1811      float y0 = x00 + float(y_offset) * (x01 - x00) / float(scales[2]);
1812      float y1 = x10 + float(y_offset) * (x11 - x10) / float(scales[2]);
1813      return y0 + float(x_offset) * (y1 - y0) / float(scales[3]);
1814    }`:`
1815    ${ne}
1816    float process(int indices[2]) {
1817      int input_index = 0;
1818      int output_index = coordsToOffset(TexCoords, ${R}, ${q});
1819
1820      ${ae}
1821
1822      int m;
1823      int index_of_dim0, index_of_dim1;
1824      index_of_dim0 = output_index / output_pitches[0];
1825      m = output_index - index_of_dim0 * output_pitches[0];
1826      index_of_dim1 = m;
1827
1828      int index_of_input_dim0, index_of_input_dim1, x_offset, y_offset;
1829      index_of_input_dim0 = index_of_dim0 / scales[0];
1830      y_offset = index_of_dim0 - index_of_input_dim0 * scales[0];
1831      index_of_input_dim1 = index_of_dim1 / scales[1];
1832      x_offset = index_of_dim1 - index_of_input_dim1 * scales[1];
1833
1834      input_index = index_of_input_dim0 * input_pitches[0] + index_of_input_dim1;
1835
1836      float x00 = getInputFloat(input_index);
1837      float x10, x01, x11;
1838
1839      bool end_of_dim0 = false;
1840      if (index_of_input_dim0 == (${A[0].dims[0]} - 1)) {
1841        // It's the end in dimension 0
1842        x01 = x00;
1843        end_of_dim0 = true;
1844      } else {
1845        x01 = getInputFloat(input_index + input_pitches[0]);
1846      }
1847
1848      if (index_of_input_dim1 == (input_pitches[0] - 1)) {
1849        // It's the end in dimension 1
1850        x10 = x00;
1851        x11 = x01;
1852      }
1853      else {
1854        x10 = getInputFloat(input_index + 1);
1855        x11 = end_of_dim0 ? x10 : getInputFloat(input_index + input_pitches[0] + 1);
1856      }
1857
1858      float y0 = x00 + float(y_offset) * (x01 - x00) / float(scales[0]);
1859      float y1 = x10 + float(y_offset) * (x11 - x10) / float(scales[0]);
1860      return y0 + float(x_offset) * (y1 - y0) / float(scales[1]);
1861    }`;return Object.assign(Object.assign({},p),{output:{dims:g,type:A[0].type,textureType:m.TextureType.unpacked},shaderSource:oe,variables:[{name:"scales",type:"int",arrayLength:y.scales.length,data:y.scales.map((le=>Math.ceil(le)))}]})};n.validateInputs=(z,A)=>{if(!z||A.opset<9&&z.length!==1||A.opset>=9&&A.opset<11&&z.length!==2||A.opset>=11&&z.length<2)throw new Error("invalid inputs.");if(A.scales.length>0&&z[0].dims.length!==A.scales.length)throw new Error("Invalid input shape.");if(z[0].type==="string")throw new Error("Invalid input tensor types.")},n.scalesValidation=(z,A,y)=>{if(y){for(const s of z)if(s<=0)throw new Error("Scale value should be greater than 0.")}else for(const s of z)if(s<1)throw new Error("Scale value should be greater than or equal to 1.");if(!(A!=="linear"&&A!=="cubic"||z.length===2||z.length===4&&z[0]===1&&z[1]===1))throw new Error(`'Linear' mode and 'Cubic' mode only support 2-D inputs ('Bilinear', 'Bicubic')         or 4-D inputs with the corresponding outermost 2 scale values being 1         in the ${y?"Resize":"Upsample"} opeartor.`)}},1958:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.ProgramManager=void 0;const d=c(1670),h=c(6231),m=c(8879),p=c(5060);n.ProgramManager=class{constructor(w,z,A){this.profiler=w,this.glContext=z,this.textureLayoutStrategy=A,this.repo=new Map,this.attributesBound=!1}getArtifact(w){return this.repo.get(w)}setArtifact(w,z){this.repo.set(w,z)}run(w,z,A){var y;this.profiler.event("op",`ProgramManager.run ${(y=w.programInfo.name)!==null&&y!==void 0?y:"unknown kernel"}`,(()=>{var s;const e=this.glContext.gl,f=w.program;e.useProgram(f);try{this.bindOutput(A),this.attributesBound||this.bindAttributes(w.attribLocations),this.bindUniforms(w.uniformLocations,(s=w.programInfo.variables)!==null&&s!==void 0?s:[],z)}catch(g){throw h.Logger.error("ProgramManager",w.programInfo.shaderSource),g}this.profiler.event("backend","GlContext.draw()",(()=>{this.glContext.draw()}))}),this.glContext)}dispose(){this.vertexShader&&this.glContext.deleteShader(this.vertexShader),this.repo.forEac
vendor: 4,654 bytes, lines 1861-1863
1861h((w=>this.glContext.deleteProgram(w.program)))}build(w,z,A){return this.profiler.event("backend","ProgramManager.build",(()=>{const y=new m.GlslPreprocessor(this.glContext,w,z,A),s=y.preprocess(),e=this.compile(s);return{programInfo:w,program:e,uniformLocations:this.getUniformLocations(e,y.context.programInfo.inputNames,y.context.programInfo.variables),attribLocations:this.getAttribLocations(e)}}))}compile(w){if(!this.vertexShader){h.Logger.verbose("ProrgramManager","Compiling and caching Vertex shader for the first time");const y=(0,p.getVertexShaderSource)(this.glContext.version);this.vertexShader=this.glContext.compileShader(y,this.glContext.gl.VERTEX_SHADER)}d.env.debug&&h.Logger.verbose("ProrgramManager",`FragShader:
1862${w}
1863`);const z=this.glContext.compileShader(w,this.glContext.gl.FRAGMENT_SHADER),A=this.glContext.createProgram(this.vertexShader,z);return this.glContext.deleteShader(z),A}bindOutput(w){const z=w.width,A=w.height;h.Logger.verbose("ProrgramManager",`Binding output texture to Framebuffer: w/h=${z}/${A}, shape=${w.shape}, type=${w.tensor.type}`),this.glContext.attachFramebuffer(w.texture,z,A)}bindAttributes(w){const z=w.position,A=w.textureCoord;this.glContext.setVertexAttributes(z,A),this.attributesBound=!0}bindUniforms(w,z,A){var y;const s=this.glContext.gl;let e=0;for(const{name:f,type:g,location:R,arrayLength:q}of w){const H=(y=z.find((te=>te.name===f)))===null||y===void 0?void 0:y.data;if(g!=="sampler2D"&&!H)throw new Error(`variable '${f}' does not have data defined in program info`);switch(g){case"sampler2D":this.bindTexture(A[e],R,e),e++;break;case"float":q?s.uniform1fv(R,H):s.uniform1f(R,H);break;case"int":q?s.uniform1iv(R,H):s.uniform1i(R,H);break;default:throw new Error(`Uniform not implemented: ${g}`)}}}bindTexture(w,z,A){this.glContext.bindTextureToUniform(w.texture,A,z)}getAttribLocations(w){return{position:this.getAttribLocation(w,"position"),textureCoord:this.getAttribLocation(w,"textureCoord")}}getUniformLocations(w,z,A){const y=[];if(z)for(const s of z)y.push({name:s,type:"sampler2D",location:this.getUniformLocation(w,s)});if(A)for(const s of A)y.push(Object.assign(Object.assign({},s),{location:this.getUniformLocation(w,s.name)}));return y}getUniformLocation(w,z){const A=this.glContext.gl.getUniformLocation(w,z);if(A===null)throw new Error(`Uniform ${z} not found.`);return A}getAttribLocation(w,z){return this.glContext.gl.getAttribLocation(w,z)}}},6416:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.WebGLSessionHandler=void 0;const d=c(6231),h=c(1047),m=c(8316),p=c(1640),w=c(1958),z=c(7859),A=c(5702);n.WebGLSessionHandler=class{constructor(y,s){this.backend=y,this.context=s,this.layoutStrategy=new z.PreferLogicalStrategy(y.glContext.maxTextureSize),this.programManager=new w.ProgramManager(this.context.profiler,y.glContext,this.layoutStrategy),this.textureManager=new A.TextureManager(y.glContext,this.layoutStrategy,this.context.profiler,{reuseTextures:y.textureCacheMode==="full"}),this.packedTextureDataCache=new Map,this.unpackedTextureDataCache=new Map,this.pack=y.pack,this.pack2unpackMap=new Map,this.unpack2packMap=new Map}createInferenceHandler(){return new m.WebGLInferenceHandler(this)}onGraphInitialized(y){const s=y.getValues().filter((e=>e.from===-1&&e.tensor)).map((e=>e.tensor.dataId));this.initializers=new Set(s)}isInitializer(y){return!!this.initializers&&this.initializers.has(y)}addInitializer(y){this.initializers.add(y)}getTextureData(y,s){return s?this.packedTextureDataCache.get(y):this.unpackedTextureDataCache.get(y)}setTextureData(y,s,e=!1){d.Logger.verbose("WebGLSessionHandler","Storing Texture data in cache"),e?this.packedTextureDataCache.set(y,s):this.unpackedTextureDataCache.set(y,s)}dispose(){this.programManager.dispose(),this.textureManager.clearActiveTextures(),this.packedTextureDataCache.forEach((y=>this.textureManager.releaseTexture(y,!0))),this.packedTextureDataCache=new Map,this.unpackedTextureDataCache.forEach((y=>this.textureManager.releaseTexture(y,!0))),this.unpackedTextureDataCache=new Map}resolve(y,s,e){const f=(0,h.resolveOperator)(y,s,p.WEBGL_OP_RESOLVE_RULES);return{impl:f.opImpl,context:f.opInit?f.opInit(y,e):y}}}},7769:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.Uint8DataEncoder=n.RGBAFloatDataEncoder=n.RedFloat32DataEncoder=void 0;const d=c(6231);n.RedFloat32DataEncoder=class{constructor(h,m=1){if(m===1)this.internalFormat=h.R32F,this.format=h.RED,this.textureType=h.FLOAT,this.channelSize=m;else{if(m!==4)throw new Error(`Invalid number of channels: ${m}`);this.internalFormat=h.RGBA32F,this.format=h.RGBA,this.textureType=h.FLOAT,this.channelSize=m}}encode(h,m){let p,w;
1863return h.constructor!==Float32Array&&(d.Logger.warning("Encoder","data was not of type Float32; creating new Float32Array"),w=new Float32Array(h)),m*this.channelSize>h.length?(d.Logger.warning("Encoder","Source data too small. Allocating larger array"),w=h,p=this.allocate(m*this.channelSize),w.forEach(((z,A)=>p[A]=z))):(w=h,p=w),p}allocate(h){return new Float32Array(4*h)}decode(h,m){return this.channelSize===1?h.filter(((p,w)=>w%4==0)).subarray(0,m):h.subarray(0,m)}},n.RGBAFloatDataEncoder=class{constructor(h,m=1,p){if(m!==1&&m!==4)throw new Error(`Invalid number of channels: ${m}`);this.internalFormat=h.RGBA,this.format=h.RGBA,this.channelSize=m,this.textureType=p||h.FLOAT}encode(h,m){let p=h;return this.channelSize===1&&(d.Logger.verbose("Encoder","Exploding into a larger array"),p=this.allocate(m),h.forEach(((w,z)=>p[4*z]=w))),p}allocate(h){return new Float32Array(4*h)}decode(h,m){return this.channelSize===1?h.filter(((p,w)=>w%4==0)).subarray(0,m):h.subarray(0,m)}},n.Uint8DataEncoder=class{constructor(h,m=1){if(this.channelSize=4,m===1)this.internalFormat=h.ALPHA,this.format=h.ALPHA,this.textureType=h.UNSIGNED_BYTE,this.channelSize=m;else{if(m!==4)throw new Error(`Invalid number of channels: ${m}`);this.internalFormat=h.RGBA,this.format=h.RGBA,this.textureType=h.UNSIGNED_BYTE,this.channelSize=m}}encode(h,m){return new Uint8Array(h.buffer,h.byteOffset,h.byteLength)}allocate(h){return new Uint8Array(h*this.channelSize)}decode(h,m){if(h instanceof Uint8Array)return h.subarray(0,m);throw new Error(`Invalid array type: ${h.constructor}`)}}},7859:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.getBatchDim=n.sizeToSquarishShape=n.getRowsCols=n.sizeFromShape=n.isInt=n.parseAxisParam=n.squeezeShape=n.PreferLogicalStrategy=n.AlwaysKeepOriginalSizeStrategy=void 0;const d=c(6231),h=c(2517);function m(y,s){const e=[],f=[],g=s!=null&&Array.isArray(s)&&s.length===0,R=s==null||g?null:p(s,y).sort();let q=0;for(let H=0;H<y.length;++H){if(R!=null){if(R[q]===H&&y[H]!==1)throw new Error(`Can't squeeze axis ${H} since its dim '${y[H]}' is not 1`);(R[q]==null||R[q]>H)&&y[H]===1&&(e.push(y[H]),f.push(H)),R[q]<=H&&q++}y[H]!==1&&(e.push(y[H]),f.push(H))}return{newShape:e,keptDims:f}}function p(y,s){const e=s.length;return y=y==null?s.map(((f,g)=>g)):[].concat(y),(0,h.assert)(y.every((f=>f>=-e&&f<e)),(()=>`All values in axis param must be in range [-${e}, ${e}) but got axis ${y}`)),(0,h.assert)(y.every(w),(()=>`All values in axis param must be integers but got axis ${y}`)),y.map((f=>f<0?e+f:f))}function w(y){return y%1==0}function z(y){if(y.length===0)return 1;let s=y[0];for(let e=1;e<y.length;e++)s*=y[e];return s}function A(y){const s=Math.ceil(Math.sqrt(y));return[s,Math.ceil(y/s)]}n.AlwaysKeepOriginalSizeStrategy=class{constructor(y){this.maxTextureSize=y}computeTextureWH(y,s){if(y.length===0)return[1,1];const e=this.maxTextureSize;if(s&&s.breakAxis!==void 0){const R=s.breakAxis>=y.length?1:y.slice(s.breakAxis).reduce(((H,te)=>H*te)),q=s.breakAxis<=0?1:y.slice(0,s.breakAxis).reduce(((H,te)=>H*te));if(!(R>e||q>e))return[R,q];d.Logger.verbose("TextureLayout",`Given width/height preferences were unattainable: shape:${y}, breakAxis:${s.breakAxis}`)}const f=y.reduce(((R,q)=>R*q));let g=Math.floor(Math.sqrt(f));for(;g<e&&g<f&&f%g!=0;g++);if(g>=e||f%g!=0)throw new Error(`The given dimensions are outside this GPU's boundaries: ${y}`);return[g,f/g]}},n.PreferLogicalStrategy=class{constructor(y){this.maxTextureSize=y}computeTextureWH(y,s){const e=this.computeTexture(y,s);return s&&s.isPacked&&(e[0]/=2,e[1]/=2),s&&s.reverseWH?[e[1],e[0]]:e}computeTexture(y,s){const e=s&&s.isPacked;if(y.length===0)return e?[2,2]:[1,1];let f=this.maxTextureSize;if(s&&s.breakAxis!==void 0){const q=s.breakAxis>=y.length?1:y.slice(s.breakAxis).reduce(((te,re)=>te*re)),H=s.breakAxis<=0?1:y.slice(0,s.breakAxis).reduce(((te,re)=>te*re));if(!(q>f||H>f))return[q,H];d.Logger.verbose("TextureLayout",`Given width/height preferences were unattainable: shape:${y}, breakAxis:${s.breakAxis}`)}let g=y.slice(0);e&&(f*=2,g=g.map(((q,H)=>H>=g.length-2?g[H]%2==0?g[H]:g[H]+1:g[H])),g.length===1&&(g=[2,g[0]])),g.length!==2&&(g=m(g).newShape);const R=z(g);return g.length<=1&&R<=f?[1,R]:g.length===2&&g[0]<=f&&g[1]<=f?g:g.length===3&&g[0]*g[1]<=f&&g[2]<=f?[g[0]*g[1],g[2]]:g.length===3&&g[0]<=f&&g[1]*g[2]<=f?[g[0],g[1]*g[2]]:g.length===4&&g[0]*g[1]*g[2]<=f&&g[3]<=f?[g[0]*g[1]*g[2],g[3]]:g.length===4&&g[0]<=f&&g[1]*g[2]*g[3]<=f?[g[0],g[1]*g[2]*g[3]]:e?A(R/4).map((q=>2*q)):A(R)}},n.squeezeShape=m,n.parseAxisParam=p,n.isInt=w,n.sizeFromShape=z,n.getRowsCols=function(y){if(y.length===0)throw Error("Cannot get rows and columns of an empty shape array.");return[y.length>1?y[y.length-2]:1,y[y.length-1]]},n.sizeToSquarishShape=A,n.getBatchDim=function(y,s=2){return z(y.slice(0,y.length-s))}},4057:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.createTextureLayoutFromShape=n.calculateTextureWidthAndHeight=n.createTextureLayoutFromTextureType=void 0;const d=c(2517),h=c(2039);n.createTextureLayoutFromTextureType=(m,p,w)=>{const z=w===h.TextureType.unpacked||w===h.TextureType.unpackedReversed?1:4,A=w===
vendor: 10,960 bytes, line 1863
1863h.TextureType.packed,y=w===h.TextureType.unpackedReversed||w===h.TextureType.packed,s=w===h.TextureType.packedLastDimension?p.length-1:void 0,e=w===h.TextureType.packedLastDimension?p.map(((f,g)=>g===p.length-1?4*f:f)):void 0;return(0,n.createTextureLayoutFromShape)(m,p,z,e,{isPacked:A,reverseWH:y,breakAxis:s})},n.calculateTextureWidthAndHeight=(m,p,w)=>{const z=(0,n.createTextureLayoutFromTextureType)(m,p,w);return[z.width,z.height]},n.createTextureLayoutFromShape=(m,p,w=1,z,A)=>{const y=!(!A||!A.isPacked),[s,e]=m.computeTextureWH(y&&z||p,A),f=p.length;let g=p.slice(0);if(f===0&&(g=[1]),w===1)z=p;else if(y){if(w!==4)throw new Error("a packed texture must be 4-channel");z=p,f>0&&(g[f-1]=Math.ceil(g[f-1]/2)),f>1&&(g[f-2]=Math.ceil(g[f-2]/2))}else if(!z)throw new Error("Unpacked shape is needed when using channels > 1");return{width:s,height:e,channels:w,isPacked:y,shape:g,strides:d.ShapeUtil.computeStrides(g),unpackedShape:z,reversedWH:A&&A.reverseWH}}},5702:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.TextureManager=void 0;const d=c(6231);n.TextureManager=class{constructor(h,m,p,w){this.glContext=h,this.layoutStrategy=m,this.profiler=p,this.config=w,this.pendingRead=new Map,w.reuseTextures&&(this.inUseTextures=new Map,this.idleTextures=new Map,this.textureLookup=new Map)}createTextureFromLayout(h,m,p,w){const z=this.toEncoderType(h),A=this.glContext.getEncoder(z,m.channels||1,w);if(m.isPacked&&w===1)throw new Error("not implemented");const y=m.width,s=m.height;let e,f;if(this.config.reuseTextures){e=`${y}x${s}_${A.format}_${A.internalFormat}_${A.textureType}`,f=this.inUseTextures.get(e),f||(f=[],this.inUseTextures.set(e,f));const R=this.idleTextures.get(e);if(R&&R.length>0){const q=R.pop();return f.push(q),w===1&&this.glContext.updateTexture(q,y,s,A,this.toTextureData(h,p)),q}}d.Logger.verbose("TextureManager",`Creating new texture of size ${m.width}x${m.height}`);const g=this.glContext.allocateTexture(y,s,A,this.toTextureData(h,p));return this.config.reuseTextures&&(f.push(g),this.textureLookup.set(g,e)),g}readTexture(h,m,p){return p||(p=1),this.profiler.event("backend","TextureManager.readTexture",(()=>{const w=h.shape.reduce(((A,y)=>A*y))*p,z=this.glContext.readTexture(h.texture,h.width,h.height,w,this.toEncoderType(m),p);return this.toTensorData(m,z)}))}async readTextureAsync(h,m,p){const w=h.tensor.dataId;if(p||(p=1),this.pendingRead.has(w)){const z=this.pendingRead.get(w);return new Promise((A=>z?.push(A)))}return this.profiler.event("backend","TextureManager.readTextureAsync",(async()=>{this.pendingRead.set(w,[]);const z=h.shape.reduce(((e,f)=>e*f))*p;await this.glContext.createAndWaitForFence();const A=this.glContext.readTexture(h.texture,h.width,h.height,z,this.toEncoderType(m),p),y=this.toTensorData(m,A),s=this.pendingRead.get(w);return this.pendingRead.delete(w),s?.forEach((e=>e(y))),y}))}readUint8TextureAsFloat(h){return this.profiler.event("backend","TextureManager.readUint8TextureAsFloat",(()=>{const m=h.shape.reduce(((w,z)=>w*z)),p=this.glContext.readTexture(h.texture,h.width,h.height,4*m,"byte",4);return new Float32Array(p.buffer,p.byteOffset,m)}))}releaseTexture(h,m){let p;if(this.config.reuseTextures&&(p=this.textureLookup.get(h.texture),p)){m&&this.textureLookup.delete(p);const w=this.inUseTextures.get(p);if(w){const z=w.indexOf(h.texture);if(z!==-1){w.splice(z,1);let A=this.idleTextures.get(p);A||(A=[],this.idleTextures.set(p,A)),A.push(h.texture)}}}p&&!m||(d.Logger.verbose("TextureManager",`Deleting texture of size ${h.width}x${h.height}`),this.glContext.deleteTexture(h.texture))}toTensorData(h,m){switch(h){case"int16":return m instanceof Int16Array?m:Int16Array.from(m);case"int32":return m instanceof Int32Array?m:Int32Array.from(m);case"int8":return m instanceof Int8Array?m:Int8Array.from(m);case"uint16":return m instanceof Uint16Array?m:Uint16Array.from(m);case"uint32":return m instanceof Uint32Array?m:Uint32Array.from(m);case"uint8":case"bool":return m instanceof Uint8Array?m:Uint8Array.from(m);case"float32":return m instanceof Float32Array?m:Float32Array.from(m);case"float64":return m instanceof Float64Array?m:Float64Array.from(m);default:throw new Error(`TensorData type ${h} is not supported`)}}toTextureData(h,m){if(m)return m instanceof Float32Array?m:new Float32Array(m)}toEncoderType(h){return"float"}clearActiveTextures(){this.glContext.clearActiveTextures()}}},2039:(o,n)=>{var c;Object.defineProperty(n,"__esModule",{value:!0}),n.TextureType=void 0,(c=n.TextureType||(n.TextureType={}))[c.unpacked=0]="unpacked",c[c.unpackedReversed=1]="unpackedReversed",c[c.packed=2]="packed",c[c.downloadUint8AsFloat=3]="downloadUint8AsFloat",c[c.packedLastDimension=4]="packedLastDimension"},9390:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.getGlChannels=n.getCoordsDataType=n.getSqueezedParams=n.squeezeInputShape=n.generateShaderFuncNameFromInputSamplerNameAtOutCoords=n.generateShaderFuncNameFromInputSamplerName=n.repeatedTry=n.getPackedShape=void 0;const d=c(2517);n.getPackedShape=function(h){const m=h.length;return h.slice(0,m-1).concat(h[m-1]/4)},n.repeatedTry=async function(h,m=(w=>0),p){return new Promise(((w,z)=>{let A=0;const y=()=>{if(h())return void w();A++;const s=m(A);p!=null&&A>=p?z():setTimeout(y,s)};y()}))},n.generateShaderFuncNameFromInputSamplerName=function(h){return(0,d.assert)(h!==void 0&&h.length!==0,(()=>"empty string found for sampler name")),"get"+h.charAt(0).toUpperCase()+h.slice(1)},n.generateShaderFuncNameFromInputSamplerNameAtOutCoords=function(h){return(0,d.assert)(h!==void 0&&h.length!==0,(()=>"empty string found for sampler name")),"get"+h.charAt(0).toUpperCase()+h.slice(1)+"AtOutCoords"},n.squeezeInputShape=function(h,m){let p=JSON.parse(JSON.stringify(h));return p=m,p},n.getSqueezedParams=function(h,m){return m.map((p=>h[p])).join(", ")},n.getCoordsDataType=function(h){if(h<=1)return"int";if(h===2)return"ivec2";if(h===3)return"ivec3";if(h===4)return"ivec4";if(h===5)return"ivec5";if(h===6)return"ivec6";throw Error(`GPU for rank ${h} is not yet supported`)},n.getGlChannels=function(h=6){return["x","y","z","w","u","v"].slice(0,h)}},7305:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.createNewWebGLContext=n.createWebGLContext=void 0;const d=c(6231),h=c(1713),m={};function p(w){const z=(function(){if(typeof document>"u"){if(typeof OffscreenCanvas>"u")throw new TypeError("failed to create canvas: OffscreenCanvas is not supported");return new OffscreenCanvas(1,1)}const s=document.createElement("canvas");return s.width=1,s.height=1,s})();let A;const y={alpha:!1,depth:!1,antialias:!1,stencil:!1,preserveDrawingBuffer:!1,premultipliedAlpha:!1,failIfMajorPerformanceCaveat:!1};if((!w||w==="webgl2")&&(A=z.getContext("webgl2",y),A))try{return new h.WebGLContext(A,2)}catch(s){d.Logger.warning("GlContextFactory",`failed to create WebGLContext using contextId 'webgl2'. Error: ${s}`)}if((!w||w==="webgl")&&(A=z.getContext("webgl",y)||z.getContext("experimental-webgl",y),A))try{return new h.WebGLContext(A,1)}catch(s){d.Logger.warning("GlContextFactory",`failed to create WebGLContext using contextId 'webgl' or 'experimental-webgl'. Error: ${s}`)}throw new Error("WebGL is not supported")}n.createWebGLContext=function w(z){let A;z&&z!=="webgl2"||!("webgl2"in m)?z&&z!=="webgl"||!("webgl"in m)||(A=m.webgl):A=m.webgl2,A=A||p(z),z=z||A.version===1?"webgl":"webgl2";const y=A.gl;return m[z]=A,y.isContextLost()?(delete m[z],w(z)):(y.disable(y.DEPTH_TEST),y.disable(y.STENCIL_TEST),y.disable(y.BLEND),y.disable(y.DITHER),y.disable(y.POLYGON_OFFSET_FILL),y.disable(y.SAMPLE_COVERAGE),y.enable(y.SCISSOR_TEST),y.enable(y.CULL_FACE),y.cullFace(y.BACK),A)},n.createNewWebGLContext=p},1713:function(o,n,c){var d=this&&this.__createBinding||(Object.create?function(y,s,e,f){f===void 0&&(f=e);var g=Object.getOwnPropertyDescriptor(s,e);g&&!("get"in g?!s.__esModule:g.writable||g.configurable)||(g={enumerable:!0,get:function(){return s[e]}}),Object.defineProperty(y,f,g)}:function(y,s,e,f){f===void 0&&(f=e),y[f]=s[e]}),h=this&&this.__setModuleDefault||(Object.create?function(y,s){Object.defineProperty(y,"default",{enumerable:!0,value:s})}:function(y,s){y.default=s}),m=this&&this.__importStar||function(y){if(y&&y.__esModule)return y;var s={};if(y!=null)for(var e in y)e!=="default"&&Object.prototype.hasOwnProperty.call(y,e)&&d(s,y,e);return h(s,y),s};Object.defineProperty(n,"__esModule",{value:!0}),n.WebGLContext=n.linearSearchLastTrue=void 0;const p=c(1670),w=m(c(7769)),z=c(9390);function A(y){let s=0;for(;s<y.length&&y[s]();++s);return s-1}n.linearSearchLastTrue=A,n.WebGLContext=class{constructor(y,s){this.frameBufferBound=!1,this.itemsToPoll=[],this.gl=y,this.version=s,this.getExtensions(),this.vertexbuffer=this.createVertexbuffer(),this.framebuffer=this.createFramebuffer(),this.queryVitalParameters()}allocateTexture(y,s,e,f){const g=this.gl,R=g.createTexture();g.bindTexture(g.TEXTURE_2D,R),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.NEAREST),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,g.NEAREST),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.CLAMP_TO_EDGE),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.CLAMP_TO_EDGE);const q=f?e.encode(f,y*s):null;return g.texImage2D(g.TEXTURE_2D,0,e.internalFormat,y,s,0,e.format,e.textureType,q),this.checkError(),R}updateTexture(y,s,e,f,g){const R=this.gl;R.bindTexture(R.TEXTURE_2D,y);const q=f.encode(g,s*e);R.texSubImage2D(R.TEXTURE_2D,0,0,0,s,e,f.format,f.textureType,q),this.checkError()}attachFramebuffer(y,s,e){const f=this.gl;f.bindTexture(f.TEXTURE_2D,y),f.bindFramebuffer(f.FRAMEBUFFER,this.framebuffer),f.framebufferTexture2D(f.FRAMEBUFFER,f.COLOR_ATTACHMENT0,f.TEXTURE_2D,y,0),this.checkError(),f.viewport(0,0,s,e),f.scissor(0,0,s,e)}readTexture(y,s,e,f,g,R){const q=this.gl;R||(R=1),this.frameBufferBound||this.attachFramebuffer(y,s,e);const H=this.getEncoder(g,R),te=H.allocate(s*e);return q.bindTexture(q.TEXTURE_2D,y),q.framebufferTexture2D(q.FRAMEBUFFER,q.COLOR_ATTACHMENT0,q.TEXTURE_2D,y,0),q.readPixels(0,0,s,e,q.RGBA,H.textureType,te),this.checkError(),H.decode(te,f)}isFramebufferReady(){return!0}getActiveTexture(){const y=this.gl;return"TEXTURE"+(y.getParameter(this.gl.ACTIVE_TEXTURE)-y.TEXTURE0)}getTextureBinding(){return this.gl.getParameter(this.gl.TEXTURE_BINDING_2D)}getFramebufferBinding(){return this.gl.getParameter(this.gl.FRAMEBUFFER_BINDING)}setVertexAttributes(y,s){const e=this.gl;e.vertexAttribPointer(y,3,e.FLOAT,!1,20,0),e.enableVertexAttribArray(y),s!==-1&&(e.vertexAttribPointer(s,2,e.FLOAT,!1,20,12),e.enableVertexAttribArray(s)),this.checkError()}createProgram(y,s){const e=this.gl,f=e.createProgram();return e.attachShader(f,y),e.attachShader(f,s),e.linkProgram(f),f}compileShader(y,s){const e=this.gl,f=e.createShader(s);if(!f)throw new Error(`createShader() returned null with type ${s}`);if(e.shaderSource(f,y),e.compileShader(f),e.getShaderParameter(f,e.COMPILE_STATUS)===!1)throw new Error(`Failed to compile shader: ${e.getShaderInfoLog(f)}
1864Shader source:
1865${y}`);return f}deleteShader(y){this.gl.deleteShader(y)}bindTextureToUniform(y,s,e){const f=this.gl;f.activeTexture(f.TEXTURE0+s),this.checkError(),f.bindTexture(f.TEXTURE_2D,y),this.checkError(),f.uniform1i(e,s),this.checkError()}draw(){this.gl.drawArrays(this.gl.TRIANGLE_STRIP,0,4),this.checkError()}checkError(){if(p.env.debug){const y=this.gl,s=y.getError();let e="";switch(s){case y.NO_ERROR:return;case y.INVALID_ENUM:e="INVALID_ENUM";break;case y.INVALID_VALUE:e="INVALID_VALUE";break;case y.INVALID_OPERATION:e="INVALID_OPERATION";break;case y.INVALID_FRAMEBUFFER_OPERATION:e="INVALID_FRAMEBUFFER_OPERATION";break;case y.OUT_OF_MEMORY:e="OUT_OF_MEMORY";break;case y.CONTEXT_LOST_WEBGL:e="CONTEXT_LOST_WEBGL";break;default:e=`Unknown WebGL Error: ${s.toString(16)}`}throw new Error(e)}}deleteTexture(y){this.gl.deleteTexture(y)}deleteProgram(y){this.gl.deleteProgram(y)}getEncoder(y,s,e=0){if(this.version===2)return new w.RedFloat32DataEncoder(this.gl,s);switch(y){case"float":return e===1||this.isRenderFloat32Supported?new w.RGBAFloatDataEncoder(this.gl,s):new w.RGBAFloatDataEncoder(this.gl,s,this.textureHalfFloatExtension.HALF_FLOAT_OES);case"int":throw new Error("not implemented");case"byte":return new w.Uint8DataEncoder(this.gl,s);default:throw new Error(`Invalid dataType: ${y}`)}}clearActiveTextures(){const y=this.gl;for(let s=0;s<this.maxTextureImageUnits;++s)y.activeTexture(y.TEXTURE0+s),y.bindTexture(y.TEXTURE_2D,null)}dispose(){if(this.disposed)return;const y=this.gl;y.bindFramebuffer(y.FRAMEBUFFER,null),y.deleteFramebuffer(this.framebuffer),y.bindBuffer(y.ARRAY_BUFFER,null),y.deleteBuffer(this.vertexbuffer),y.bindBuffer(y.ELEMENT_ARRAY_BUFFER,null),y.finish(),this.disposed=!0}createDefaultGeometry(){return new Float32Array([-1,1,0,0,1,-1,-1,0,0,0,1,1,0,1,1,1,-1,0,1,0])}createVertexbuffer(){const y=this.gl,s=y.createBuffer();if(!s)throw new Error("createBuffer() returned null");const e=this.createDefaultGeometry();return y.bindBuffer(y.ARRAY_BUFFER,s),y.bufferData(y.ARRAY_BUFFER,e,y.STATIC_DRAW),this.checkError(),s}createFramebuffer(){const y=this.gl.createFramebuffer();if(!y)throw new Error("createFramebuffer returned null");return y}queryVitalParameters(){const y=this.gl;if(this.isFloatTextureAttachableToFrameBuffer=this.checkFloatTextureAttachableToFrameBuffer(),this.isRenderFloat32Supported=this.checkRenderFloat32(),this.isFloat32DownloadSupported=this.checkFloat32Download(),this.version===1&&!this.textureHalfFloatExtension&&!this.isRenderFloat32Supported)throw new Error("both float32 and float16 TextureType are not supported");this.isBlendSupported=!this.isRenderFloat32Supported||this.checkFloat32Blend(),this.maxTextureSize=y.getParameter(y.MAX_TEXTURE_SIZE),this.maxTextureImageUnits=y.getParameter(y.MAX_TEXTURE_IMAGE_UNITS),this.version}getExtensions(){this.version===2?(this.colorBufferFloatExtension=this.gl.getExtension("EXT_color_buffer_float"),this.disjointTimerQueryWebgl2Extension=this.gl.getExtension("EXT_disjoint_timer_query_webgl2")):(this.textureFloatExtension=this.gl.getExtension("OES_texture_float"),this.textureHalfFloatExtension=this.gl.getExtension("OES_texture_half_float"))}checkFloatTextureAttachableToFrameBuffer(){const y=this.gl,s=y.createTexture();y.bindTexture(y.TEXTURE_2D,s);const e=this.version===2?y.RGBA32F:y.RGBA;y.texImage2D(y.TEXTURE_2D,0,e,1,1,0,y.RGBA,y.FLOAT,null);const f=y.createFramebuffer();y.bindFramebuffer(y.FRAMEBUFFER,f),y.framebufferTexture2D(y.FRAMEBUFFER,y.COLOR_ATTACHMENT0,y.TEXTURE_2D,s,0);const g=y.checkFramebufferStatus(y.FRAMEBUFFER)===y.FRAMEBUFFER_COMPLETE;return y.bindTexture(y.TEXTURE_2D,null),y.bindFramebuffer(y.FRAMEBUFFER,null),y.deleteTexture(s),y.deleteFramebuffer(f),g}checkRenderFloat32(){if(this.version===2){if(!this.colorBufferFloatExtension)return!1}else if(!this.textureFloatExtension)return!1;return this.isFloatTextureAttachableToFrameBuffer}checkFloat32Download(){if(this.version===2){if(!this.colorBufferFloatExtension)return!1}else if(!this.textureFloatExtension||!this.gl.getExtension("WEBGL_color_buffer_float"))return!1;return this.isFloatTextureAttachableToFrameBuffer}checkFloat32Blend(){const y=this.gl;let s,e,f,g,R;try{s=y.createTexture(),e=y.createFramebuffer(),y.bindTexture(y.TEXTURE_2D,s);const q=this.version===2?y.RGBA32F:y.RGBA;return y.texImage2D(y.TEXTURE_2D,0,q,1,1,0,y.RGBA,y.FLOAT,null),y.bindFramebuffer(y.FRAMEBUFFER,e),y.framebufferTexture2D(y.FRAMEBUFFER,y.COLOR_ATTACHMENT0,y.TEXTURE_2D,s,0),y.enable(y.BLEND),f=y.createShader(y.VERTEX_SHADER),!!f&&(y.shaderSource(f,"void main(){}"),y.compileShader(f),g=y.createShader(y.FRAGMENT_SHADER),!!g&&(y.shaderSource(g,"precision highp float;void main(){gl_FragColor=vec4(0.5);}"),y.compileShader(g),R=y.createProgram(),!!R&&(y.attachShader(R,f),y.attachShader(R,g),y.linkProgram(R),y.useProgram(R),y.drawArrays(y.POINTS,0,1),y.getError()===y.NO_ERROR)))}finally{y.disable(y.BLEND),R&&y.deleteProgram(R),f&&y.deleteShader(f),g&&y.deleteShader(g),e&&(y.bindFramebuffer(y.FRAMEBUFFER,null),y.deleteFramebuffer(e)),s&&(y.bindTexture(y.TEXTURE_2D,null),y.deleteTexture(s))}}beginTimer(){if(this.version===2&&this.disjointTimerQueryWebgl2Extension){const y=this.gl,s=this.disjointTimerQueryWebgl2Extension,e=y.createQuery();return y.beginQuery(s.TIME_ELAPSED_EXT,e),e}throw new Error("WebGL1 profiling currently not supported.")}endTimer(){if(this.version!==2||!this.disjointTimerQueryWebgl2Extension)throw new Error("WebGL1 profiling currently not supported");{const y=this.gl,s=this.disjointTimerQueryWebgl2Extension;y.endQuery(s.TIME_ELAPSED_EXT)}}isTimerResultAvailable(y){let s=!1,e=!1;if(this.version!==2||!this.disjointTimerQueryWebgl2Extension)throw new Error("WebGL1 profiling currently not supported");{const f=this.gl,g=this.disjointTimerQueryWebgl2Extension;s=f.getQueryParameter(y,f.QUERY_RESULT_AVAILABLE),e=f.getParameter(g.GPU_DISJOINT_EXT)}return s&&!e}getTimerResult(y){let s=0;if(this.version!==2)throw new Error("WebGL1 profiling currently not supported");{const e=this.gl;s=e.getQueryParameter(y,e.QUERY_RESULT),e.deleteQuery(y)}return s/1e6}async waitForQueryAndGetTime(y){return await(0,z.repeatedTry)((()=>this.isTimerResultAvailable(y))),this.getTimerResult(y)}async createAndWaitForFence(){const y=this.createFence(this.gl);
vendor: 4,264 bytes, line 1865
1865return this.pollFence(y)}createFence(y){let s;const e=y,f=e.fenceSync(e.SYNC_GPU_COMMANDS_COMPLETE,0);return y.flush(),s=f===null?()=>!0:()=>{const g=e.clientWaitSync(f,0,0);return g===e.ALREADY_SIGNALED||g===e.CONDITION_SATISFIED},{query:f,isFencePassed:s}}async pollFence(y){return new Promise((s=>{this.addItemToPoll((()=>y.isFencePassed()),(()=>s()))}))}pollItems(){const y=A(this.itemsToPoll.map((s=>s.isDoneFn)));for(let s=0;s<=y;++s){const{resolveFn:e}=this.itemsToPoll[s];e()}this.itemsToPoll=this.itemsToPoll.slice(y+1)}async addItemToPoll(y,s){this.itemsToPoll.push({isDoneFn:y,resolveFn:s}),this.itemsToPoll.length>1||await(0,z.repeatedTry)((()=>(this.pollItems(),this.itemsToPoll.length===0)))}}},1036:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.ExecutionPlan=void 0;const d=c(6231);class h{constructor(p,w){this.op=p,this.node=w}}n.ExecutionPlan=class{constructor(m,p,w){this.graph=m,this.profiler=w,this.initialize(p)}initialize(m){this.profiler.event("session","ExecutionPlan.initialize",(()=>{const p=this.graph.getNodes();if(p.length!==m.length)throw new Error("The size of nodes and OPs do not match.");this._ops=m.map(((w,z)=>new h(w,p[z]))),this.reset(),this._starter=[],this._ops.forEach(((w,z)=>{let A=!0;for(const y of w.node.inputs)if(!this._values[y]&&this.graph.getInputIndices().indexOf(y)===-1){A=!1;break}A&&this._starter.push(z)}))}))}reset(){this._values=this.graph.getValues().map((m=>m.tensor))}async execute(m,p){return this.profiler.event("session","ExecutionPlan.execute",(async()=>{this.reset();const w=m.createInferenceHandler(),z=this.graph.getInputIndices();if(p.length!==z.length)throw new Error(`number of input tensors don't match the number of inputs to the model: actual: ${p.length} expected: ${z.length}`);p.forEach(((g,R)=>{const q=z[R];this._values[q]=g}));const A=this._starter.slice(0),y=this.graph.getValues(),s=this.graph.getNodes();let e=0;for(;e<A.length;){const g=A[e++],R=this._ops[g],q=R.node.inputs.map((ae=>this._values[ae]));if(q.indexOf(void 0)!==-1)throw new Error(`unresolved input detected: op: ${R.node}`);const H=q;d.Logger.verbose("ExecPlan",`Runing op:${R.node.name} (${H.map(((ae,ne)=>`'${R.node.inputs[ne]}': ${ae.type}[${ae.dims.join(",")}]`)).join(", ")})`);const te=await this.profiler.event("node",R.node.name,(async()=>R.op.impl(w,H,R.op.context)));if(te.length!==R.node.outputs.length)throw new Error("the size of output does not match model definition.");te.forEach(((ae,ne)=>{const oe=R.node.outputs[ne];if(this._values[oe])throw new Error(`output [${oe}] already has value: op:${R.node.name}`);this._values[oe]=ae}));const re=new Set;te.forEach(((ae,ne)=>{const oe=R.node.outputs[ne];for(const le of y[oe].to){const ce=s[le];let ue=!0;for(const he of ce.inputs)if(!this._values[he]){ue=!1;break}ue&&re.add(le)}})),A.push(...re)}const f=[];for(let g=0;g<this.graph.getOutputIndices().length;g++){const R=this.graph.getOutputIndices()[g],q=this._values[R];if(q===void 0)throw new Error(`required output [${R}] does not have value`);R===0?await q.getData():q.data,f.push(q)}return d.Logger.verbose("ExecPlan","disposing of inferenceHandler"),w.dispose(),f}))}}},7070:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.Graph=void 0;const d=c(1446),h=c(7778),m=c(9395),p=c(9162),w=c(2517);var z=m.onnxruntime.experimental.fbs;n.Graph={from:(e,f)=>new s(e,f)};class A{constructor(f){this._from=void 0,this._to=[],this.tensor=void 0,this.type=void 0,f&&(this.type=w.ProtoUtil.tensorValueTypeFromProto(f.type.tensorType))}get from(){return this._from}get to(){return this._to}}class y{constructor(f,g){f instanceof d.onnx.NodeProto?(this.name=f.name,this.opType=f.opType,this.attributes=new h.Attribute(f.attribute)):f instanceof z.Node&&(this.name=g??f.name(),this.opType=f.opType(),this.attributes=new h.Attribute(w.ProtoUtil.tensorAttributesFromORTFormat(f))),this.inputs=[],this.outputs=[],this.executeNode=!0}}class s{constructor(f,g){if(!f)throw new TypeError("graph is empty");this.buildGraph(f),this.transformGraph(g),this.checkIsAcyclic()}getInputIndices(){return this._allInputIndices}getInputNames(){return this._allInputNames}getOutputIndices(){return this._allOutputIndices}getOutputNames(){return this._allOutputNames}getValues(){return this._allData}
1865getNodes(){return this._nodes}buildGraph(f){if(f instanceof d.onnx.GraphProto)this.buildGraphFromOnnxFormat(f);else{if(!(f instanceof z.Graph))throw new TypeError("Graph type is not supported.");this.buildGraphFromOrtFormat(f)}}buildGraphFromOnnxFormat(f){const g=new Map;this._allData=[],this._allInputIndices=[],this._allInputNames=[],this._allOutputIndices=[],this._allOutputNames=[],this._nodes=[];const R=new Map;if(!f.input)throw new Error("missing information in graph: input");const q=[];for(const H of f.input){if(g.has(H.name))throw new Error(`duplicated input name: ${H.name}`);const te=this._allData.push(new A(H))-1;g.set(H.name,te),q.push(H.name)}if(!f.initializer)throw new Error("missing information in graph: initializer");for(const H of f.initializer){let te=g.get(H.name);if(te===void 0){const re=new A;re.type={shape:{dims:w.ProtoUtil.tensorDimsFromProto(H.dims)},tensorType:w.ProtoUtil.tensorDataTypeFromProto(H.dataType)},te=this._allData.push(re)-1,g.set(H.name,te)}this._allData[te]._from=-1,this._allData[te].tensor=p.Tensor.fromProto(H)}for(let H=0;H<this._allData.length;H++)this._allData[H].tensor||(this._allInputIndices.push(H),this._allInputNames.push(q[H]));if(!f.output)throw new Error("missing information in graph: output");for(const H of f.output){if(g.has(H.name))throw new Error(`duplicated output name: ${H.name}`);const te=this._allData.push(new A(H))-1;g.set(H.name,te),this._allOutputIndices.push(te),this._allOutputNames.push(H.name)}if(!f.node)throw new Error("missing information in graph: node");for(const H of f.node){if(!H.name)for(let re=0;;re++){const ae=`unnamed_${H.opType}_${re}`;if(!R.has(ae)){H.name=ae;break}}if(R.has(H.name))throw new Error(`duplicated node name: ${H.name}`);const te=this._nodes.push(new y(H))-1;R.set(H.name,te)}for(let H=0;H<this._nodes.length;H++){const te=this._nodes[H],re=f.node[H];if(!re.output)throw new Error(`missing output for node: ${re.name}`);for(const ae of re.output){let ne=g.get(ae);if(ne===void 0&&(ne=this._allData.push(new A)-1,g.set(ae,ne)),te.outputs.push(ne),this._allData[ne]._from!==void 0)throw new Error(`multiple nodes output to one data value: ${ne}`);if(this._allData[ne]._from=H,re.opType==="Constant"){if(!re.attribute||re.attribute.length!==1||!re.attribute[0].t)throw new Error("missing attributes or missing tensor value in attributes for this Constant operator");if(!re.output||re.output.length!==1)throw new Error("missing output or incorrect number of outputs for this Constant operator");te.outputs.pop(),te.executeNode=!1,this._allData[ne]._from=-1,this._allData[ne].tensor=p.Tensor.fromProto(re.attribute[0].t)}}}for(let H=0;H<this._nodes.length;H++){const te=this._nodes[H],re=f.node[H];if(!re.input)throw new Error(`missing input for node: ${re.name}`);for(const ae of re.input){const ne=g.get(ae);if(ne===void 0){if(ae===""&&re.input.length===3&&re.opType==="Resize")continue;throw new Error(`unrecognized input '${ae}' for node: ${re.name}`)}te.inputs.push(ne),this._allData[ne]._to.push(H)}}return!0}buildGraphFromOrtFormat(f){var g,R,q;const H=new Map;this._allData=[],this._allInputIndices=[],this._allInputNames=[],this._allOutputIndices=[],this._allOutputNames=[],this._nodes=[];const te=new Map,re=[];for(let ae=0;ae<f.inputsLength();ae++){const ne=f.inputs(ae);if(H.has(ne))throw new Error(`duplicated input name: ${ne}`);for(let oe=0;oe<f.nodeArgsLength();oe++)if(((g=f.nodeArgs(oe))===null||g===void 0?void 0:g.name())===ne){const le=new A;if(((q=(R=f.nodeArgs(oe))===null||R===void 0?void 0:R.type())===null||q===void 0?void 0:q.valueType())!==z.TypeInfoValue.tensor_type)throw new Error("Unexpected value type for the nodeArg.");const ce=f.nodeArgs(oe).type().value(new z.TensorTypeAndShape),ue=w.ProtoUtil.tensorDataTypeFromProto(ce.elemType()),he=ce.shape(),ge=[];for(let $e=0;$e<he.dimLength();$e++)ge.push(w.LongUtil.longToNumber(he.dim($e).value().dimValue()));le.type={shape:{dims:ge},tensorType:ue};const Oe=this._allData.push(le)-1;H.set(ne,Oe),re.push(ne)}}for(let ae=0;ae<f.initializersLength();ae++){const ne=f.initializers(ae);let oe=H.get(ne.name());if(oe===void 0){const le=new A,ce=w.ProtoUtil.tensorDimsFromORTFormat(ne),ue=w.ProtoUtil.tensorDataTypeFromProto(ne.dataType());le.type={shape:{dims:ce},tensorType:ue},oe=this._allData.push(le)-1,H.set(ne.name(),oe)}this._allData[oe]._from=-1,this._allData[oe].tensor=p.Tensor.fromOrtTensor(ne)}for(let ae=0;ae<this._allData.length;ae++)this._allData[ae].tensor||(this._allInputIndices.push(ae),this._allInputNames.push(re[ae]));for(let ae=0;ae<f.outputsLength();ae++){const ne=f.outputs(ae);if(H.has(ne))throw new Error(`duplicated output name: ${ne}`);const oe=this._allData.push(new A)-1;H.set(ne,oe),this._allOutputIndices.push(oe),this._allOutputNames.push(ne)}if(!f.nodes)throw new Error("missing information in graph: node");for(let ae=0;ae<f.nodesLength();ae++){const ne=f.nodes(ae);let oe=ne.name();if(!oe)for(let ce=0;oe=`unnamed_${ne.opType()}_${ce}`,te.has(oe);ce++);if(te.has(oe))throw new Error(`duplicated node name: ${oe}`);const le=this._nodes.push(new y(ne,oe))-1;te.set(oe,le)}for(let ae=0;ae<this._nodes.length;ae++){const ne=this._nodes[ae],oe=f.nodes(ae);if(oe==null)throw new Error(`No node exists at index ${ae}`);if(oe?.outputsLength()===0)throw new Error(`missing output for node: ${oe.name}`);for(let le=0;
1865le<oe?.outputsLength();le++){const ce=oe?.outputs(le);let ue=H.get(ce);if(ue===void 0&&(ue=this._allData.push(new A)-1,H.set(ce,ue)),ne.outputs.push(ue),this._allData[ue]._from!==void 0)throw new Error(`multiple nodes output to one data value: ${ue}`);if(this._allData[ue]._from=ae,oe.opType()==="Constant"){if(oe.attributesLength()!==1||!oe.attributes(0).t())throw new Error("missing attributes or missing tensor value in attributes for this Constant operator");if(oe.outputsLength()!==1)throw new Error("missing output or incorrect number of outputs for this Constant operator");ne.outputs.pop(),ne.executeNode=!1,this._allData[ue]._from=-1,this._allData[ue].tensor=p.Tensor.fromOrtTensor(oe.attributes(0).t())}}}for(let ae=0;ae<this._nodes.length;ae++){const ne=this._nodes[ae],oe=f.nodes(ae);if(oe.inputsLength()===0)throw new Error(`missing input for node: ${oe.name}`);for(let le=0;le<oe.inputsLength();le++){const ce=oe.inputs(le),ue=H.get(ce);if(ue===void 0)throw new Error(`unrecognized input '${ce}' for node: ${oe.name()}`);ne.inputs.push(ue),this._allData[ue]._to.push(ae)}}}checkIsAcyclic(){const f=new Set;this._allInputIndices.forEach((q=>{this._allData[q]._to.forEach((H=>{f.add(H)}))}));const g=Array.from(f),R=new Array(this._nodes.length).fill("white");for(;g.length>0;){const q=g.pop();R[q]==="gray"?R[q]="black":(g.push(q),R[q]="gray",this._nodes[q].outputs.forEach((H=>{const te=this._allData[H];if(te.tensor!==void 0)throw new Error("node outputs should not be initialized");if(te._from!==q)throw new Error("from property of the Value object doesn't match index of Node being processed");te._to.forEach((re=>{if(R[re]==="gray")throw new Error("model graph is cyclic");R[re]==="white"&&g.push(re)}))})))}}transformGraph(f){this.removeAllIdentityNodes(),this.removeAllDropoutNodes(),this.fuseConvActivationNodes(),f&&f.transformGraph(this),this.finalizeGraph()}finalizeGraph(){let f=0;for(let g=0;g<this._nodes.length;g++)this._nodes[g].executeNode?f>0&&(this._nodes[g].inputs.forEach((R=>{const q=this._allData[R]._to.indexOf(g+f);q!==-1&&(this._allData[R]._to[q]=g)})),this._nodes[g].outputs.forEach((R=>{this._allData[R]._from&&this._allData[R]._from===g+f&&(this._allData[R]._from=g)}))):(f++,this._nodes[g].outputs.forEach((R=>{this._allData[R]._from=-2})),this._nodes.splice(g,1),g--);f=0;for(let g=0;g<this._allData.length;g++)if(this._allData[g].from!==-2||this._allOutputIndices.indexOf(g+f)!==-1){if(f>0){let R=-1;this._allData[g].from!==void 0&&this._allData[g].from!==-1?(R=this._nodes[this._allData[g].from].outputs.indexOf(g+f),R!==-1&&(this._nodes[this._allData[g].from].outputs[R]=g)):(R=this._allInputIndices.indexOf(g+f),R!==-1&&(this._allInputIndices[R]=g)),this._allData[g].to.forEach((q=>{R=this._nodes[q].inputs.indexOf(g+f),R!==-1&&(this._nodes[q].inputs[R]=g)})),this._allData[g].to.length===0&&(R=this._allOutputIndices.indexOf(g+f),R!==-1&&(this._allOutputIndices[R]=g))}}else f++,this._allData.splice(g,1),g--}deleteNode(f){const g=this._nodes[f];if(g.outputs.length>1){for(let ae=1;ae<g.outputs.length;ae++)if(this._allData[g.outputs[ae]].to.length>0)throw new Error("Node deletion with more than one output connected to other nodes is not supported. ")}g.executeNode=!1;const R=g.inputs[0],q=g.outputs[0],H=this._allData[q].to,te=this._allData[R].to.indexOf(f);if(te===-1)throw new Error("The Value object doesn't have the current Node in it's 'to' property ");this._allData[R].to.splice(te,1),this._allData[q]._to=[];const re=this._allOutputIndices.indexOf(q);if(re!==-1&&(this._allOutputIndices[re]=R),H&&H.length>0)for(const ae of H){const ne=this._nodes[ae].inputs.indexOf(q);if(ne===-1)throw new Error("The Node object doesn't have the output Value in it's 'inputs' property ");this._nodes[ae].inputs[ne]=R,this._allData[R].to.push(ae)}}removeAllDropoutNodes(){let f=0;for(const g of this._nodes){if(g.opType==="Dropout"){if(g.inputs.length!==1)throw new Error("Dropout nodes should only contain one input. ");if(g.outputs.length!==1&&g.outputs.length!==2)throw new Error("Dropout nodes should contain either 1 or 2 output(s)");if(g.outputs.length===2&&this._allData[g.outputs[1]]._to.length!==0)throw new Error("Dropout nodes's second output should not be referenced by other nodes");this.deleteNode(f)}f++}}removeAllIdentityNodes(){let f=0;for(const g of this._nodes)g.opType==="Identity"&&this.deleteNode(f),f++}isActivation(f){switch(f.opType){case"Relu":case"Sigmoid":case"Clip":return!0;default:return!1}}fuseConvActivationNodes(){for(const f of this._nodes)if(f.opType==="Conv"){const g=this._allData[f.outputs[0]]._to;if(g.length===1&&this.isActivation(this._nodes[g[0]])){const R=this._nodes[g[0]];if(R.opType==="Clip")if(R.inputs.length===1)try{f.attributes.set("activation_params","floats",[R.attributes.getFloat("min"),R.attributes.getFloat("max")])}catch{f.attributes.set("activation_params","floats",[w.MIN_CLIP,w.MAX_CLIP])}else{if(!(R.inputs.length>=3&&this._allData[R.inputs[1]].tensor!==void 0&&this._allData[R.inputs[2]].tensor!==void 0))continue;f.attributes.set("activation_params","floats",[this._allData[R.inputs[1]].tensor.floatData[0],this._allData[R.inputs[2]].tensor.floatData[0]])}
1865f.attributes.set("activation","string",R.opType),this.deleteNode(g[0])}}}}},6231:(o,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.now=n.Profiler=n.Logger=void 0;const c={verbose:1e3,info:2e3,warning:4e3,error:5e3,fatal:6e3},d={none:new class{log(y,s,e){}},console:new class{log(y,s,e){console.log(`${this.color(y)} ${e?"\x1B[35m"+e+"\x1B[0m ":""}${s}`)}color(y){switch(y){case"verbose":return"\x1B[34;40mv\x1B[0m";case"info":return"\x1B[32mi\x1B[0m";case"warning":return"\x1B[30;43mw\x1B[0m";case"error":return"\x1B[31;40me\x1B[0m";case"fatal":return"\x1B[101mf\x1B[0m";default:throw new Error(`unsupported severity: ${y}`)}}}},h={provider:"console",minimalSeverity:"warning",logDateTime:!0,logSourceLocation:!1};let m={"":h};function p(y,s,e,f){if(s===void 0)return g=y,{verbose:p.verbose.bind(null,g),info:p.info.bind(null,g),warning:p.warning.bind(null,g),error:p.error.bind(null,g),fatal:p.fatal.bind(null,g)};if(e===void 0)w(y,s);else if(typeof e=="number"&&f===void 0)w(y,s);else if(typeof e=="string"&&f===void 0)w(y,e,0,s);else{if(typeof e!="string"||typeof f!="number")throw new TypeError("input is valid");w(y,e,0,s)}var g}function w(y,s,e,f){const g=m[f||""]||m[""];c[y]<c[g.minimalSeverity]||(g.logDateTime&&(s=`${new Date().toISOString()}|${s}`),g.logSourceLocation,d[g.provider].log(y,s,f))}(function(y){function s(f){m={},e("",f||{})}function e(f,g){if(f==="*")s(g);else{const R=m[f]||h;m[f]={provider:g.provider||R.provider,minimalSeverity:g.minimalSeverity||R.minimalSeverity,logDateTime:g.logDateTime===void 0?R.logDateTime:g.logDateTime,logSourceLocation:g.logSourceLocation===void 0?R.logSourceLocation:g.logSourceLocation}}}y.verbose=function(f,g){y("verbose",f,g)},y.info=function(f,g){y("info",f,g)},y.warning=function(f,g){y("warning",f,g)},y.error=function(f,g){y("error",f,g)},y.fatal=function(f,g){y("fatal",f,g)},y.reset=s,y.set=e,y.setWithEnv=function(f){const g={};f.logLevel&&(g.minimalSeverity=f.logLevel),e("",g)}})(p||(p={})),n.Logger=p;class z{constructor(s,e,f,g,R,q){this.category=s,this.name=e,this.startTime=f,this.endCallback=g,this.timer=R,this.ctx=q}end(){return this.endCallback(this)}async checkTimer(){if(this.ctx===void 0||this.timer===void 0)throw new Error("No webgl timer found");return this.ctx.endTimer(),this.ctx.waitForQueryAndGetTime(this.timer)}}class A{constructor(s,e,f,g){this.category=s,this.name=e,this.startTime=f,this.endTime=g}}n.Profiler=class{static create(y){return y===void 0?new this:new this(y.maxNumberEvents,y.flushBatchSize,y.flushIntervalInMilliseconds)}constructor(y,s,e){this._started=!1,this._flushPointer=0,this._started=!1,this._maxNumberEvents=y===void 0?1e4:y,this._flushBatchSize=s===void 0?10:s,this._flushIntervalInMilliseconds=e===void 0?5e3:e}start(){this._started=!0,this._timingEvents=[],this._flushTime=(0,n.now)(),this._flushPointer=0}stop(){for(this._started=!1;this._flushPointer<this._timingEvents.length;this._flushPointer++)this.logOneEvent(this._timingEvents[this._flushPointer])}event(y,s,e,f){const g=this._started?this.begin(y,s,f):void 0;let R=!1;const q=e();if(q&&typeof q.then=="function")return R=!0,new Promise(((H,te)=>{q.then((async re=>{g&&await g.end(),H(re)}),(async re=>{g&&await g.end(),te(re)}))}));if(!R&&g){const H=g.end();if(H&&typeof H.then=="function")return new Promise(((te,re)=>{H.then((()=>{te(q)}),(ae=>{re(ae)}))}))}return q}begin(y,s,e){if(!this._started)throw new Error("profiler is not started yet");if(e===void 0){const f=(0,n.now)();return this.flush(f),new z(y,s,f,(g=>this.endSync(g)))}{const f=e.beginTimer();return new z(y,s,0,(async g=>this.end(g)),f,e)}}async end(y){const s=await y.checkTimer();this._timingEvents.length<this._maxNumberEvents&&(this._timingEvents.push(new A(y.category,y.name,y.startTime,s)),this.flush(s))}endSync(y){const s=(0,n.now)();this._timingEvents.length<this._maxNumberEvents&&(this._timingEvents.push(new A(y.category,y.name,y.startTime,s)),this.flush(s))}logOneEvent(y){n.Logger.verbose(`Profiler.${y.category}`,`${(y.endTime-y.startTime).toFixed(2)}ms on event '${y.name}' at ${y.endTime.toFixed(2)}`)}flush(y){if(this._timingEvents.length-this._flushPointer>=this._flushBatchSize||y-this._flushTime>=this._flushIntervalInMilliseconds){for(const s=this._flushPointer;this._flushPointer<s+this._flushBatchSize&&this._flushPointer<this._timingEvents.length;this._flushPointer++)this.logOneEvent(this._timingEvents[this._flushPointer]);this._flushTime=(0,n.now)()}}get started(){return this._started}},n.now=typeof performance<"u"&&performance.now?()=>performance.now():Date.now},2644:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.Model=void 0;const d=c(5686),h=c(1446),m=c(7070),p=c(9395),w=c(2517);var z=p.onnxruntime.experimental.fbs;n.Model=class{constructor(){}load(A,y,s){if(!s)try{return void this.loadFromOnnxFormat(A,y)}catch(e){if(s!==void 0)throw e}this.loadFromOrtFormat(A,y)}loadFromOnnxFormat(A,y){const s=h.onnx.ModelProto.decode(A);if(w.LongUtil.longToNumber(s.irVersion)<3)throw new Error("only support ONNX model with IR_VERSION>=3");this._opsets=s.opsetImport.map((e=>({domain:e.domain,version:w.LongUtil.longToNumber(e.version)}))),this._graph=m.Graph.from(s.graph,y)}loadFromOrtFormat(A,y){const s=new d.flatbuffers.ByteBuffer(A),e=z.InferenceSession.getRootAsInferenceSession(s).model();if(w.LongUtil.longToNumber(e.irVersion())<3)throw new Error("only support ONNX model with IR_VERSION>=3");this._opsets=[];for(let f=0;f<e.opsetImportLength();f++){const g=e.opsetImport(f);this._opsets.push({domain:g?.domain(),version:w.LongUtil.longToNumber(g.version())})}this._graph=m.Graph.from(e.graph(),y)}get graph(){return this._graph}get opsets(){return this._opsets}}},782:(o,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.FLOAT_TYPES=n.INT_TYPES=n.NUMBER_TYPES=void 0,n.NUMBER_TYPES=["float32","float64","int32","int16","int8","uint16","uint32","uint8"],n.INT_TYPES=["int32","int16","int8","uint16","uint32","uint8"],n.FLOAT_TYPES=["float32","float64"]},1047:(o,n)=>{function c(d,h){if(h.endsWith("+")){const m=Number.parseInt(h.substring(0,h.length-1),10);return!isNaN(m)&&m<=d}if(h.split("-").length===2){const m=h.split("-"),p=Number.parseInt(m[0],10),w=Number.parseInt(m[1],10);return!isNaN(p)&&!isNaN(w)&&p<=d&&d<=w}return Number.parseInt(h,10)===d}Object.defineProperty(n,"__esModule",{value:!0}),n.resolveOperator=void 0,n.resolveOperator=function(d,h,m){for(const p of m){const w=p[0],z=p[1],A=p[2],y=p[3],s=p[4];if(d.opType===w){for(const e of h)if((e.domain===z||e.domain==="ai.onnx"&&z==="")&&c(e.version,A))return{opImpl:y,opInit:s}}}throw new TypeError(`cannot resolve operator '${d.opType}' with opsets: ${h.map((p=>`${p.domain||"ai.onnx"} v${p.version}`)).join(", ")}`)}},9395:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.onnxruntime=void 0;const d=c(5686);var h,m;h=n.onnxruntime||(n.onnxruntime={}
vendor: 41,340 bytes, line 1865
1865),(function(p){(function(w){w[w.UNDEFINED=0]="UNDEFINED",w[w.FLOAT=1]="FLOAT",w[w.INT=2]="INT",w[w.STRING=3]="STRING",w[w.TENSOR=4]="TENSOR",w[w.GRAPH=5]="GRAPH",w[w.FLOATS=6]="FLOATS",w[w.INTS=7]="INTS",w[w.STRINGS=8]="STRINGS",w[w.TENSORS=9]="TENSORS",w[w.GRAPHS=10]="GRAPHS",w[w.SPARSE_TENSOR=11]="SPARSE_TENSOR",w[w.SPARSE_TENSORS=12]="SPARSE_TENSORS"})(p.AttributeType||(p.AttributeType={}))})((m=h.experimental||(h.experimental={})).fbs||(m.fbs={})),(function(p){(function(w){(function(z){(function(A){A[A.UNKNOWN=0]="UNKNOWN",A[A.VALUE=1]="VALUE",A[A.PARAM=2]="PARAM"})(z.DimensionValueType||(z.DimensionValueType={}))})(w.fbs||(w.fbs={}))})(p.experimental||(p.experimental={}))})(n.onnxruntime||(n.onnxruntime={})),(function(p){(function(w){(function(z){(function(A){A[A.UNDEFINED=0]="UNDEFINED",A[A.FLOAT=1]="FLOAT",A[A.UINT8=2]="UINT8",A[A.INT8=3]="INT8",A[A.UINT16=4]="UINT16",A[A.INT16=5]="INT16",A[A.INT32=6]="INT32",A[A.INT64=7]="INT64",A[A.STRING=8]="STRING",A[A.BOOL=9]="BOOL",A[A.FLOAT16=10]="FLOAT16",A[A.DOUBLE=11]="DOUBLE",A[A.UINT32=12]="UINT32",A[A.UINT64=13]="UINT64",A[A.COMPLEX64=14]="COMPLEX64",A[A.COMPLEX128=15]="COMPLEX128",A[A.BFLOAT16=16]="BFLOAT16"})(z.TensorDataType||(z.TensorDataType={}))})(w.fbs||(w.fbs={}))})(p.experimental||(p.experimental={}))})(n.onnxruntime||(n.onnxruntime={})),(function(p){(function(w){(function(z){(function(A){A[A.Primitive=0]="Primitive",A[A.Fused=1]="Fused"})(z.NodeType||(z.NodeType={}))})(w.fbs||(w.fbs={}))})(p.experimental||(p.experimental={}))})(n.onnxruntime||(n.onnxruntime={})),(function(p){(function(w){(function(z){(function(A){A[A.NONE=0]="NONE",A[A.tensor_type=1]="tensor_type",A[A.sequence_type=2]="sequence_type",A[A.map_type=3]="map_type"})(z.TypeInfoValue||(z.TypeInfoValue={}))})(w.fbs||(w.fbs={}))})(p.experimental||(p.experimental={}))})(n.onnxruntime||(n.onnxruntime={})),(function(p){(function(w){(function(z){class A{constructor(){this.bb=null,this.bb_pos=0}__init(s,e){return this.bb_pos=s,this.bb=e,this}static getRootAsShape(s,e){return(e||new A).__init(s.readInt32(s.position())+s.position(),s)}static getSizePrefixedRootAsShape(s,e){return s.setPosition(s.position()+d.flatbuffers.SIZE_PREFIX_LENGTH),(e||new A).__init(s.readInt32(s.position())+s.position(),s)}dim(s,e){let f=this.bb.__offset(this.bb_pos,4);return f?(e||new p.experimental.fbs.Dimension).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+f)+4*s),this.bb):null}dimLength(){let s=this.bb.__offset(this.bb_pos,4);return s?this.bb.__vector_len(this.bb_pos+s):0}static startShape(s){s.startObject(1)}static addDim(s,e){s.addFieldOffset(0,e,0)}static createDimVector(s,e){s.startVector(4,e.length,4);for(let f=e.length-1;f>=0;f--)s.addOffset(e[f]);return s.endVector()}static startDimVector(s,e){s.startVector(4,e,4)}static endShape(s){return s.endObject()}static createShape(s,e){return A.startShape(s),A.addDim(s,e),A.endShape(s)}}z.Shape=A})(w.fbs||(w.fbs={}))})(p.experimental||(p.experimental={}))})(n.onnxruntime||(n.onnxruntime={})),(function(p){(function(w){(function(z){class A{constructor(){this.bb=null,this.bb_pos=0}__init(s,e){return this.bb_pos=s,this.bb=e,this}static getRootAsDimension(s,e){return(e||new A).__init(s.readInt32(s.position())+s.position(),s)}static getSizePrefixedRootAsDimension(s,e){return s.setPosition(s.position()+d.flatbuffers.SIZE_PREFIX_LENGTH),(e||new A).__init(s.readInt32(s.position())+s.position(),s)}value(s){let e=this.bb.__offset(this.bb_pos,4);return e?(s||new p.experimental.fbs.DimensionValue).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}denotation(s){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__string(this.bb_pos+e,s):null}static startDimension(s){s.startObject(2)}static addValue(s,e){s.addFieldOffset(0,e,0)}static addDenotation(s,e){s.addFieldOffset(1,e,0)}static endDimension(s){return s.endObject()}static createDimension(s,e,f){return A.startDimension(s),A.addValue(s,e),A.addDenotation(s,f),A.endDimension(s)}}z.Dimension=A})(w.fbs||(w.fbs={}))})(p.experimental||(p.experimental={}))})(n.onnxruntime||(n.onnxruntime={})),(function(p){(function(w){(function(z){class A{constructor(){this.bb=null,this.bb_pos=0}__init(s,e){return this.bb_pos=s,this.bb=e,this}static getRootAsDimensionValue(s,e){return(e||new A).__init(s.readInt32(s.position())+s.position(),s)}static getSizePrefixedRootAsDimensionValue(s,e){return s.setPosition(s.position()+d.flatbuffers.SIZE_PREFIX_LENGTH),(e||new A).__init(s.readInt32(s.position())+s.position(),s)}dimType(){let s=this.bb.__offset(this.bb_pos,4);return s?this.bb.readInt8(this.bb_pos+s):p.experimental.fbs.DimensionValueType.UNKNOWN}dimValue(){let s=this.bb.__offset(this.bb_pos,6);return s?this.bb.readInt64(this.bb_pos+s):this.bb.createLong(0,0)}dimParam(s){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__string(this.bb_pos+e,s):null}static startDimensionValue(s){s.startObject(3)}static addDimType(s,e){s.addFieldInt8(0,e,p.experimental.fbs.DimensionValueType.UNKNOWN)}static addDimValue(s,e){s.addFieldInt64(1,e,s.createLong(0,0))}static addDimParam(s,e){s.addFieldOffset(2,e,0)}static endDimensionValue(s){return s.endObject()}static createDimensionValue(s,e,f,g){return A.startDimensionValue(s),A.addDimType(s,e),A.addDimValue(s,f),A.addDimParam(s,g),A.endDimensionValue(s)}}z.DimensionValue=A})(w.fbs||(w.fbs={}))})(p.experimental||(p.experimental={}))})(n.onnxruntime||(n.onnxruntime={})),(function(p){(function(w){(function(z){class A{constructor(){this.bb=null,this.bb_pos=0}__init(s,e){return this.bb_pos=s,this.bb=e,this}static getRootAsTensorTypeAndShape(s,e){return(e||new A).__init(s.readInt32(s.position())+s.position(),s)}static getSizePrefixedRootAsTensorTypeAndShape(s,e){return s.setPosition(s.position()+d.flatbuffers.SIZE_PREFIX_LENGTH),(e||new A).__init(s.readInt32(s.position())+s.position(),s)}elemType(){let s=this.bb.__offset(this.bb_pos,4);return s?this.bb.readInt32(this.bb_pos+s):p.experimental.fbs.TensorDataType.UNDEFINED}shape(s){let e=this.bb.__offset(this.bb_pos,6);return e?(s||new p.experimental.fbs.Shape).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}static startTensorTypeAndShape(s){s.startObject(2)}static addElemType(s,e){s.addFieldInt32(0,e,p.experimental.fbs.TensorDataType.UNDEFINED)}static addShape(s,e){s.addFieldOffset(1,e,0)}static endTensorTypeAndShape(s){return s.endObject()}static createTensorTypeAndShape(s,e,f){return A.startTensorTypeAndShape(s),A.addElemType(s,e),A.addShape(s,f),A.endTensorTypeAndShape(s)}}z.TensorTypeAndShape=A})(w.fbs||(w.fbs={}))})(p.experimental||(p.experimental={}))})(n.onnxruntime||(n.onnxruntime={})),(function(p){(function(w){(function(z){class A{constructor(){this.bb=null,this.bb_pos=0}__init(s,e){return this.bb_pos=s,this.bb=e,this}static getRootAsMapType(s,e){return(e||new A).__init(s.readInt32(s.position())+s.position(),s)}static getSizePrefixedRootAsMapType(s,e){return s.setPosition(s.position()+d.flatbuffers.SIZE_PREFIX_LENGTH),(e||new A).__init(s.readInt32(s.position())+s.position(),s)}keyType(){let s=this.bb.__offset(this.bb_pos,4);return s?this.bb.readInt32(this.bb_pos+s):p.experimental.fbs.TensorDataType.UNDEFINED}valueType(s){let e=this.bb.__offset(this.bb_pos,6);return e?(s||new p.experimental.fbs.TypeInfo).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}static startMapType(s){s.startObject(2)}static addKeyType(s,e){s.addFieldInt32(0,e,p.experimental.fbs.TensorDataType.UNDEFINED)}static addValueType(s,e){s.addFieldOffset(1,e,0)}static endMapType(s){return s.endObject()}static createMapType(s,e,f){return A.startMapType(s),A.addKeyType(s,e),A.addValueType(s,f),A.endMapType(s)}}z.MapType=A})(w.fbs||(w.fbs={}))})(p.experimental||(p.experimental={}))})(n.onnxruntime||(n.onnxruntime={})),(function(p){(function(w){(function(z){class A{constructor(){this.bb=null,this.bb_pos=0}__init(s,e){return this.bb_pos=s,this.bb=e,this}static getRootAsSequenceType(s,e){return(e||new A).__init(s.readInt32(s.position())+s.position(),s)}static getSizePrefixedRootAsSequenceType(s,e){return s.setPosition(s.position()+d.flatbuffers.SIZE_PREFIX_LENGTH),(e||new A).__init(s.readInt32(s.position())+s.position(),s)}elemType(s){let e=this.bb.__offset(this.bb_pos,4);return e?(s||new p.experimental.fbs.TypeInfo).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}static startSequenceType(s){s.startObject(1)}static addElemType(s,e){s.addFieldOffset(0,e,0)}static endSequenceType(s){return s.endObject()}static createSequenceType(s,e){return A.startSequenceType(s),A.addElemType(s,e),A.endSequenceType(s)}}z.SequenceType=A})(w.fbs||(w.fbs={}))})(p.experimental||(p.experimental={}))})(n.onnxruntime||(n.onnxruntime={})),(function(p){(function(w){(w.fbs||(w.fbs={})).EdgeEnd=class{constructor(){this.bb=null,this.bb_pos=0}__init(z,A){return this.bb_pos=z,this.bb=A,this}nodeIndex(){return this.bb.readUint32(this.bb_pos)}srcArgIndex(){return this.bb.readInt32(this.bb_pos+4)}dstArgIndex(){return this.bb.readInt32(this.bb_pos+8)}static createEdgeEnd(z,A,y,s){return z.prep(4,12),z.writeInt32(s),z.writeInt32(y),z.writeInt32(A),z.offset()}}})(p.experimental||(p.experimental={}))})(n.onnxruntime||(n.onnxruntime={})),(function(p){(function(w){(function(z){class A{constructor(){this.bb=null,this.bb_pos=0}__init(s,e){return this.bb_pos=s,this.bb=e,this}static getRootAsNodeEdge(s,e){return(e||new A).__init(s.readInt32(s.position())+s.position(),s)}static getSizePrefixedRootAsNodeEdge(s,e){return s.setPosition(s.position()+d.flatbuffers.SIZE_PREFIX_LENGTH),(e||new A).__init(s.readInt32(s.position())+s.position(),s)}nodeIndex(){let s=this.bb.__offset(this.bb_pos,4);return s?this.bb.readUint32(this.bb_pos+s):0}inputEdges(s,e){let f=this.bb.__offset(this.bb_pos,6);return f?(e||new p.experimental.fbs.EdgeEnd).__init(this.bb.__vector(this.bb_pos+f)+12*s,this.bb):null}inputEdgesLength(){let s=this.bb.__offset(this.bb_pos,6);return s?this.bb.__vector_len(this.bb_pos+s):0}outputEdges(s,e){let f=this.bb.__offset(this.bb_pos,8);return f?(e||new p.experimental.fbs.EdgeEnd).__init(this.bb.__vector(this.bb_pos+f)+12*s,this.bb):null}outputEdgesLength(){let s=this.bb.__offset(this.bb_pos,8);return s?this.bb.__vector_len(this.bb_pos+s):0}static startNodeEdge(s){s.startObject(3)}static addNodeIndex(s,e){s.addFieldInt32(0,e,0)}static addInputEdges(s,e){s.addFieldOffset(1,e,0)}static startInputEdgesVector(s,e){s.startVector(12,e,4)}static addOutputEdges(s,e){s.addFieldOffset(2,e,0)}static startOutputEdgesVector(s,e){s.startVector(12,e,4)}static endNodeEdge(s){return s.endObject()}static createNodeEdge(s,e,f,g){return A.startNodeEdge(s),A.addNodeIndex(s,e),A.addInputEdges(s,f),A.addOutputEdges(s,g),A.endNodeEdge(s)}}z.NodeEdge=A})(w.fbs||(w.fbs={}))})(p.experimental||(p.experimental={}))})(n.onnxruntime||(n.onnxruntime={})),(function(p){(function(w){(function(z){class A{constructor(){this.bb=null,this.bb_pos=0}__init(s,e){return this.bb_pos=s,this.bb=e,this}static getRootAsNode(s,e){return(e||new A).__init(s.readInt32(s.position())+s.position(),s)}static getSizePrefixedRootAsNode(s,e){return s.setPosition(s.position()+d.flatbuffers.SIZE_PREFIX_LENGTH),(e||new A).__init(s.readInt32(s.position())+s.position(),s)}name(s){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,s):null}docString(s){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__string(this.bb_pos+e,s):null}domain(s){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__string(this.bb_pos+e,s):null}sinceVersion(){let s=this.bb.__offset(this.bb_pos,10);return s?this.bb.readInt32(this.bb_pos+s):0}index(){let s=this.bb.__offset(this.bb_pos,12);return s?this.bb.readUint32(this.bb_pos+s):0}opType(s){let e=this.bb.__offset(this.bb_pos,14);return e?this.bb.__string(this.bb_pos+e,s):null}type(){let s=this.bb.__offset(this.bb_pos,16);return s?this.bb.readInt32(this.bb_pos+s):p.experimental.fbs.NodeType.Primitive}executionProviderType(s){let e=this.bb.__offset(this.bb_pos,18);return e?this.bb.__string(this.bb_pos+e,s):null}inputs(s,e){let f=this.bb.__offset(this.bb_pos,20);return f?this.bb.__string(this.bb.__vector(this.bb_pos+f)+4*s,e):null}inputsLength(){let s=this.bb.__offset(this.bb_pos,20);return s?this.bb.__vector_len(this.bb_pos+s):0}outputs(s,e){let f=this.bb.__offset(this.bb_pos,22);return f?this.bb.__string(this.bb.__vector(this.bb_pos+f)+4*s,e):null}outputsLength(){let s=this.bb.__offset(this.bb_pos,22);return s?this.bb.__vector_len(this.bb_pos+s):0}attributes(s,e){let f=this.bb.__offset(this.bb_pos,24);return f?(e||new p.experimental.fbs.Attribute).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+f)+4*s),this.bb):null}attributesLength(){let s=this.bb.__offset(this.bb_pos,24);return s?this.bb.__vector_len(this.bb_pos+s):0}inputArgCounts(s){let e=this.bb.__offset(this.bb_pos,26);return e?this.bb.readInt32(this.bb.__vector(this.bb_pos+e)+4*s):0}inputArgCountsLength(){let s=this.bb.__offset(this.bb_pos,26);return s?this.bb.__vector_len(this.bb_pos+s):0}inputArgCountsArray(){let s=this.bb.__offset(this.bb_pos,26);return s?new Int32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+s),this.bb.__vector_len(this.bb_pos+s)):null}implicitInputs(s,e){let f=this.bb.__offset(this.bb_pos,28);return f?this.bb.__string(this.bb.__vector(this.bb_pos+f)+4*s,e):null}implicitInputsLength(){let s=this.bb.__offset(this.bb_pos,28);return s?this.bb.__vector_len(this.bb_pos+s):0}static startNode(s){s.startObject(13)}static addName(s,e){s.addFieldOffset(0,e,0)}static addDocString(s,e){s.addFieldOffset(1,e,0)}static addDomain(s,e){s.addFieldOffset(2,e,0)}static addSinceVersion(s,e){s.addFieldInt32(3,e,0)}static addIndex(s,e){s.addFieldInt32(4,e,0)}static addOpType(s,e){s.addFieldOffset(5,e,0)}static addType(s,e){s.addFieldInt32(6,e,p.experimental.fbs.NodeType.Primitive)}static addExecutionProviderType(s,e){s.addFieldOffset(7,e,0)}static addInputs(s,e){s.addFieldOffset(8,e,0)}static createInputsVector(s,e){s.startVector(4,e.length,4);for(let f=e.length-1;f>=0;f--)s.addOffset(e[f]);return s.endVector()}static startInputsVector(s,e){s.startVector(4,e,4)}static addOutputs(s,e){s.addFieldOffset(9,e,0)}static createOutputsVector(s,e){s.startVector(4,e.length,4);for(let f=e.length-1;f>=0;f--)s.addOffset(e[f]);return s.endVector()}static startOutputsVector(s,e){s.startVector(4,e,4)}static addAttributes(s,e){s.addFieldOffset(10,e,0)}static createAttributesVector(s,e){s.startVector(4,e.length,4);for(let f=e.length-1;f>=0;f--)s.addOffset(e[f]);return s.endVector()}static startAttributesVector(s,e){s.startVector(4,e,4)}static addInputArgCounts(s,e){s.addFieldOffset(11,e,0)}static createInputArgCountsVector(s,e){s.startVector(4,e.length,4);for(let f=e.length-1;f>=0;f--)s.addInt32(e[f]);return s.endVector()}static startInputArgCountsVector(s,e){s.startVector(4,e,4)}static addImplicitInputs(s,e){s.addFieldOffset(12,e,0)}static createImplicitInputsVector(s,e){s.startVector(4,e.length,4);for(let f=e.length-1;f>=0;f--)s.addOffset(e[f]);return s.endVector()}static startImplicitInputsVector(s,e){s.startVector(4,e,4)}static endNode(s){return s.endObject()}static createNode(s,e,f,g,R,q,H,te,re,ae,ne,oe,le,ce){return A.startNode(s),A.addName(s,e),A.addDocString(s,f),A.addDomain(s,g),A.addSinceVersion(s,R),A.addIndex(s,q),A.addOpType(s,H),A.addType(s,te),A.addExecutionProviderType(s,re),A.addInputs(s,ae),A.addOutputs(s,ne),A.addAttributes(s,oe),A.addInputArgCounts(s,le),A.addImplicitInputs(s,ce),A.endNode(s)}}z.Node=A})(w.fbs||(w.fbs={}))})(p.experimental||(p.experimental={}))})(n.onnxruntime||(n.onnxruntime={})),(function(p){(function(w){(function(z){class A{constructor(){this.bb=null,this.bb_pos=0}__init(s,e){return this.bb_pos=s,this.bb=e,this}static getRootAsValueInfo(s,e){return(e||new A).__init(s.readInt32(s.position())+s.position(),s)}static getSizePrefixedRootAsValueInfo(s,e){return s.setPosition(s.position()+d.flatbuffers.SIZE_PREFIX_LENGTH),(e||new A).__init(s.readInt32(s.position())+s.position(),s)}name(s){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,s):null}docString(s){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__string(this.bb_pos+e,s):null}type(s){let e=this.bb.__offset(this.bb_pos,8);return e?(s||new p.experimental.fbs.TypeInfo).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}static startValueInfo(s){s.startObject(3)}static addName(s,e){s.addFieldOffset(0,e,0)}static addDocString(s,e){s.addFieldOffset(1,e,0)}static addType(s,e){s.addFieldOffset(2,e,0)}static endValueInfo(s){return s.endObject()}static createValueInfo(s,e,f,g){return A.startValueInfo(s),A.addName(s,e),A.addDocString(s,f),A.addType(s,g),A.endValueInfo(s)}}z.ValueInfo=A})(w.fbs||(w.fbs={}))})(p.experimental||(p.experimental={}))})(n.onnxruntime||(n.onnxruntime={})),(function(p){(function(w){(function(z){class A{constructor(){this.bb=null,this.bb_pos=0}__init(s,e){return this.bb_pos=s,this.bb=e,this}static getRootAsTypeInfo(s,e){return(e||new A).__init(s.readInt32(s.position())+s.position(),s)}static getSizePrefixedRootAsTypeInfo(s,e){return s.setPosition(s.position()+d.flatbuffers.SIZE_PREFIX_LENGTH),(e||new A).__init(s.readInt32(s.position())+s.position(),s)}denotation(s){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,s):null}valueType(){let s=this.bb.__offset(this.bb_pos,6);return s?this.bb.readUint8(this.bb_pos+s):p.experimental.fbs.TypeInfoValue.NONE}value(s){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__union(s,this.bb_pos+e):null}static startTypeInfo(s){s.startObject(3)}static addDenotation(s,e){s.addFieldOffset(0,e,0)}static addValueType(s,e){s.addFieldInt8(1,e,p.experimental.fbs.TypeInfoValue.NONE)}static addValue(s,e){s.addFieldOffset(2,e,0)}static endTypeInfo(s){return s.endObject()}static createTypeInfo(s,e,f,g){return A.startTypeInfo(s),A.addDenotation(s,e),A.addValueType(s,f),A.addValue(s,g),A.endTypeInfo(s)}}z.TypeInfo=A})(w.fbs||(w.fbs={}))})(p.experimental||(p.experimental={}))})(n.onnxruntime||(n.onnxruntime={})),(function(p){(function(w){(function(z){class A{constructor(){this.bb=null,this.bb_pos=0}__init(s,e){return this.bb_pos=s,this.bb=e,this}static getRootAsOperatorSetId(s,e){return(e||new A).__init(s.readInt32(s.position())+s.position(),s)}static getSizePrefixedRootAsOperatorSetId(s,e){return s.setPosition(s.position()+d.flatbuffers.SIZE_PREFIX_LENGTH),(e||new A).__init(s.readInt32(s.position())+s.position(),s)}domain(s){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,s):null}version(){let s=this.bb.__offset(this.bb_pos,6);return s?this.bb.readInt64(this.bb_pos+s):this.bb.createLong(0,0)}static startOperatorSetId(s){s.startObject(2)}static addDomain(s,e){s.addFieldOffset(0,e,0)}static addVersion(s,e){s.addFieldInt64(1,e,s.createLong(0,0))}static endOperatorSetId(s){return s.endObject()}static createOperatorSetId(s,e,f){return A.startOperatorSetId(s),A.addDomain(s,e),A.addVersion(s,f),A.endOperatorSetId(s)}}z.OperatorSetId=A})(w.fbs||(w.fbs={}))})(p.experimental||(p.experimental={}))})(n.onnxruntime||(n.onnxruntime={})),(function(p){(function(w){(function(z){class A{constructor(){this.bb=null,this.bb_pos=0}__init(s,e){return this.bb_pos=s,this.bb=e,this}static getRootAsTensor(s,e){return(e||new A).__init(s.readInt32(s.position())+s.position(),s)}static getSizePrefixedRootAsTensor(s,e){return s.setPosition(s.position()+d.flatbuffers.SIZE_PREFIX_LENGTH),(e||new A).__init(s.readInt32(s.position())+s.position(),s)}name(s){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,s):null}docString(s){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__string(this.bb_pos+e,s):null}dims(s){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.readInt64(this.bb.__vector(this.bb_pos+e)+8*s):this.bb.createLong(0,0)}dimsLength(){let s=this.bb.__offset(this.bb_pos,8);return s?this.bb.__vector_len(this.bb_pos+s):0}dataType(){let s=this.bb.__offset(this.bb_pos,10);return s?this.bb.readInt32(this.bb_pos+s):p.experimental.fbs.TensorDataType.UNDEFINED}rawData(s){let e=this.bb.__offset(this.bb_pos,12);return e?this.bb.readUint8(this.bb.__vector(this.bb_pos+e)+s):0}rawDataLength(){let s=this.bb.__offset(this.bb_pos,12);return s?this.bb.__vector_len(this.bb_pos+s):0}rawDataArray(){let s=this.bb.__offset(this.bb_pos,12);return s?new Uint8Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+s),this.bb.__vector_len(this.bb_pos+s)):null}stringData(s,e){let f=this.bb.__offset(this.bb_pos,14);return f?this.bb.__string(this.bb.__vector(this.bb_pos+f)+4*s,e):null}stringDataLength(){let s=this.bb.__offset(this.bb_pos,14);return s?this.bb.__vector_len(this.bb_pos+s):0}static startTensor(s){s.startObject(6)}static addName(s,e){s.addFieldOffset(0,e,0)}static addDocString(s,e){s.addFieldOffset(1,e,0)}static addDims(s,e){s.addFieldOffset(2,e,0)}static createDimsVector(s,e){s.startVector(8,e.length,8);for(let f=e.length-1;f>=0;f--)s.addInt64(e[f]);return s.endVector()}static startDimsVector(s,e){s.startVector(8,e,8)}static addDataType(s,e){s.addFieldInt32(3,e,p.experimental.fbs.TensorDataType.UNDEFINED)}static addRawData(s,e){s.addFieldOffset(4,e,0)}static createRawDataVector(s,e){s.startVector(1,e.length,1);for(let f=e.length-1;f>=0;f--)s.addInt8(e[f]);return s.endVector()}static startRawDataVector(s,e){s.startVector(1,e,1)}static addStringData(s,e){s.addFieldOffset(5,e,0)}static createStringDataVector(s,e){s.startVector(4,e.length,4);for(let f=e.length-1;f>=0;f--)s.addOffset(e[f]);return s.endVector()}static startStringDataVector(s,e){s.startVector(4,e,4)}static endTensor(s){return s.endObject()}static createTensor(s,e,f,g,R,q,H){return A.startTensor(s),A.addName(s,e),A.addDocString(s,f),A.addDims(s,g),A.addDataType(s,R),A.addRawData(s,q),A.addStringData(s,H),A.endTensor(s)}}z.Tensor=A})(w.fbs||(w.fbs={}))})(p.experimental||(p.experimental={}))})(n.onnxruntime||(n.onnxruntime={})),(function(p){(function(w){(function(z){class A{constructor(){this.bb=null,this.bb_pos=0}__init(s,e){return this.bb_pos=s,this.bb=e,this}static getRootAsSparseTensor(s,e){return(e||new A).__init(s.readInt32(s.position())+s.position(),s)}static getSizePrefixedRootAsSparseTensor(s,e){return s.setPosition(s.position()+d.flatbuffers.SIZE_PREFIX_LENGTH),(e||new A).__init(s.readInt32(s.position())+s.position(),s)}values(s){let e=this.bb.__offset(this.bb_pos,4);return e?(s||new p.experimental.fbs.Tensor).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}indices(s){let e=this.bb.__offset(this.bb_pos,6);return e?(s||new p.experimental.fbs.Tensor).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}dims(s){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.readInt64(this.bb.__vector(this.bb_pos+e)+8*s):this.bb.createLong(0,0)}dimsLength(){let s=this.bb.__offset(this.bb_pos,8);return s?this.bb.__vector_len(this.bb_pos+s):0}static startSparseTensor(s){s.startObject(3)}static addValues(s,e){s.addFieldOffset(0,e,0)}static addIndices(s,e){s.addFieldOffset(1,e,0)}static addDims(s,e){s.addFieldOffset(2,e,0)}static createDimsVector(s,e){s.startVector(8,e.length,8);for(let f=e.length-1;f>=0;f--)s.addInt64(e[f]);return s.endVector()}static startDimsVector(s,e){s.startVector(8,e,8)}static endSparseTensor(s){return s.endObject()}static createSparseTensor(s,e,f,g){return A.startSparseTensor(s),A.addValues(s,e),A.addIndices(s,f),A.addDims(s,g),A.endSparseTensor(s)}}z.SparseTensor=A})(w.fbs||(w.fbs={}))})(p.experimental||(p.experimental={}))})(n.onnxruntime||(n.onnxruntime={})),(function(p){(function(w){(function(z){class A{constructor(){this.bb=null,this.bb_pos=0}__init(s,e){return this.bb_pos=s,this.bb=e,this}static getRootAsAttribute(s,e){return(e||new A).__init(s.readInt32(s.position())+s.position(),s)}static getSizePrefixedRootAsAttribute(s,e){return s.setPosition(s.position()+d.flatbuffers.SIZE_PREFIX_LENGTH),(e||new A).__init(s.readInt32(s.position())+s.position(),s)}name(s){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,s):null}docString(s){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__string(this.bb_pos+e,s):null}type(){let s=this.bb.__offset(this.bb_pos,8);return s?this.bb.readInt32(this.bb_pos+s):p.experimental.fbs.AttributeType.UNDEFINED}f(){let s=this.bb.__offset(this.bb_pos,10);return s?this.bb.readFloat32(this.bb_pos+s):0}i(){let s=this.bb.__offset(this.bb_pos,12);return s?this.bb.readInt64(this.bb_pos+s):this.bb.createLong(0,0)}s(s){let e=this.bb.__offset(this.bb_pos,14);return e?this.bb.__string(this.bb_pos+e,s):null}t(s){let e=this.bb.__offset(this.bb_pos,16);return e?(s||new p.experimental.fbs.Tensor).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}g(s){let e=this.bb.__offset(this.bb_pos,18);return e?(s||new p.experimental.fbs.Graph).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}floats(s){let e=this.bb.__offset(this.bb_pos,20);return e?this.bb.readFloat32(this.bb.__vector(this.bb_pos+e)+4*s):0}floatsLength(){let s=this.bb.__offset(this.bb_pos,20);return s?this.bb.__vector_len(this.bb_pos+s):0}floatsArray(){let s=this.bb.__offset(this.bb_pos,20);return s?new Float32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+s),this.bb.__vector_len(this.bb_pos+s)):null}ints(s){let e=this.bb.__offset(this.bb_pos,22);return e?this.bb.readInt64(this.bb.__vector(this.bb_pos+e)+8*s):this.bb.createLong(0,0)}intsLength(){let s=this.bb.__offset(this.bb_pos,22);return s?this.bb.__vector_len(this.bb_pos+s):0}strings(s,e){let f=this.bb.__offset(this.bb_pos,24);return f?this.bb.__string(this.bb.__vector(this.bb_pos+f)+4*s,e):null}stringsLength(){let s=this.bb.__offset(this.bb_pos,24);return s?this.bb.__vector_len(this.bb_pos+s):0}tensors(s,e){let f=this.bb.__offset(this.bb_pos,26);return f?(e||new p.experimental.fbs.Tensor).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+f)+4*s),this.bb):null}tensorsLength(){let s=this.bb.__offset(this.bb_pos,26);return s?this.bb.__vector_len(this.bb_pos+s):0}graphs(s,e){let f=this.bb.__offset(this.bb_pos,28);return f?(e||new p.experimental.fbs.Graph).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+f)+4*s),this.bb):null}graphsLength(){let s=this.bb.__offset(this.bb_pos,28);return s?this.bb.__vector_len(this.bb_pos+s):0}static startAttribute(s){s.startObject(13)}static addName(s,e){s.addFieldOffset(0,e,0)}static addDocString(s,e){s.addFieldOffset(1,e,0)}static addType(s,e){s.addFieldInt32(2,e,p.experimental.fbs.AttributeType.UNDEFINED)}static addF(s,e){s.addFieldFloat32(3,e,0)}static addI(s,e){s.addFieldInt64(4,e,s.createLong(0,0))}static addS(s,e){s.addFieldOffset(5,e,0)}static addT(s,e){s.addFieldOffset(6,e,0)}static addG(s,e){s.addFieldOffset(7,e,0)}static addFloats(s,e){s.addFieldOffset(8,e,0)}static createFloatsVector(s,e){s.startVector(4,e.length,4);for(let f=e.length-1;f>=0;f--)s.addFloat32(e[f]);return s.endVector()}static startFloatsVector(s,e){s.startVector(4,e,4)}static addInts(s,e){s.addFieldOffset(9,e,0)}static createIntsVector(s,e){s.startVector(8,e.length,8);for(let f=e.length-1;f>=0;f--)s.addInt64(e[f]);return s.endVector()}static startIntsVector(s,e){s.startVector(8,e,8)}static addStrings(s,e){s.addFieldOffset(10,e,0)}static createStringsVector(s,e){s.startVector(4,e.length,4);for(let f=e.length-1;f>=0;f--)s.addOffset(e[f]);return s.endVector()}static startStringsVector(s,e){s.startVector(4,e,4)}static addTensors(s,e){s.addFieldOffset(11,e,0)}static createTensorsVector(s,e){s.startVector(4,e.length,4);for(let f=e.length-1;f>=0;f--)s.addOffset(e[f]);return s.endVector()}static startTensorsVector(s,e){s.startVector(4,e,4)}static addGraphs(s,e){s.addFieldOffset(12,e,0)}static createGraphsVector(s,e){s.startVector(4,e.length,4);for(let f=e.length-1;f>=0;f--)s.addOffset(e[f]);return s.endVector()}static startGraphsVector(s,e){s.startVector(4,e,4)}static endAttribute(s){return s.endObject()}static createAttribute(s,e,f,g,R,q,H,te,re,ae,ne,oe,le,ce){return A.startAttribute(s),A.addName(s,e),A.addDocString(s,f),A.addType(s,g),A.addF(s,R),A.addI(s,q),A.addS(s,H),A.addT(s,te),A.addG(s,re),A.addFloats(s,ae),A.addInts(s,ne),A.addStrings(s,oe),A.addTensors(s,le),A.addGraphs(s,ce),A.endAttribute(s)}}z.Attribute=A})(w.fbs||(w.fbs={}))})(p.experimental||(p.experimental={}))})(n.onnxruntime||(n.onnxruntime={})),(function(p){(function(w){(function(z){class A{constructor(){this.bb=null,this.bb_pos=0}__init(s,e){return this.bb_pos=s,this.bb=e,this}static getRootAsGraph(s,e){return(e||new A).__init(s.readInt32(s.position())+s.position(),s)}static getSizePrefixedRootAsGraph(s,e){return s.setPosition(s.position()+d.flatbuffers.SIZE_PREFIX_LENGTH),(e||new A).__init(s.readInt32(s.position())+s.position(),s)}initializers(s,e){let f=this.bb.__offset(this.bb_pos,4);return f?(e||new p.experimental.fbs.Tensor).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+f)+4*s),this.bb):null}initializersLength(){let s=this.bb.__offset(this.bb_pos,4);return s?this.bb.__vector_len(this.bb_pos+s):0}nodeArgs(s,e){let f=this.bb.__offset(this.bb_pos,6);return f?(e||new p.experimental.fbs.ValueInfo).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+f)+4*s),this.bb):null}nodeArgsLength(){let s=this.bb.__offset(this.bb_pos,6);return s?this.bb.__vector_len(this.bb_pos+s):0}nodes(s,e){let f=this.bb.__offset(this.bb_pos,8);return f?(e||new p.experimental.fbs.Node).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+f)+4*s),this.bb):null}nodesLength(){let s=this.bb.__offset(this.bb_pos,8);return s?this.bb.__vector_len(this.bb_pos+s):0}maxNodeIndex(){let s=this.bb.__offset(this.bb_pos,10);return s?this.bb.readUint32(this.bb_pos+s):0}nodeEdges(s,e){let f=this.bb.__offset(this.bb_pos,12);return f?(e||new p.experimental.fbs.NodeEdge).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+f)+4*s),this.bb):null}nodeEdgesLength(){let s=this.bb.__offset(this.bb_pos,12);return s?this.bb.__vector_len(this.bb_pos+s):0}inputs(s,e){let f=this.bb.__offset(this.bb_pos,14);return f?this.bb.__string(this.bb.__vector(this.bb_pos+f)+4*s,e):null}inputsLength(){let s=this.bb.__offset(this.bb_pos,14);return s?this.bb.__vector_len(this.bb_pos+s):0}outputs(s,e){let f=this.bb.__offset(this.bb_pos,16);return f?this.bb.__string(this.bb.__vector(this.bb_pos+f)+4*s,e):null}outputsLength(){let s=this.bb.__offset(this.bb_pos,16);return s?this.bb.__vector_len(this.bb_pos+s):0}sparseInitializers(s,e){let f=this.bb.__offset(this.bb_pos,18);return f?(e||new p.experimental.fbs.SparseTensor).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+f)+4*s),this.bb):null}sparseInitializersLength(){let s=this.bb.__offset(this.bb_pos,18);return s?this.bb.__vector_len(this.bb_pos+s):0}static startGraph(s){s.startObject(8)}static addInitializers(s,e){s.addFieldOffset(0,e,0)}static createInitializersVector(s,e){s.startVector(4,e.length,4);for(let f=e.length-1;f>=0;f--)s.addOffset(e[f]);return s.endVector()}static startInitializersVector(s,e){s.startVector(4,e,4)}static addNodeArgs(s,e){s.addFieldOffset(1,e,0)}static createNodeArgsVector(s,e){s.startVector(4,e.length,4);for(let f=e.length-1;f>=0;f--)s.addOffset(e[f]);return s.endVector()}static startNodeArgsVector(s,e){s.startVector(4,e,4)}static addNodes(s,e){s.addFieldOffset(2,e,0)}static createNodesVector(s,e){s.startVector(4,e.length,4);for(let f=e.length-1;f>=0;f--)s.addOffset(e[f]);return s.endVector()}static startNodesVector(s,e){s.startVector(4,e,4)}static addMaxNodeIndex(s,e){s.addFieldInt32(3,e,0)}static addNodeEdges(s,e){s.addFieldOffset(4,e,0)}static createNodeEdgesVector(s,e){s.startVector(4,e.length,4);for(let f=e.length-1;f>=0;f--)s.addOffset(e[f]);return s.endVector()}static startNodeEdgesVector(s,e){s.startVector(4,e,4)}static addInputs(s,e){s.addFieldOffset(5,e,0)}static createInputsVector(s,e){s.startVector(4,e.length,4);for(let f=e.length-1;f>=0;f--)s.addOffset(e[f]);return s.endVector()}static startInputsVector(s,e){s.startVector(4,e,4)}static addOutputs(s,e){s.addFieldOffset(6,e,0)}static createOutputsVector(s,e){s.startVector(4,e.length,4);for(let f=e.length-1;f>=0;f--)s.addOffset(e[f]);return s.endVector()}static startOutputsVector(s,e){s.startVector(4,e,4)}static addSparseInitializers(s,e){s.addFieldOffset(7,e,0)}static createSparseInitializersVector(s,e){s.startVector(4,e.length,4);for(let f=e.length-1;f>=0;f--)s.addOffset(e[f]);return s.endVector()}static startSparseInitializersVector(s,e){s.startVector(4,e,4)}static endGraph(s){return s.endObject()}static createGraph(s,e,f,g,R,q,H,te,re){return A.startGraph(s),A.addInitializers(s,e),A.addNodeArgs(s,f),A.addNodes(s,g),A.addMaxNodeIndex(s,R),A.addNodeEdges(s,q),A.addInputs(s,H),A.addOutputs(s,te),A.addSparseInitializers(s,re),A.endGraph(s)}}z.Graph=A})(w.fbs||(w.fbs={}))})(p.experimental||(p.experimental={}))})(n.onnxruntime||(n.onnxruntime={})),(function(p){(function(w){(function(z){class A{constructor(){this.bb=null,this.bb_pos=0}__init(s,e){return this.bb_pos=s,this.bb=e,this}static getRootAsModel(s,e){return(e||new A).__init(s.readInt32(s.position())+s.position(),s)}static getSizePrefixedRootAsModel(s,e){return s.setPosition(s.position()+d.flatbuffers.SIZE_PREFIX_LENGTH),(e||new A).__init(s.readInt32(s.position())+s.position(),s)}irVersion(){let s=this.bb.__offset(this.bb_pos,4);return s?this.bb.readInt64(this.bb_pos+s):this.bb.createLong(0,0)}opsetImport(s,e){let f=this.bb.__offset(this.bb_pos,6);return f?(e||new p.experimental.fbs.OperatorSetId).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+f)+4*s),this.bb):null}opsetImportLength(){let s=this.bb.__offset(this.bb_pos,6);return s?this.bb.__vector_len(this.bb_pos+s):0}producerName(s){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__string(this.bb_pos+e,s):null}producerVersion(s){let e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__string(this.bb_pos+e,s):null}domain(s){let e=this.bb.__offset(this.bb_pos,12);return e?this.bb.__string(this.bb_pos+e,s):null}modelVersion(){let s=this.bb.__offset(this.bb_pos,14);return s?this.bb.readInt64(this.bb_pos+s):this.bb.createLong(0,0)}docString(s){let e=this.bb.__offset(this.bb_pos,16);return e?this.bb.__string(this.bb_pos+e,s):null}graph(s){let e=this.bb.__offset(this.bb_pos,18);return e?(s||new p.experimental.fbs.Graph).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}graphDocString(s){let e=this.bb.__offset(this.bb_pos,20);return e?this.bb.__string(this.bb_pos+e,s):null}static startModel(s){s.startObject(9)}static addIrVersion(s,e){s.addFieldInt64(0,e,s.createLong(0,0))}static addOpsetImport(s,e){s.addFieldOffset(1,e,0)}static createOpsetImportVector(s,e){s.startVector(4,e.length,4);for(let f=e.length-1;f>=0;f--)s.addOffset(e[f]);return s.endVector()}static startOpsetImportVector(s,e){s.startVector(4,e,4)}static addProducerName(s,e){s.addFieldOffset(2,e,0)}static addProducerVersion(s,e){s.addFieldOffset(3,e,0)}static addDomain(s,e){s.addFieldOffset(4,e,0)}static addModelVersion(s,e){s.addFieldInt64(5,e,s.createLong(0,0))}static addDocString(s,e){s.addFieldOffset(6,e,0)}static addGraph(s,e){s.addFieldOffset(7,e,0)}static addGraphDocString(s,e){s.addFieldOffset(8,e,0)}static endModel(s){return s.endObject()}static createModel(s,e,f,g,R,q,H,te,re,ae){return A.startModel(s),A.addIrVersion(s,e),A.addOpsetImport(s,f),A.addProducerName(s,g),A.addProducerVersion(s,R),A.addDomain(s,q),A.addModelVersion(s,H),A.addDocString(s,te),A.addGraph(s,re),A.addGraphDocString(s,ae),A.endModel(s)}}z.Model=A})(w.fbs||(w.fbs={}))})(p.experimental||(p.experimental={}))})(n.onnxruntime||(n.onnxruntime={})),(function(p){(function(w){(function(z){class A{constructor(){this.bb=null,this.bb_pos=0}__init(s,e){return this.bb_pos=s,this.bb=e,this}static getRootAsKernelCreateInfos(s,e){return(e||new A).__init(s.readInt32(s.position())+s.position(),s)}static getSizePrefixedRootAsKernelCreateInfos(s,e){return s.setPosition(s.position()+d.flatbuffers.SIZE_PREFIX_LENGTH),(e||new A).__init(s.readInt32(s.position())+s.position(),s)}nodeIndices(s){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readUint32(this.bb.__vector(this.bb_pos+e)+4*s):0}nodeIndicesLength(){let s=this.bb.__offset(this.bb_pos,4);return s?this.bb.__vector_len(this.bb_pos+s):0}nodeIndicesArray(){let s=this.bb.__offset(this.bb_pos,4);return s?new Uint32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+s),this.bb.__vector_len(this.bb_pos+s)):null}kernelDefHashes(s){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readUint64(this.bb.__vector(this.bb_pos+e)+8*s):this.bb.createLong(0,0)}kernelDefHashesLength(){let s=this.bb.__offset(this.bb_pos,6);return s?this.bb.__vector_len(this.bb_pos+s):0}static startKernelCreateInfos(s){s.startObject(2)}static addNodeIndices(s,e){s.addFieldOffset(0,e,0)}static createNodeIndicesVector(s,e){s.startVector(4,e.length,4);for(let f=e.length-1;f>=0;f--)s.addInt32(e[f]);return s.endVector()}static startNodeIndicesVector(s,e){s.startVector(4,e,4)}static addKernelDefHashes(s,e){s.addFieldOffset(1,e,0)}static createKernelDefHashesVector(s,e){s.startVector(8,e.length,8);for(let f=e.length-1;f>=0;f--)s.addInt64(e[f]);return s.endVector()}static startKernelDefHashesVector(s,e){s.startVector(8,e,8)}static endKernelCreateInfos(s){return s.endObject()}static createKernelCreateInfos(s,e,f){return A.startKernelCreateInfos(s),A.addNodeIndices(s,e),A.addKernelDefHashes(s,f),A.endKernelCreateInfos(s)}}z.KernelCreateInfos=A})(w.fbs||(w.fbs={}))})(p.experimental||(p.experimental={}))})(n.onnxruntime||(n.onnxruntime={})),(function(p){(function(w){(function(z){class A{constructor(){this.bb=null,this.bb_pos=0}__init(s,e){return this.bb_pos=s,this.bb=e,this}static getRootAsSubGraphSessionState(s,e){return(e||new A).__init(s.readInt32(s.position())+s.position(),s)}static getSizePrefixedRootAsSubGraphSessionState(s,e){return s.setPosition(s.position()+d.flatbuffers.SIZE_PREFIX_LENGTH),(e||new A).__init(s.readInt32(s.position())+s.position(),s)}graphId(s){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,s):null}sessionState(s){let e=this.bb.__offset(this.bb_pos,6);return e?(s||new p.experimental.fbs.SessionState).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}static startSubGraphSessionState(s){s.startObject(2)}static addGraphId(s,e){s.addFieldOffset(0,e,0)}static addSessionState(s,e){s.addFieldOffset(1,e,0)}static endSubGraphSessionState(s){let e=s.endObject();return s.requiredField(e,4),e}static createSubGraphSessionState(s,e,f){return A.startSubGraphSessionState(s),A.addGraphId(s,e),A.addSessionState(s,f),A.endSubGraphSessionState(s)}}z.SubGraphSessionState=A})(w.fbs||(w.fbs={}))})(p.experimental||(p.experimental={}))})(n.onnxruntime||(n.onnxruntime={})),(function(p){(function(w){(function(z){class A{constructor(){this.bb=null,this.bb_pos=0}__init(s,e){return this.bb_pos=s,this.bb=e,this}static getRootAsSessionState(s,e){return(e||new A).__init(s.readInt32(s.position())+s.position(),s)}static getSizePrefixedRootAsSessionState(s,e){return s.setPosition(s.position()+d.flatbuffers.SIZE_PREFIX_LENGTH),(e||new A).__init(s.readInt32(s.position())+s.position(),s)}kernels(s){let e=this.bb.__offset(this.bb_pos,4);return e?(s||new p.experimental.fbs.KernelCreateInfos).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}subGraphSessionStates(s,e){let f=this.bb.__offset(this.bb_pos,6);return f?(e||new p.experimental.fbs.SubGraphSessionState).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+f)+4*s),this.bb):null}subGraphSessionStatesLength(){let s=this.bb.__offset(this.bb_pos,6);return s?this.bb.__vector_len(this.bb_pos+s):0}static startSessionState(s){s.startObject(2)}static addKernels(s,e){s.addFieldOffset(0,e,0)}static addSubGraphSessionStates(s,e){s.addFieldOffset(1,e,0)}static createSubGraphSessionStatesVector(s,e){s.startVector(4,e.length,4);for(let f=e.length-1;f>=0;f--)s.addOffset(e[f]);return s.endVector()}static startSubGraphSessionStatesVector(s,e){s.startVector(4,e,4)}static endSessionState(s){return s.endObject()}static createSessionState(s,e,f){return A.startSessionState(s),A.addKernels(s,e),A.addSubGraphSessionStates(s,f),A.endSessionState(s)}}z.SessionState=A})(w.fbs||(w.fbs={}))})(p.experimental||(p.experimental={}))})(n.onnxruntime||(n.onnxruntime={})),(function(p){(function(w){(function(z){class A{constructor(){this.bb=null,this.bb_pos=0}__init(s,e){return this.bb_pos=s,this.bb=e,this}static getRootAsInferenceSession(s,e){return(e||new A).__init(s.readInt32(s.position())+s.position(),s)}static getSizePrefixedRootAsInferenceSession(s,e){return s.setPosition(s.position()+d.flatbuffers.SIZE_PREFIX_LENGTH),(e||new A).__init(s.readInt32(s.position())+s.position(),s)}static bufferHasIdentifier(s){return s.__has_identifier("ORTM")}ortVersion(s){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,s):null}model(s){let e=this.bb.__offset(this.bb_pos,6);return e?(s||new p.experimental.fbs.Model).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}sessionState(s){let e=this.bb.__offset(this.bb_pos,8);return e?(s||new p.experimental.fbs.SessionState).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}static startInferenceSession(s){s.startObject(3)}static addOrtVersion(s,e){s.addFieldOffset(0,e,0)}static addModel(s,e){s.addFieldOffset(1,e,0)}static addSessionState(s,e){s.addFieldOffset(2,e,0)}static endInferenceSession(s){return s.endObject()}static finishInferenceSessionBuffer(s,e){s.finish(e,"ORTM")}static finishSizePrefixedInferenceSessionBuffer(s,e){s.finish(e,"ORTM",!0)}
vendor: 4,164 bytes, line 1865
1865static createInferenceSession(s,e,f,g){return A.startInferenceSession(s),A.addOrtVersion(s,e),A.addModel(s,f),A.addSessionState(s,g),A.endInferenceSession(s)}}z.InferenceSession=A})(w.fbs||(w.fbs={}))})(p.experimental||(p.experimental={}))})(n.onnxruntime||(n.onnxruntime={}))},7448:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.OnnxjsSessionHandler=void 0;const d=c(1670),h=c(9162);n.OnnxjsSessionHandler=class{constructor(m){this.session=m,this.inputNames=this.session.inputNames,this.outputNames=this.session.outputNames}async dispose(){}async run(m,p,w){const z=new Map;for(const s in m)if(Object.hasOwnProperty.call(m,s)){const e=m[s];z.set(s,new h.Tensor(e.dims,e.type,void 0,void 0,e.data))}const A=await this.session.run(z),y={};return A.forEach(((s,e)=>{y[e]=new d.Tensor(s.type,s.data,s.dims)})),y}startProfiling(){this.session.startProfiling()}endProfiling(){this.session.endProfiling()}}},6919:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.Session=void 0;const d=c(7067),h=c(1296),m=c(7091),p=c(1036),w=c(6231),z=c(2644);n.Session=class{constructor(A={}){this._initialized=!1,this.backendHint=A.backendHint,this.profiler=w.Profiler.create(A.profiler),this.context={profiler:this.profiler,graphInputTypes:[],graphInputDims:[]}}get inputNames(){return this._model.graph.getInputNames()}get outputNames(){return this._model.graph.getOutputNames()}startProfiling(){this.profiler.start()}endProfiling(){this.profiler.stop()}async loadModel(A,y,s){await this.profiler.event("session","Session.loadModel",(async()=>{const e=await(0,m.resolveBackend)(this.backendHint);if(this.sessionHandler=e.createSessionHandler(this.context),this._model=new z.Model,typeof A=="string"){const f=A.endsWith(".ort");if(typeof fetch>"u"){const g=await(0,h.promisify)(d.readFile)(A);this.initialize(g,f)}else{const g=await fetch(A),R=await g.arrayBuffer();this.initialize(new Uint8Array(R),f)}}else if(ArrayBuffer.isView(A))this.initialize(A);else{const f=new Uint8Array(A,y||0,s||A.byteLength);this.initialize(f)}}))}initialize(A,y){if(this._initialized)throw new Error("already initialized");this.profiler.event("session","Session.initialize",(()=>{const s=this.sessionHandler.transformGraph?this.sessionHandler:void 0;this._model.load(A,s,y),this.sessionHandler.onGraphInitialized&&this.sessionHandler.onGraphInitialized(this._model.graph),this.initializeOps(this._model.graph),this._executionPlan=new p.ExecutionPlan(this._model.graph,this._ops,this.profiler)})),this._initialized=!0}async run(A){if(!this._initialized)throw new Error("session not initialized yet");return this.profiler.event("session","Session.run",(async()=>{const y=this.normalizeAndValidateInputs(A),s=await this._executionPlan.execute(this.sessionHandler,y);return this.createOutput(s)}))}normalizeAndValidateInputs(A){const y=this._model.graph.getInputNames();if(Array.isArray(A)){if(A.length!==y.length)throw new Error(`incorrect input array length: expected ${y.length} but got ${A.length}`)}else{if(A.size!==y.length)throw new Error(`incorrect input map size: expected ${y.length} but got ${A.size}`);const s=new Array(A.size);let e=0;for(let f=0;f<y.length;++f){const g=A.get(y[f]);if(!g)throw new Error(`missing input tensor for: '${name}'`);s[e++]=g}A=s}if(this.context.graphInputTypes&&this.context.graphInputTypes.length!==0&&this.context.graphInputDims&&this.context.graphInputDims.length!==0)this.validateInputTensorDims(this.context.graphInputDims,A,!1);else{const s=this._model.graph.getInputIndices(),e=this._model.graph.getValues(),f=new Array(s.length);for(let g=0;g<s.length;++g){const R=e[s[g]];f[g]=R.type.shape.dims,this.context.graphInputTypes.push(R.type.tensorType),this.context.graphInputDims.push(A[g].dims)}this.validateInputTensorDims(f,A,!0)}return this.validateInputTensorTypes(this.context.graphInputTypes,A),A}validateInputTensorTypes(A,y){for(let s=0;s<y.length;s++){const e=A[s],f=y[s].type;if(e!==f)throw new Error(`input tensor[${s}] check failed: expected type '${e}' but got ${f}`)}}validateInputTensorDims(A,y,s){for(let e=0;e<y.length;e++){const f=A[e],g=y[e].dims;if(!this.compareTensorDims(f,g,s))throw new Error(`input tensor[${e}
1865] check failed: expected shape '[${f.join(",")}]' but got [${g.join(",")}]`)}}compareTensorDims(A,y,s){if(A.length!==y.length)return!1;for(let e=0;e<A.length;++e)if(A[e]!==y[e]&&(!s||A[e]!==0))return!1;return!0}createOutput(A){const y=this._model.graph.getOutputNames();if(A.length!==y.length)throw new Error("expected number of outputs do not match number of generated outputs");const s=new Map;for(let e=0;e<y.length;++e)s.set(y[e],A[e]);return s}initializeOps(A){const y=A.getNodes();this._ops=new Array(y.length);for(let s=0;s<y.length;s++)this._ops[s]=this.sessionHandler.resolve(y[s],this._model.opsets,A)}}},9162:function(o,n,c){var d=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(n,"__esModule",{value:!0}),n.Tensor=void 0;const h=c(3442),m=d(c(3720)),p=c(1446),w=c(9395),z=c(2517);var A=w.onnxruntime.experimental.fbs;class y{get data(){if(this.cache===void 0){const q=this.dataProvider(this.dataId);if(q.length!==this.size)throw new Error("Length of data provided by the Data Provider is inconsistent with the dims of this Tensor.");this.cache=q}return this.cache}get stringData(){if(this.type!=="string")throw new TypeError("data type is not string");return this.data}get integerData(){switch(this.type){case"uint8":case"int8":case"uint16":case"int16":case"int32":case"uint32":case"bool":return this.data;default:throw new TypeError("data type is not integer (uint8, int8, uint16, int16, int32, uint32, bool)")}}get floatData(){switch(this.type){case"float32":case"float64":return this.data;default:throw new TypeError("data type is not float (float32, float64)")}}get numberData(){if(this.type!=="string")return this.data;throw new TypeError("type cannot be non-number (string)")}get(q){return this.data[z.ShapeUtil.indicesToOffset(q,this.strides)]}set(q,H){this.data[z.ShapeUtil.indicesToOffset(q,this.strides)]=H}async getData(){return this.cache===void 0&&(this.cache=await this.asyncDataProvider(this.dataId)),this.cache}get strides(){return this._strides||(this._strides=z.ShapeUtil.computeStrides(this.dims)),this._strides}constructor(q,H,te,re,ae,ne=h.Guid.create()){this.dims=q,this.type=H,this.dataProvider=te,this.asyncDataProvider=re,this.cache=ae,this.dataId=ne,this.size=z.ShapeUtil.validateDimsAndCalcSize(q);const oe=this.size,le=te===void 0&&re===void 0&&ae===void 0;if(ae!==void 0&&ae.length!==oe)throw new RangeError("Input dims doesn't match data length.");if(H==="string"){if(!(ae===void 0||Array.isArray(ae)&&ae.every((ce=>typeof ce=="string"))))throw new TypeError("cache should be a string array");le&&(this.cache=new Array(oe))}else{if(ae!==void 0){const ce=e(H);if(!(ae instanceof ce))throw new TypeError(`cache should be type ${ce.name}`)}if(le){const ce=new ArrayBuffer(oe*(function(ue){switch(ue){case"bool":case"int8":case"uint8":return 1;case"int16":case"uint16":return 2;case"int32":case"uint32":case"float32":return 4;case"float64":return 8;default:throw new Error(`cannot calculate sizeof() on type ${ue}`)}})(H));this.cache=(function(ue,he){return new(e(he))(ue)})(ce,H)}}}static fromProto(q){if(!q)throw new Error("cannot construct Value from an empty tensor");const H=z.ProtoUtil.tensorDataTypeFromProto(q.dataType),te=z.ProtoUtil.tensorDimsFromProto(q.dims),re=new y(te,H);if(H==="string")q.stringData.forEach(((ae,ne)=>{re.data[ne]=(0,z.decodeUtf8String)(ae)}));else if(q.rawData&&typeof q.rawData.byteLength=="number"&&q.rawData.byteLength>0){const ae=re.data,ne=new DataView(q.rawData.buffer,q.rawData.byteOffset,q.rawData.byteLength),oe=s(q.dataType),le=q.rawData.byteLength/oe;if(q.rawData.byteLength%oe!=0)throw new Error("invalid buffer length");if(ae.length!==le)throw new Error("buffer length mismatch");for(let ce=0;ce<le;ce++){const ue=g(ne,q.dataType,ce*oe);ae[ce]=ue}}else{let ae;switch(q.dataType){case p.onnx.TensorProto.DataType.FLOAT:ae=q.floatData;break;case p.onnx.TensorProto.DataType.INT32:case p.onnx.TensorProto.DataType.INT16:case p.onnx.TensorProto.DataType.UINT16:case p.onnx.TensorProto.DataType.INT8:case p.onnx.TensorProto.DataType.UINT8:case p.onnx.TensorProto.DataType.BOOL:ae=q.int32Data;break;case p.onnx.TensorProto.DataType.INT64:ae=q.int64Data;break;case p.onnx.TensorProto.DataType.DOUBLE:ae=q.doubleData;break;case p.onnx.TensorProto.DataType.UINT32:case p.onnx.TensorProto.DataType.UINT64:ae=q.uint64Data;break;default:throw new Error("unspecific error")}if(ae==null)throw new Error("failed to populate data from a tensorproto value");const ne=re.data;if(ne.length!==ae.length)throw new Error("array length mismatch");for(let oe=0;oe<ae.length;oe++){const le=ae[oe];m.default.isLong(le)?ne[oe]=f(le,q.dataType):ne[oe]=le}}return re}static fromData(q,H,te){return new y(H,te,void 0,void 0,q)}static fromOrtTensor(q){if(!q)throw new Error("cannot construct V
1865alue from an empty tensor");const H=z.ProtoUtil.tensorDimsFromORTFormat(q),te=z.ProtoUtil.tensorDataTypeFromProto(q.dataType()),re=new y(H,te);if(te==="string")for(let ae=0;ae<q.stringDataLength();ae++)re.data[ae]=q.stringData(ae);else if(q.rawDataArray()&&typeof q.rawDataLength()=="number"&&q.rawDataLength()>0){const ae=re.data,ne=new DataView(q.rawDataArray().buffer,q.rawDataArray().byteOffset,q.rawDataLength()),oe=s(q.dataType()),le=q.rawDataLength()/oe;if(q.rawDataLength()%oe!=0)throw new Error("invalid buffer length");if(ae.length!==le)throw new Error("buffer length mismatch");for(let ce=0;ce<le;ce++){const ue=g(ne,q.dataType(),ce*oe);ae[ce]=ue}}return re}}function s(R){switch(R){case p.onnx.TensorProto.DataType.UINT8:case p.onnx.TensorProto.DataType.INT8:case p.onnx.TensorProto.DataType.BOOL:return 1;case p.onnx.TensorProto.DataType.UINT16:case p.onnx.TensorProto.DataType.INT16:return 2;case p.onnx.TensorProto.DataType.FLOAT:case p.onnx.TensorProto.DataType.INT32:case p.onnx.TensorProto.DataType.UINT32:return 4;case p.onnx.TensorProto.DataType.INT64:case p.onnx.TensorProto.DataType.DOUBLE:case p.onnx.TensorProto.DataType.UINT64:return 8;default:throw new Error(`cannot calculate sizeof() on type ${p.onnx.TensorProto.DataType[R]}`)}}function e(R){switch(R){case"bool":case"uint8":return Uint8Array;case"int8":return Int8Array;case"int16":return Int16Array;case"uint16":return Uint16Array;case"int32":return Int32Array;case"uint32":return Uint32Array;case"float32":return Float32Array;case"float64":return Float64Array;default:throw new Error("unspecified error")}}function f(R,q){if(q===p.onnx.TensorProto.DataType.INT64||q===A.TensorDataType.INT64){if(R.greaterThanOrEqual(2147483648)||R.lessThan(-2147483648))throw new TypeError("int64 is not supported")}else{if(q!==p.onnx.TensorProto.DataType.UINT32&&q!==A.TensorDataType.UINT32&&q!==p.onnx.TensorProto.DataType.UINT64&&q!==A.TensorDataType.UINT64)throw new TypeError(`not a LONG type: ${p.onnx.TensorProto.DataType[q]}`);if(R.greaterThanOrEqual(4294967296)||R.lessThan(0))throw new TypeError("uint64 is not supported")}return R.toNumber()}function g(R,q,H){switch(q){case p.onnx.TensorProto.DataType.BOOL:case p.onnx.TensorProto.DataType.UINT8:return R.getUint8(H);case p.onnx.TensorProto.DataType.INT8:return R.getInt8(H);case p.onnx.TensorProto.DataType.UINT16:return R.getUint16(H,!0);case p.onnx.TensorProto.DataType.INT16:return R.getInt16(H,!0);case p.onnx.TensorProto.DataType.FLOAT:return R.getFloat32(H,!0);case p.onnx.TensorProto.DataType.INT32:return R.getInt32(H,!0);case p.onnx.TensorProto.DataType.UINT32:return R.getUint32(H,!0);case p.onnx.TensorProto.DataType.INT64:return f(m.default.fromBits(R.getUint32(H,!0),R.getUint32(H+4,!0),!1),q);case p.onnx.TensorProto.DataType.DOUBLE:return R.getFloat64(H,!0);case p.onnx.TensorProto.DataType.UINT64:return f(m.default.fromBits(R.getUint32(H,!0),R.getUint32(H+4,!0),!0),q);default:throw new Error(`cannot read from DataView for type ${p.onnx.TensorProto.DataType[q]}`)}}n.Tensor=y},2517:function(o,n,c){var d=this&&this.__importDefault||function(q){return q&&q.__esMo
vendor: 13,726 bytes, line 1865
1865dule?q:{default:q}};Object.defineProperty(n,"__esModule",{value:!0}),n.decodeUtf8String=n.MAX_CLIP=n.MIN_CLIP=n.PoolConvUtil=n.ReduceUtil=n.SplitUtil=n.MathUtil=n.ShapeUtil=n.LongUtil=n.ProtoUtil=n.GemmUtil=n.arrayCopyHelper=n.BroadcastUtil=n.MatMulUtil=n.ArrayUtil=n.assert=n.checkInputsShape=void 0;const h=c(5686),m=d(c(3720)),p=c(1446),w=c(9162);n.checkInputsShape=function(q,...H){if(!q||q.length!==H.length)return!1;for(let te=0;te<q.length;te++)if(!q[te].dims||q[te].dims.length!==H[te])return!1;return!0},n.assert=function(q,H){if(!q)throw new Error(typeof H=="string"?H:H())},n.ArrayUtil=class{static arraysEqual(q,H){if(q.length!==H.length)return!1;for(let te=0;te<q.length;te++)if(q[te]!==H[te])return!1;return!0}};class z{static preprocessInputShapes(H,te){return[H.length===1?[1,H[0]]:H,te.length===1?[te[0],1]:te]}static postprocessOutputShape(H,te,re){te===1&&H.splice(H.length-2,1),re===1&&H.pop()}static calcMatMulShape(H,te){return H[1]!==te[0]?void 0:[H[0],te[1]]}}n.MatMulUtil=z;class A{static calcShape(H,te,re=!1){const ae=H.length,ne=te.length;if(ae===0)return te;if(ne===0)return H;const oe=Math.max(H.length,te.length),le=new Array(oe);if(re){if(ae<2||ne<2)return;const ce=z.calcMatMulShape([H[ae-2],H[ae-1]],[te[ne-2],te[ne-1]]);if(ce===void 0)return;[le[oe-2],le[oe-1]]=ce}for(let ce=re?3:1;ce<=oe;ce++){const ue=ae-ce<0?1:H[ae-ce],he=ne-ce<0?1:te[ne-ce];if(ue!==he&&ue>1&&he>1)return;le[oe-ce]=Math.max(ue,he)}return le}static index(H,te){const re=new Array(te.length);return A.fillIndex(H,te,re),re}static fillIndex(H,te,re){const ae=H.length-te.length;for(let ne=0;ne<te.length;ne++)re[ne]=H[ae+ne]%te[ne]}static calc(H,te,re,ae,ne){const oe=A.calcShape(H.dims,te.dims);if(oe){if(ae&&!e.areEqual(oe,H.dims))return;const le=e.size(oe),ce=ae?H:new w.Tensor(oe,ne||H.type);if(oe.length===0)ce.set([],re(H.get([]),te.get([])));else{const ue=new Array(oe.length),he=new Array(H.dims.length),ge=new Array(te.dims.length);let Oe,$e=0,Pe=0,Le=!1,me=!1;H.dims.length===0&&($e=H.get([]),Le=!0),te.dims.length===0&&(Pe=te.get([]),me=!0);for(let we=0;we<le;we++){Oe=we;for(let Se=oe.length-1;Se>=0;Se--)ue[Se]=Oe%oe[Se],Oe=Math.floor(Oe/oe[Se]);Le||(A.fillIndex(ue,H.dims,he),$e=H.get(he)),me||(A.fillIndex(ue,te.dims,ge),Pe=te.get(ge)),ce.set(ue,re($e,Pe))}}return ce}}static isValidBroadcast(H,te){const re=H.length,ae=te.length;if(re>ae)return!1;for(let ne=1;ne<=re;ne++)if(H[re-ne]!==1&&H[re-ne]!==te[ae-ne])return!1;return!0}static getBroadcastDims(H,te){const re=H.length,ae=[];for(let ne=0;ne<re;ne++){const oe=re-1-ne,le=H[oe]||1;(te[te.length-1-ne]||1)>1&&le===1&&ae.unshift(oe)}return ae}}n.BroadcastUtil=A,n.arrayCopyHelper=function(q,H,te,re,ae){if(re<0||re>=H.length)throw new Error("sourceIndex out of bounds");if(te<0||te>=q.length)throw new Error("targetIndex out of bounds");if(re+ae>H.length)throw new Error("source indices to be copied are outside bounds");if(te+ae>q.length)throw new Error("target array is too small to hold result");for(let ne=0;ne<ae;ne++)q[te+ne]=H[re+ne]},n.GemmUtil=class{static getShapeOfGemmResult(q,H,te,re,ae){if(q.length!==2||te.length!==2)throw new Error("shape need to be of size 2");let ne,oe,le;H?(ne=q[1],oe=q[0]):(ne=q[0],oe=q[1]);let ce=-1;if(re?(le=te[0],ce=1):(le=te[1],ce=0),te[ce]!==oe)throw new Error("dimension mismatch");if(ne<=0||le<=0||oe<=0)throw new Error("invalid shape specified");if(ae&&!A.isValidBroadcast(ae,[ne,le]))throw new Error("gemm: invalid bias shape for broadcast");return[ne,le,oe]}};class y{static tensorDataTypeFromProto(H){switch(H){case p.onnx.TensorProto.DataType.INT8:return"int8";case p.onnx.TensorProto.DataType.UINT8:return"uint8";case p.onnx.TensorProto.DataType.BOOL:return"bool";case p.onnx.TensorProto.DataType.INT16:return"int16";case p.onnx.TensorProto.DataType.UINT16:return"uint16";case p.onnx.TensorProto.DataType.INT32:return"int32";case p.onnx.TensorProto.DataType.UINT32:return"uint32";case p.onnx.TensorProto.DataType.FLOAT:return"float32";case p.onnx.TensorProto.DataType.DOUBLE:return"float64";case p.onnx.TensorProto.DataType.STRING:return"string";case p.onnx.TensorProto.DataType.INT64:return"int32";case p.onnx.TensorProto.DataType.UINT64:return"uint32";default:throw new Error(`unsupported data type: ${p.onnx.TensorProto.DataType[H]}`)}}static tensorDataTypeStringToEnum(H){switch(H){case"int8":return p.onnx.TensorProto.DataType.INT8;case"uint8":return p.onnx.TensorProto.DataType.UINT8;case"bool":return p.onnx.TensorProto.DataType.BOOL;case"int16":return p.onnx.TensorProto.DataType.INT16;case"uint16":return p.onnx.TensorProto.DataType.UINT16;case"int32":return p.onnx.TensorProto.DataType.INT32;case"uint32":return p.onnx.TensorProto.DataType.UINT32;case"float32":return p.onnx.TensorProto.DataType.FLOAT;case"float64":return p.onnx.TensorProto.DataType.DOUBLE;case"string":return p.onnx.TensorProto.DataType.STRING;case"int64":return p.onnx.TensorProto.DataType.INT64;case"uint64":return p.onnx.TensorProto.DataType.UINT64;default:throw new Error(`unsupported data type: ${H}`)}}static tensorDimsFromProto(H){return H.map((te=>m.default.isLong(te)?te.toNumber():te))}static tensorValueTypeFromProto(H){return{tensorType:y.tensorDataTypeFromProto(H.elemType),shape:{dims:y.tensorDimsFromProto(H.shape.dim.map((te=>te.dimValue)))}}}static tensorDimsFromORTFormat(H){const te=[];for(let re=0;re<H.dimsLength();re++)te.push(s.longToNumber(H.dims(re)));return te}static tensorAttributesFromORTFormat(H){const te=[];for(let re=0;re<H.attributesLength();re++)te.push(H.attributes(re));return te}}n.ProtoUtil=y;class s{static longToNumber(H,te){return m.default.isLong(H)?H.toNumber():H instanceof h.flatbuffers.Long?m.default.fromValue({low:H.low,high:H.high,unsigned:te!=null&&te}).toNumber():H}static isLong(H){return m.default.isLong(H)||H instanceof h.flatbuffers.Long}}n.LongUtil=s;class e{static size(H){return e.getSizeFromDimensionRange(H,0,H.length)}static sizeFromDimension(H,te){if(te<0||te>H.length)throw new Error(`invalid dimension of ${te} for sizeFromDimension as Tensor has ${H.length} dimensions.`);return e.getSizeFromDimensionRange(H,te,H.length)}static sizeToDimension(H,te){if(te<0||te>H.length)throw new Error(`invalid dimension of ${te} for sizeToDimension as Tensor has ${H.length} dimensions.`);return e.getSizeFromDimensionRange(H,0,te)}static getSizeFromDimensionRange(H,te,re){let ae=1;for(let ne=te;ne<re;ne++){if(H[ne]<=0)throw new Error("cannot get valid size from specified dimension range. Most likely the range contains 0 or negative values in them.");ae*=H[ne]}return ae}static computeStrides(H){const te=H.length;if(te===0)return[];if(te===1)return[1];const re=new Array(te);re[te-1]=1,re[te-2]=H[te-1];for(let ae=te-3;ae>=0;--ae)re[ae]=re[ae+1]*H[ae+1];return re}static transpose(H){return H.slice().reverse()}static indicesToOffset(H,te,re){re===void 0&&(re=H.length);let ae=0;for(let ne=0;ne<re;++ne)ae+=te[ne]*H[ne];return ae}static offsetToIndices(H,te){const re=te.length;if(re===0)return[];if(re===1)return[H*te[0]];const ae=new Array(te.length);for(let ne=0;ne<ae.length-1;++ne)ae[ne]=Math.floor(H/te[ne]),H-=ae[ne]*te[ne];return ae[ae.length-1]=H,ae}static normalizeAxis(H,te){if(H<-te&&H>=te)throw new Error("unsupported axis for this operation.");return H<0?H+te:H}static normalizeAxes(H,te){return H.map((re=>this.normalizeAxis(re,te)))}static incrementIndex(H,te,re){if(te.length===0||H.length===0)throw new Error("Index incrementing unsupported for scalar Tensor");if(re===void 0)re=te.length;else if(re<=0||re>te.length)throw new Error("Incorrect axis to increment on");for(let ae=re-1;ae>=0&&(H[ae]++,!(H[ae]<te[ae]));--ae)H[ae]=0}static calculateReshapedDims(H,te){if(te.length===0){if(H.length===0||e.size(H)===1)return[];throw new Error("cannot reshape to a scalar Tensor")}const re=te.length,ae=new Array(re);let ne=-1,oe=1;for(let ce=0;ce<re;ce++){if(te[ce]<-1)throw new Error("a dimension in shape hints cannot be less than -1");if(te[ce]===-1){if(ne!==-1)throw new Error("at most one dimension in shape hints can be -1");ne=ce}else{if(te[ce]===0){if(ce>=H.length)throw new Error("the dimension with value zero exceeds the dimension size of the input tensor");ae[ce]=H[ce]}else ae[ce]=te[ce];oe*=ae[ce]}}const le=e.size(H);if(ne!==-1){if(le%oe!=0)throw new Error(`the input tensor cannot be reshaped to the requested shape. Input shape: [${H}] Output shape: [${te}]`);ae[ne]=le/oe}else if(oe!==le)throw new Error("reshapedDims and originalDims don't have matching sizes");return ae}static sortBasedOnPerm(H,te){return te?te.map((re=>H[re])):H.slice().reverse()}static padShape(H,te){const re=H.length;return H.map(((ae,ne)=>ae+te[ne]+te[ne+re]))}static areEqual(H,te){return H.length===te.length&&H.every(((re,ae)=>re===te[ae]))}static validateDimsAndCalcSize(H){if(H.length>6)throw new TypeError("Only rank 0 to 6 is supported for tensor shape.");let te=1;for(const re of H){if(!Number.isInteger(re))throw new TypeError(`Invalid shape: ${re} is not an integer`);if(re<0||re>2147483647)throw new TypeError(`Invalid shape: length ${re} is not allowed`);te*=re}return te}static flattenShape(H,te){te<0&&(te+=H.length);const re=H.reduce(((ne,oe)=>ne*oe),1),ae=H.slice(te).reduce(((ne,oe)=>ne*oe),1);return[re/ae,ae]}static squeezeShape(H,te){const re=new Array;te=e.normalizeAxes(te,H.length);for(let ae=0;ae<H.length;ae++){const ne=te.indexOf(ae)>=0;if(ne&&H[ae]!==1)throw new Error("squeeze an axis of size different than 1");(te.length===0&&H[ae]>1||te.length>0&&!ne)&&re.push(H[ae])}return re}static unsqueezeShape(H,te){const re=new Array(H.length+te.length);re.fill(0);for(let ne=0;ne<te.length;ne++){const oe=e.normalizeAxis(te[ne],re.length);if(oe>=re.length)throw new Error("'axes' has an out of range axis");if(re[oe]!==0)throw new Error("'axes' has a duplicate axis");re[oe]=1}let ae=0;for(let ne=0;ne<re.length;ne++)re[ne]===0&&(re[ne]=H[ae++]);if(ae!==H.length)throw new Error("the unsqueezed dimension could not be established");return re}}n.ShapeUtil=e,n.MathUtil=class{static sqr(q,H,te,re,ae){if(re<0||re>=H.length)throw new Error("sourceIndex out of bounds");if(te<0||te>=q.length)throw new Error("targetIndex out of bounds");if(re+ae>H.length)throw new Error("source indices to be copied are outside bounds");if(te+ae>q.length)throw new Error("target array is too small to hold result");for(let ne=0;ne<ae;ne++)q[te+ne]+=Math.pow(H[re+ne],2)}static axpy(q,H,te,re,ae,ne){if(re<0||re>=H.length)throw new Error("sourceIndex out of bounds");if(te<0||te>=q.length)throw new Error("targetIndex out of bounds");if(re+ae>H.length)throw new Error("source indices to be copied are outside bounds");if(te+ae>q.length)throw new Error("target array is too small to hold result");for(let oe=0;oe<ae;oe++)q[te+oe]+=ne*H[re+oe]}static powx(q,H,te,re,ae,ne){if(re<0||re>=H.length)throw new Error("sourceIndex out of bounds");if(te<0||te>=q.length)throw new Error("targetIndex out of bounds");if(re+ae>H.length)throw new Error("source indices to be copied are outside bounds");if(te+ae>q.length)throw new Error("target array is too small to hold result");for(let oe=0;oe<ae;oe++)q[te+oe]=Math.pow(H[re+oe],ne)}static mul(q,H,te,re,ae){if(re<0||re>=H.length)throw new Error("sourceIndex out of bounds");if(te<0||te>=q.length)throw new Error("targetIndex out of bounds");if(re+ae>H.length)throw new Error("source indices to be copied are outside bounds");if(te+ae>q.length)throw new Error("target array is too small to hold result");for(let ne=0;ne<ae;ne++)q[te+ne]=H[re+ne]*q[te+ne]}};class f{static splitShape(H,te,re,ae){if(re.length===0){if(!ae)throw new Error("need to know number of outputs when the 'split' attribute is not specified");f.determineSplit(H[te],ae,re)}const ne=[],oe=[0];for(let le=0;le<re.length;++le){le!==0&&oe.push(oe[le-1]+re[le-1]);const ce=H.slice();ce[te]=re[le],ne.push(ce)}return[ne,oe]}static determineSplit(H,te,re){if(H%te!=0)throw new Error("cannot split tensor to equal sized parts");for(let ae=0;ae<te;++ae)re.push(H/te)}}n.SplitUtil=f;class g{static calcReduce(H,te,re,ae,ne){const oe=H.dims.slice(0);te.length===0&&oe.forEach((($e,Pe)=>te.push(Pe)));const le=g.calcReduceShape(oe,te,!0),ce=e.size(le),ue=new w.Tensor(le,H.type),he=e.computeStrides(le),ge=e.computeStrides(oe),Oe=new Array(oe.length);for(let $e=0;$e<ce;$e++){const Pe=e.offsetToIndices($e,he);A.fillIndex(Pe,oe,Oe),ue.set(Pe,g.calcReduceByAxis(H.numberData,te,oe,0,e.indicesToOffset(Oe,ge),ae,ne))}return re?ue:new w.Tensor(g.calcReduceShape(oe,te,re),ue.type,void 0,void 0,ue.data,ue.dataId)}static calcReduceByAxis(H,te,re,ae,ne,oe,le){let ce=0;if(ae>=te.length)return oe(H[ne]);const ue=te[ae],he=ue>=re.length?1:e.size(re.slice(ue+1));for(let ge=0;ge<re[ue];ge++)ce=ge===0?g.calcReduceByAxis(H,te,re,ae+1,ne,oe,le):le(ce,g.calcReduceByAxis(H,te,re,ae+1,ne,oe,le)),ne+=he;return ce}static calcReduceShape(H,te,re){const ae=H.slice();for(let ne=0;ne<te.length;ne++)ae[te[ne]]=re?1:0;return ae.filter((ne=>ne!==0))}}n.ReduceUtil=g;class R{static adjustPoolAttributes(H,te,re,ae,ne,oe){if(!H&&re.length!==te.length-2)throw new Error("length of specified kernel shapes should be 2 less than length of input dimensions");if(H)for(let le=0;le<te.length-2;le++)le>=re.length?re.push(te[le+2]):re[le]=te[le+2];for(let le=0;le<re.length;le++)if(le<ae.length){if(ae[le]<0)throw new Error("strides should be greater than or equal to 1")}else ae.push(1);for(let le=0;le<re.length;le++)if(le<ne.length){if(ne[le]<0)throw new Error("dilations should be greater than or equal to 1")}else ne.push(1);for(let le=0;le<2*re.length;le++)if(le<oe.length){if(oe[le]<0)throw new Error("pad should be greater than or equal to 1")}else oe.push(0);for(let le=0;le<re.length;le++){if(re[le]<=0)throw new Error("kernel shapes need to be greater than 0");if(oe[le]>
1865=re[le]||oe[le+re.length]>=re[le])throw new Error("pads should be smaller than kernel")}}static adjustPadsBasedOnAutoPad(H,te,re,ae,ne,oe){if(oe){if(ne.length!==2*(H.length-2))throw new Error("length of pads should be twice the length of data dimensions");if(te.length!==H.length-2)throw new Error("length of strides should be the length of data dimensions");if(ae.length!==H.length-2)throw new Error("length of kernel shapes should be the length of data dimensions");for(let le=0;le<H.length-2;le++)R.adjustPadAndReturnShape(H[le+2],te[le],re[le],ae[le],ne,le,le+H.length-2,oe)}}static computePoolOutputShape(H,te,re,ae,ne,oe,le){if(te.length<=0)throw new Error("input shape must be of size greater than 0");const ce=[te[0],te[1]];return R.computeShapeHelper(H,te,ce,re,ae,ne,oe,le),ce}static computeConvOutputShape(H,te,re,ae,ne,oe,le){if(H.length<=0||te.length<=0)throw new Error("invalid input tensor dims or invalid filter tensor dims");const ce=[H[0],te[0]];return R.computeShapeHelper(!1,H,ce,re,ae,ne,oe,le),ce}static computeShapeHelper(H,te,re,ae,ne,oe,le,ce){if(H)for(let ue=0;ue<te.length-2;ue++)re.push(1);else for(let ue=0;ue<te.length-2;ue++)re.push(R.adjustPadAndReturnShape(te[ue+2],ae[ue],ne[ue],oe[ue],le,ue,ue+te.length-2,ce))}static adjustPadAndReturnShape(H,te,re,ae,ne,oe,le,ce){const ue=re*(ae-1)+1;if(!ce||ce==="NOTSET")return Math.floor((H+ne[oe]+ne[le]-ue)/te+1);switch(ce){case"VALID":return ne[oe]=0,ne[le]=0,Math.floor((H-ue)/te+1);case"SAME_LOWER":case"SAME_UPPER":if(re!==1)throw new Error("Dilation not supported for SAME_UPPER or SAME_LOWER");{const he=((H+te-1)/te-1)*te+ae-H;return ne[oe]=Math.floor(ce==="SAME_LOWER"?(he+1)/2:he/2),ne[le]=he-ne[oe],Math.floor((H+he-ae)/te+1)}default:throw new Error("Unsupported AutoPad type")}}}n.PoolConvUtil=R,n.MIN_CLIP=-34028234663852886e22,n.MAX_CLIP=34028234663852886e22,n.decodeUtf8String=function(q){return new TextDecoder().decode(q)}},7967:(o,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.iterateExtraOptions=void 0,n.iterateExtraOptions=(c,d,h,m)=>{if(typeof c=="object"&&c!==null){if(h.has(c))throw new Error("Circular reference in options");h.add(c)}Object.entries(c).forEach((([p,w])=>{const z=d?d+p:p;if(typeof w=="object")(0,n.iterateExtraOptions)(w,z+".",h,m);else if(typeof w=="string"||typeof w=="number")m(z,w.toString());else{if(typeof w!="boolean")throw new Error("Can't handle extra config type: "+typeof w);m(z,w?"1":"0")}}))}},2157:function(o,n,c){var d,h=this&&this.__createBinding||(Object.create?function(he,ge,Oe,$e){$e===void 0&&($e=Oe);var Pe=Object.getOwnPropertyDescriptor(ge,Oe);Pe&&!("get"in Pe?!ge.__esModule:Pe.writable||Pe.configurable)||(Pe={enumerable:!0,get:function(){return ge[Oe]}}),Object.defineProperty(he,$e,Pe)}:function(he,ge,Oe,$e){$e===void 0&&($e=Oe),he[$e]=ge[Oe]}),m=this&&this.__setModuleDefault||(Object.create?function(he,ge){Object.defineProperty(he,"default",{enumerable:!0,value:ge})}:function(he,ge){he.default=ge}),p=this&&this.__importStar||function(he){if(he&&he.__esModule)return he;var ge={};if(he!=null)for(var Oe in he)Oe!=="default"&&Object.prototype.hasOwnProperty.call(he,Oe)&&h(ge,he,Oe);return m(ge,he),ge};Object.defineProperty(n,"__esModule",{value:!0}),n.endProfiling=n.run=n.releaseSession=n.createSession=n.createSessionFinalize=n.createSessionAllocate=n.initOrt=n.initWasm=void 0;const w=c(1670),z=p(c(349)),A=c(6361),y=()=>!!w.env.wasm.proxy&&typeof document<"u";let s,e,f,g=!1,R=!1,q=!1;const H=[],te=[],re=[],ae=[],ne=[],oe=[],le=()=>{if(g||!R||q||!s)throw new Error("worker not ready")},ce=he=>{switch(he.data.type){case"init-wasm":g=!1,he.data.err?(q=!0,e[1](he.data.err)):(R=!0,e[0]());break;case"init-ort":he.data.err?f[1](he.data.err):f[0]();break;case"create_allocate":he.data.err?H.shift()[1](he.data.err):H.shift()[0](he.data.out);break;case"create_finalize":he.data.err?te.shift()[1](he.data.err):te.shift()[0](he.data.out);break;case"create":he.data.err?re.shift()[1](he.data.err):re.shift()[0](he.data.out);break;case"release":he.data.err?ae.shift()[1](he.data.err):ae.shift()[0]();break;case"run":he.data.err?ne.shift()[1](he.data.err):ne.shift()[0](he.data.out);break;case"end-profiling":he.data.err?oe.shift()[1](he.data.err):oe.shift()[0]()}},ue=typeof document<"u"?(d=document?.currentScript)===null||d===void 0?void 0:d.src:void 0;n.initWasm=async()=>
1865{if(y()){if(R)return;if(g)throw new Error("multiple calls to 'initWasm()' detected.");if(q)throw new Error("previous call to 'initWasm()' failed.");return g=!0,w.env.wasm.wasmPaths===void 0&&ue&&ue.indexOf("blob:")!==0&&(w.env.wasm.wasmPaths=ue.substr(0,+ue.lastIndexOf("/")+1)),new Promise(((he,ge)=>{s?.terminate(),s=c(9710).Z(),s.onmessage=ce,e=[he,ge];const Oe={type:"init-wasm",in:w.env.wasm};s.postMessage(Oe)}))}return(0,A.initializeWebAssembly)(w.env.wasm)},n.initOrt=async(he,ge)=>{if(y())return le(),new Promise(((Oe,$e)=>{f=[Oe,$e];const Pe={type:"init-ort",in:{numThreads:he,loggingLevel:ge}};s.postMessage(Pe)}));z.initOrt(he,ge)},n.createSessionAllocate=async he=>y()?(le(),new Promise(((ge,Oe)=>{H.push([ge,Oe]);const $e={type:"create_allocate",in:{model:he}};s.postMessage($e,[he.buffer])}))):z.createSessionAllocate(he),n.createSessionFinalize=async(he,ge)=>y()?(le(),new Promise(((Oe,$e)=>{te.push([Oe,$e]);const Pe={type:"create_finalize",in:{modeldata:he,options:ge}};s.postMessage(Pe)}))):z.createSessionFinalize(he,ge),n.createSession=async(he,ge)=>y()?(le(),new Promise(((Oe,$e)=>{re.push([Oe,$e]);const Pe={type:"create",in:{model:he,options:ge}};s.postMessage(Pe,[he.buffer])}))):z.createSession(he,ge),n.releaseSession=async he=>{if(y())return le(),new Promise(((ge,Oe)=>{ae.push([ge,Oe]);const $e={type:"release",in:he};s.postMessage($e)}));z.releaseSession(he)},n.run=async(he,ge,Oe,$e,Pe)=>y()?(le(),new Promise(((Le,me)=>{ne.push([Le,me]);const we={type:"run",in:{sessionId:he,inputIndices:ge,inputs:Oe,outputIndices:$e,options:Pe}};s.postMessage(we,z.extractTransferableBuffers(Oe))}))):z.run(he,ge,Oe,$e,Pe),n.endProfiling=async he=>{if(y())return le(),new Promise(((ge,Oe)=>{oe.push([ge,Oe]);const $e={type:"end-profiling",in:he};s.postMessage($e)}));z.endProfiling(he)}},586:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.setRunOptions=void 0;const d=c(7967),h=c(4983),m=c(6361);n.setRunOptions=p=>{const w=(0,m.getInstance)();let z=0;const A=[],y=p||{};try{if(p?.logSeverityLevel===void 0)y.logSeverityLevel=2;else if(typeof p.logSeverityLevel!="number"||!Number.isInteger(p.logSeverityLevel)||p.logSeverityLevel<0||p.logSeverityLevel>4)throw new Error(`log serverity level is not valid: ${p.logSeverityLevel}`);if(p?.logVerbosityLevel===void 0)y.logVerbosityLevel=0;else if(typeof p.logVerbosityLevel!="number"||!Number.isInteger(p.logVerbosityLevel))throw new Error(`log verbosity level is not valid: ${p.logVerbosityLevel}`);p?.terminate===void 0&&(y.terminate=!1);let s=0;if(p?.tag!==void 0&&(s=(0,h.allocWasmString)(p.tag,A)),z=w._OrtCreateRunOptions(y.logSeverityLevel,y.logVerbosityLevel,!!y.terminate,s),z===0)throw new Error("Can't create run options");return p?.extra!==void 0&&(0,d.iterateExtraOptions)(p.extra,"",new WeakSet,((e,f)=>{const g=(0,h.allocWasmString)(e,A),R=(0,h.allocWasmString)(f,A);if(w._OrtAddRunConfigEntry(z,g,R)!==0)throw new Error(`Can't set a run config entry: ${e} - ${f}`)})),[z,A]}catch(s){throw z!==0&&w._OrtReleaseRunOptions(z),A.forEach(w._free),s}}},2306:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.OnnxruntimeWebAssemblySessionHandler=void 0;const d=c(2806),h=c(1670),m=c(2850),p=c(2157);let w;n.OnnxruntimeWebAssemblySessionHandler=class{async createSessionAllocate(z){const A=await fetch(z),y=await A.arrayBuffer();return(0,p.createSessionAllocate)(new Uint8Array(y))}async loadModel(z,A){if(w||(await(0,p.initOrt)(h.env.wasm.numThreads,(y=>{switch(y){case"verbose":return 0;case"info":return 1;case"warning":return 2;case"error":return 3;case"fatal":return 4;default:throw new Error(`unsupported logging level: ${y}`)}})(h.env.logLevel)),w=!0),typeof z=="string")if(typeof fetch>"u"){const y=await(0,m.promisify)(d.readFile)(z);[this.sessionId,this.inputNames,this.outputNames]=await(0,p.createSession)(y,A)}else{const y=await this.createSessionAllocate(z);[this.sessionId,this.inputNames,this.outputNames]=await(0,p.createSessionFinalize)(y,A)}else[this.sessionId,this.inputNames,this.outputNames]=await(0,p.createSession)(z,A)}async dispose(){return(0,p.releaseSession)(this.sessionId)}async run(z,A,y){const s=[],e=[];Object.entries(z).forEach((q=>{const H=q[0],te=q[1],re=this.inputNames.indexOf(H);if(re===-1)throw new Error(`invalid input '${H}'`);s.push(te),e.push(re)}));const f=[];Object.entries(A).forEach((q=>{const H=q[0],te=this.outputNames.indexOf(H);if(te===-1)throw new Error(`invalid output '${H}'`);f.push(te)}));const g=await(0,p.run)(this.sessionId,e,s.map((q=>[q.type,q.dims,q.data])),f,y),R={};for(let q=0;q<g.length;q++)R[this.outputNames[f[q]]]=new h.Tensor(g[q][0],g[q][2],g[q][1]);return R}startProfiling(){}endProfiling(){(0,p.endProfiling)(this.sessionId)}}},4919:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.setSessionOptions=void 0;const d=c(7967),h=c(4983),m=c(6361);n.setSessionOptions=p=>{const w=(0,m.getInstance)();let z=0;const A=[],y=p||{};(s=>{s.extra||(s.extra={}),s.extra.session||(s.extra.session={});const e=s.extra.session;e.use_ort_model_bytes_directly||(e.use_ort_model_bytes_directly="1")})(y);try{p?.graphOptimizationLevel===void 0&&(y.graphOptimizationLevel="all");const s=(g=>{switch(g){case"disabled":return 0;case"basic":return 1;case"extended":return 2;case"all":return 99;default:throw new Error(`unsupported graph optimization level: ${g}`)}})(y.graphOptimizationLevel);p?.enableCpuMemArena===void 0&&(y.enableCpuMemArena=!0),p?.enableMemPattern===void 0&&(y.enableMemPattern=!0),p?.executionMode===void 0&&(y.executionMode="sequential");const e=(g=>{switch(g){case"sequential":return 0;case"parallel":return 1;default:throw new Error(`unsupported execution mode: ${g}`)}})(y.executionMode);let f=0;if(p?.logId!==void 0&&(f=(0,h.allocWasmString)(p.logId,A)),p?.logSeverityLevel===void 0)y.logSeverityLevel=2;else if(typeof p.logSeverityLevel!="number"||!Number.isInteger(p.logSeverityLevel)||p.logSeverityLevel<0||p.logSeverityLevel>
18654)throw new Error(`log serverity level is not valid: ${p.logSeverityLevel}`);if(p?.logVerbosityLevel===void 0)y.logVerbosityLevel=0;else if(typeof p.logVerbosityLevel!="number"||!Number.isInteger(p.logVerbosityLevel))throw new Error(`log verbosity level is not valid: ${p.logVerbosityLevel}`);if(p?.enableProfiling===void 0&&(y.enableProfiling=!1),z=w._OrtCreateSessionOptions(s,!!y.enableCpuMemArena,!!y.enableMemPattern,e,!!y.enableProfiling,0,f,y.logSeverityLevel,y.logVerbosityLevel),z===0)throw new Error("Can't create session options");return p?.executionProviders&&((g,R,q)=>{for(const H of R){let te=typeof H=="string"?H:H.name;switch(te){case"xnnpack":te="XNNPACK";break;case"wasm":case"cpu":continue;default:throw new Error(`not supported EP: ${te}`)}const re=(0,h.allocWasmString)(te,q);if((0,m.getInstance)()._OrtAppendExecutionProvider(g,re)!==0)throw new Error(`Can't append execution provider: ${te}`)}})(z,p.executionProviders,A),p?.extra!==void 0&&(0,d.iterateExtraOptions)(p.extra,"",new WeakSet,((g,R)=>{const q=(0,h.allocWasmString)(g,A),H=(0,h.allocWasmString)(R,A);if(w._OrtAddSessionConfigEntry(z,q,H)!==0)throw new Error(`Can't set a session config entry: ${g} - ${R}`)})),[z,A]}catch(s){throw z!==0&&w._OrtReleaseSessionOptions(z),A.forEach(w._free),s}}},4983:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.allocWasmString=void 0;const d=c(6361);n.allocWasmString=(h,m)=>{const p=(0,d.getInstance)(),w=p.lengthBytesUTF8(h)+1,z=p._malloc(w);return p.stringToUTF8(h,z,w),m.push(z),z}},349:(o,n,c)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.extractTransferableBuffers=n.endProfiling=n.run=n.releaseSession=n.createSession=n.createSessionFinalize=n.createSessionAllocate=n.initOrt=void 0;const d=c(586),h=c(4919),m=c(4983),p=c(6361);n.initOrt=(s,e)=>{const f=(0,p.getInstance)()._OrtInit(s,e);if(f!==0)throw new Error(`Can't initialize onnxruntime. error code = ${f}`)};const w=new Map;n.createSessionAllocate=s=>{const e=(0,p.getInstance)(),f=e._malloc(s.byteLength);return e.HEAPU8.set(s,f),[f,s.byteLength]},n.createSessionFinalize=(s,e)=>{const f=(0,p.getInstance)();let g=0,R=0,q=[];try{if([R,q]=(0,h.setSessionOptions)(e),g=f._OrtCreateSession(s[0],s[1],R),g===0)throw new Error("Can't create a session")}finally{f._free(s[0]),f._OrtReleaseSessionOptions(R),q.forEach(f._free)}const H=f._OrtGetInputCount(g),te=f._OrtGetOutputCount(g),re=[],ae=[],ne=[],oe=[];for(let le=0;le<H;le++){const ce=f._OrtGetInputName(g,le);if(ce===0)throw new Error("Can't get an input name");ae.push(ce),re.push(f.UTF8ToString(ce))}for(let le=0;le<te;le++){const ce=f._OrtGetOutputName(g,le);if(ce===0)throw new Error("Can't get an output name");oe.push(ce),ne.push(f.UTF8ToString(ce))}return w.set(g,[g,ae,oe]),[g,re,ne]},n.createSession=(s,e)=>{const f=(0,n.createSessionAllocate)(s);return(0,n.createSessionFinalize)(f,e)},n.releaseSession=s=>{const e=(0,p.getInstance)(),f=w.get(s);if(!f)throw new Error("invalid session id");const g=f[0],R=f[1],q=f[2];R.forEach(e._OrtFree),q.forEach(e._OrtFree),e._OrtReleaseSession(g),w.delete(s)};const z=s=>{switch(s){case"int8":return 3;case"uint8":return 2;case"bool":return 9;case"int16":return 5;case"uint16":return 4;case"int32":return 6;case"uint32":return 12;case"float32":return 1;case"float64":return 11;case"string":return 8;case"int64":return 7;case"uint64":return 13;default:throw new Error(`unsupported data type: ${s}`)}},A=s=>{switch(s){case 3:return"int8";case 2:return"uint8";case 9:return"bool";case 5:return"int16";case 4:return"uint16";case 6:return"int32";case 12:return"uint32";case 1:return"float32";case 11:return"float64";case 8:return"string";case 7:return"int64";case 13:return"uint64";default:throw new Error(`unsupported data type: ${s}`)}},y=s=>{switch(s){case"float32":return Float32Array;case"uint8":case"bool":return Uint8Array;case"int8":return Int8Array;case"uint16":return Uint16Array;case"int16":return Int16Array;case"int32":return Int32Array;case"float64":return Float64Array;case"uint32":return Uint32Array;case"int64":return BigInt64Array;case"uint64":return BigUint64Array;default:throw new Error(`unsupported type: ${s}`)}};n.run=(s,e,f,g,R)=>{const q=(0,p.getInstance)(),H=w.get(s);if(!H)throw new Error("invalid session id");const te=H[0],re=H[1],ae=H[2],ne=e.length,oe=g.length;let le=0,ce=[];const ue=[],he=[];try{[le,ce]=(0,d.setRunOptions)(R);for(let me=0;me<ne;me++){const we=f[me][0],Se=f[me][1],ye=f[me][2];let ke,Ae;if(Array.isArray(ye)){Ae=4*ye.length,ke=q._malloc(Ae),he.push(ke);let Ge=ke/4;for(let Je=0;Je<ye.length;Je++){if(typeof ye[Je]!="string")throw new TypeError(`tensor data at index ${Je} is not a string`);q.HEAPU32[Ge++]=(0,m.allocWasmString)(ye[Je],he)}}else Ae=ye.byteLength,ke=q._malloc(Ae),he.push(ke),q.HEAPU8.set(new Uint8Array(ye.buffer,ye.byteOffset,Ae),ke);const Ie=q.stackSave(),qe=q.stackAlloc(4*Se.length);try{let Ge=qe/4;Se.forEach((Te=>q.HEAP32[Ge++]=Te));const Je=q._OrtCreateTensor(z(we),ke,Ae,qe,Se.length);if(Je===0)throw new Error("Can't create a tensor");ue.push(Je)}finally{q.stackRestore(Ie)}}const ge=q.stackSave(),Oe=q.stackAlloc(4*ne),$e=q.stackAlloc(4*ne),Pe=q.stackAlloc(4*oe),Le=q.stackAlloc(4*oe);try{let me=Oe/4,we=$e/4,Se=Pe/4,ye=Le/4;for(let Ie=0;Ie<ne;Ie++)q.HEAPU32[me++]=ue[Ie],q.HEAPU32[we++]=re[e[Ie]];for(let Ie=0;Ie<oe;Ie++)q.HEAPU32[Se++]=0,q.HEAPU32[ye++]=ae[g[Ie]];let ke=q._OrtRun(te,$e,Oe,ne,Le,oe,Pe,le);const Ae=[];
1865if(ke===0)for(let Ie=0;Ie<oe;Ie++){const qe=q.HEAPU32[Pe/4+Ie],Ge=q.stackSave(),Je=q.stackAlloc(16);let Te,ve=0;try{if(ke=q._OrtGetTensorData(qe,Je,Je+4,Je+8,Je+12),ke!==0)throw new Error(`Can't access output tensor data. error code = ${ke}`);let et=Je/4;const mt=q.HEAPU32[et++];ve=q.HEAPU32[et++];const ht=q.HEAPU32[et++],ct=q.HEAPU32[et++],Ue=[];for(let bt=0;bt<ct;bt++)Ue.push(q.HEAPU32[ht/4+bt]);q._OrtFree(ht);const ot=Ue.length===0?1:Ue.reduce(((bt,At)=>bt*At));if(Te=A(mt),Te==="string"){const bt=[];let At=ve/4;for(let ft=0;ft<ot;ft++){const be=q.HEAPU32[At++],Et=ft===ot-1?void 0:q.HEAPU32[At]-be;bt.push(q.UTF8ToString(be,Et))}Ae.push([Te,Ue,bt])}else{const bt=new(y(Te))(ot);new Uint8Array(bt.buffer,bt.byteOffset,bt.byteLength).set(q.HEAPU8.subarray(ve,ve+bt.byteLength)),Ae.push([Te,Ue,bt])}}finally{q.stackRestore(Ge),Te==="string"&&ve&&q._free(ve),q._OrtReleaseTensor(qe)}}if(ke===0)return Ae;throw new Error(`failed to call OrtRun(). error code = ${ke}.`)}finally{q.stackRestore(ge)}}finally{ue.forEach(q._OrtReleaseTensor),he.forEach(q._free),q._OrtReleaseRunOptions(le),ce.forEach(q._free)}},n.endProfiling=s=>{const e=(0,p.getInstance)(),f=w.get(s);if(!f)throw new Error("invalid session id");const g=f[0],R=e._OrtEndProfiling(g);if(R===0)throw new Error("Can't get an profile file name");e._OrtFree(R)},n.extractTransferableBuffers=s=>{const e=[];for(const f of s){const g=f[2];!Array.isArray(g)&&g.buffer&&e.push(g.buffer)}return e}},6361:function(o,n,c){var d=this&&this.__createBinding||(Object.create?function(R,q,H,te){te===void 0&&(te=H);var re=Object.getOwnPropertyDescriptor(q,H);re&&!("get"in re?!q.__esModule:re.writable||re.configurable)||(re={enumerable:!0,get:function(){return q[H]}}),Object.defineProperty(R,te,re)}:function(R,q,H,te){te===void 0&&(te=H),R[te]=q[H]}),h=this&&this.__setModuleDefault||(Object.create?function(R,q){Object.defineProperty(R,"default",{enumerable:!0,value:q})}:function(R,q){R.default=q}),m=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var q={};if(R!=null)for(var H in R)H!=="default"&&Object.prototype.hasOwnProperty.call(R,H)&&d(q,R,H);return h(q,R),q},p=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(n,"__esModule",{value:!0}),n.dispose=n.getInstance=n.initializeWebAssembly=void 0;const w=m(c(6449)),z=p(c(932)),A=c(3474);let y,s=!1,e=!1,f=!1;const g=(R,q)=>q?R?"ort-wasm-simd-threaded.wasm":"ort-wasm-threaded.wasm":R?"ort-wasm-simd.wasm":"ort-wasm.wasm";n.initializeWebAssembly=async R=>{if(s)return Promise.resolve();if(e)throw new Error("multiple calls to 'initializeWebAssembly()' detected.");if(f)throw new Error("previous call to 'initializeWebAssembly()' failed.");e=!0;const q=R.initTimeout,H=R.numThreads,te=R.simd,re=H>1&&(()=>{try{return typeof SharedArrayBuffer<"u"&&(typeof MessageChannel<"u"&&new MessageChannel().port1.postMessage(new SharedArrayBuffer(1)),WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,4,1,3,1,1,10,11,1,9,0,65,0,254,16,2,0,26,11])))}catch{return!1}})(),ae=te&&(()=>{try{return WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,30,1,28,0,65,0,253,15,253,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,253,186,1,26,11]))}catch{return!1}})(),ne=typeof R.wasmPaths=="string"?R.wasmPaths:void 0,oe=g(!1,re),le=g(ae,re),ce=typeof R.wasmPaths=="object"?R.wasmPaths[le]:void 0;let ue=!1;const he=[];if(q>0&&he.push(new Promise((ge=>{setTimeout((()=>{ue=!0,ge()}),q)}))),he.push(new Promise(((ge,Oe)=>{const $e=re?A:z.default,Pe={locateFile:(Le,me)=>re&&Le.endsWith(".worker.js")&&typeof Blob<"u"?URL.createObjectURL(new Blob([c(4154)],{type:"text/javascript"})):Le===oe?ce??(ne??me)+le:me+Le};if(re)if(typeof Blob>"u")Pe.mainScriptUrlOrBlob=w.join("/","ort-wasm-threaded.js");else{const Le=`var ortWasmThreaded=(function(){var _scriptDir;return ${$e.toString()}})();`;Pe.mainScriptUrlOrBlob=new Blob([Le],{type:"text/javascript"})}$e(Pe).then((Le=>{e=!1,s=!0,y=Le,ge()}),(Le=>{e=!1,f=!0,Oe(Le)}))}))),await Promise.race(he),ue)throw new Error(`WebAssembly backend initializing failed due to timeout: ${q}ms`)},n.getInstance=()=>{if(s&&y)return y;throw new Error("WebAssembly is not initialized yet.")},n.dispose=()=>{var R;
1865!s||e||f||(e=!0,(R=y.PThread)===null||R===void 0||R.terminateAllThreads(),y=void 0,e=!1,s=!1,f=!0)}},9710:(o,n,c)=>{c.d(n,{Z:()=>m});var d=c(477),h=c.n(d);function m(){return h
vendor: 9,500 bytes, line 1865
1865()('/*!\n* ONNX Runtime Web v1.14.0\n* Copyright (c) Microsoft Corporation. All rights reserved.\n* Licensed under the MIT License.\n*/\n(()=>{var t={474:(t,e,n)=>{var _scriptDir,r=(_scriptDir=(_scriptDir="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0)||"/index.js",function(t){function e(){return j.buffer!=D&&N(j.buffer),P}function r(){return j.buffer!=D&&N(j.buffer),U}function a(){return j.buffer!=D&&N(j.buffer),F}function i(){return j.buffer!=D&&N(j.buffer),I}function o(){return j.buffer!=D&&N(j.buffer),W}var u,c,s;t=t||{},u||(u=void 0!==t?t:{}),u.ready=new Promise((function(t,e){c=t,s=e}));var l,f,p,h,d,y,b=Object.assign({},u),m="./this.program",g=(t,e)=>{throw e},v="object"==typeof window,w="function"==typeof importScripts,_="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,O=u.ENVIRONMENT_IS_PTHREAD||!1,A="";function S(t){return u.locateFile?u.locateFile(t,A):A+t}if(_){let e;A=w?n(908).dirname(A)+"/":"//",y=()=>{d||(h=n(384),d=n(908))},l=function(t,e){return y(),t=d.normalize(t),h.readFileSync(t,e?void 0:"utf8")},p=t=>((t=l(t,!0)).buffer||(t=new Uint8Array(t)),t),f=(t,e,n)=>{y(),t=d.normalize(t),h.readFile(t,(function(t,r){t?n(t):e(r.buffer)}))},1<process.argv.length&&(m=process.argv[1].replace(/\\\\/g,"/")),process.argv.slice(2),process.on("uncaughtException",(function(t){if(!(t instanceof ct))throw t})),process.on("unhandledRejection",(function(t){throw t})),g=(t,e)=>{if(Q())throw process.exitCode=t,e;e instanceof ct||x("exiting due to exception: "+e),process.exit(t)},u.inspect=function(){return"[Emscripten Module object]"};try{e=n(925)}catch(t){throw console.error(\'The "worker_threads" module is not supported in this node.js build - perhaps a newer version is needed?\'),t}n.g.Worker=e.Worker}else(v||w)&&(w?A=self.location.href:"undefined"!=typeof document&&document.currentScript&&(A=document.currentScript.src),_scriptDir&&(A=_scriptDir),A=0!==A.indexOf("blob:")?A.substr(0,A.replace(/[?#].*/,"").lastIndexOf("/")+1):"",_||(l=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.send(null),e.responseText},w&&(p=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),f=(t,e,n)=>{var r=new XMLHttpRequest;r.open("GET",t,!0),r.responseType="arraybuffer",r.onload=()=>{200==r.status||0==r.status&&r.response?e(r.response):n()},r.onerror=n,r.send(null)}));_&&"undefined"==typeof performance&&(n.g.performance=n(953).performance);var T=console.log.bind(console),E=console.warn.bind(console);_&&(y(),T=t=>h.writeSync(1,t+"\\n"),E=t=>h.writeSync(2,t+"\\n"));var M,C=u.print||T,x=u.printErr||E;Object.assign(u,b),b=null,u.thisProgram&&(m=u.thisProgram),u.quit&&(g=u.quit),u.wasmBinary&&(M=u.wasmBinary);var R=u.noExitRuntime||!1;"object"!=typeof WebAssembly&&at("no native wasm support detected");var j,k,D,P,U,F,I,W,H=!1,L="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function z(t,e,n){var r=(e>>>=0)+n;for(n=e;t[n]&&!(n>=r);)++n;if(16<n-e&&t.buffer&&L)return L.decode(t.buffer instanceof SharedArrayBuffer?t.slice(e,n):t.subarray(e,n));for(r="";e<n;){var a=t[e++];if(128&a){var i=63&t[e++];if(192==(224&a))r+=String.fromCharCode((31&a)<<6|i);else{var o=63&t[e++];65536>(a=224==(240&a)?(15&a)<<12|i<<6|o:(7&a)<<18|i<<12|o<<6|63&t[e++])?r+=String.fromCharCode(a):(a-=65536,r+=String.fromCharCode(55296|a>>10,56320|1023&a))}}else r+=String.fromCharCode(a)}return r}function Y(t,e){return(t>>>=0)?z(r(),t,e):""}function B(t,e,n,r){if(!(0<r))return 0;var a=n>>>=0;r=n+r-1;for(var i=0;i<t.length;++i){var o=t.charCodeAt(i);if(55296<=o&&57343>=o&&(o=65536+((1023&o)<<10)|1023&t.charCodeAt(++i)),127>=o){if(n>=r)break;e[n++>>>0]=o}else{if(2047>=o){if(n+1>=r)break;e[n++>>>0]=192|o>>6}else{if(65535>=o){if(n+2>=r)break;e[n++>>>0]=224|o>>12}else{if(n+3>=r)break;e[n++>>>0]=240|o>>18,e[n++>>>0]=128|o>>12&63}e[n++>>>0]=128|o>>6&63}e[n++>>>0]=128|63&o}}return e[n>>>0]=0,n-a}function G(t){for(var e=0,n=0;n<t.length;++n){var r=t.charCodeAt(n);127>=r?e++:2047>=r?e+=2:55296<=r&&57343>=r?(e+=4,++n):e+=3}return e}function N(t){D=t,u.HEAP8=P=new Int8Array(t),u.HEAP16=new Int16Array(t),u.HEAP32=F=new Int32Array(t),u.HEAPU8=U=new Uint8Array(t),u.HEAPU16=new Uint16Array(t),u.HEAPU32=I=new Uint32Array(t),u.HEAPF32=new Float32Array(t),u.HEAPF64=W=new Float64Array(t)}O&&(D=u.buffer);var V=u.INITIAL_MEMORY||16777216;if(O)j=u.wasmMemory,D=u.buffer;else if(u.wasmMemory)j=u.wasmMemory;else if(!((j=new WebAssembly.Memory({initial:V/65536,maximum:65536,shared:!0})).buffer instanceof SharedArrayBuffer))throw x("requested a shared WebAssembly.Memory but the returned buffer is not a SharedArrayBuffer, indicating that while the browser has SharedArrayBuffer it does not have WebAssembly threads support - you may need to set a flag"),_&&console.log("(on node you may need: --experimental-wasm-threads --experimental-wasm-bulk-memory and also use a recent version)"),Error("bad memory");j&&(D=j.buffer),V=D.byteLength,N(D);var $,q=[],X=[],J=[],Z=[];function Q(){return R||!1}function K(){var t=u.preRun.shift();q.unshift(t)}var tt,et=0,nt=null,rt=null;function at(t){throw O?postMessage({cmd:"onAbort",arg:t}):u.onAbort&&u.onAbort(t),x(t="Aborted("+t+")"),H=!0,t=new WebAssembly.RuntimeError(t+". Build with -sASSERTIONS for more info."),s(t),t}function it(){return tt.startsWith("data:application/octet-stream;base64,")}function ot(){var t=tt;try{if(t==tt&&M)return new Uint8Array(M);if(p)return p(t);throw"both async and sync fetching of the wasm failed"}catch(t){at(t)}}tt="ort-wasm-threaded.wasm",it()||(tt=S(tt));var ut={};function ct(t){this.name="ExitStatus",this.message="Program terminated with exit("+t+")",this.status=t}function st(t){(t=ht.Vb[t])||at(),ht.mc(t)}function lt(t){var e=ht.Cc();if(!e)return 6;ht.ac.push(e),ht.Vb[t.Ub]=e,e.Ub=t.Ub;var n={cmd:"run",start_routine:t.Ic,arg:t.zc,pthread_ptr:t.Ub};return e.$b=()=>{n.time=performance.now(),e.postMessage(n,t.Nc)},e.loaded&&(e.$b(),delete e.$b),0}function ft(t){if(O)return $t(1,1,t);Q()||(ht.oc(),u.onExit&&u.onExit(t),H=!0),g(t,new ct(t))}function pt(t,e){if(!e&&O)throw bt(t),"unwind";Q()||O||(me(),dt(J),be(0),re[1].length&&ae(1,10),re[2].length&&ae(2,10),ht.oc()),ft(t)}var ht={Yb:[],ac:[],qc:[],Vb:{},fc:function(){O&&ht.Ec()},Pc:function(){},Ec:function(){ht.receiveObjectTransfer=ht.Gc,ht.threadInitTLS=ht.pc,ht.setExitStatus=ht.nc,R=!1},nc:function(){},oc:function(){for(var t of Object.values(ht.Vb))ht.mc(t);for(t of ht.Yb)t.terminate();ht.Yb=[]},mc:function(t){var e=t.Ub;delete ht.Vb[e],ht.Yb.push(t),ht.ac.splice(ht.ac.indexOf(t),1),t.Ub=0,Oe(e)},Gc:function(){},pc:function(){ht.qc.forEach((t=>t()))},Fc:function(t,e){t.onmessage=n=>{var r=(n=n.data).cmd;if(t.Ub&&(ht.Bc=t.Ub),n.targetThread&&n.targetThread!=he()){var a=ht.Vb[n.Qc];a?a.postMessage(n,n.transferList):x(\'Internal error! Worker sent a message "\'+r+\'" to target pthread \'+n.targetThread+", but that thread no longer exists!")}else"processProxyingQueue"===r?zt(n.queue):"spawnThread"===r?lt(n):"cleanupThread"===r?st(n.thread):"killThread"===r?(n=n.thread,r=ht.Vb[n],delete ht.Vb[n],r.terminate(),Oe(n),ht.ac.splice(ht.ac.indexOf(r),1),r.Ub=0):"cancelThread"===r?ht.Vb[n.thread].postMessage({cmd:"cancel"}):"loaded"===r?(t.loaded=!0,e&&e(t),t.$b&&(t.$b(),delete t.$b)):"print"===r?C("Thread "+n.threadId+": "+n.text):"printErr"===r?x("Thread "+n.threadId+": "+n.text):"alert"===r?alert("Thread "+n.threadId+": "+n.text):"setimmediate"===n.target?t.postMessage(n):"onAbort"===r?u.onAbort&&u.onAbort(n.arg):r&&x("worker sent an unknown command "+r);ht.Bc=void 0},t.onerror=t=>{throw x("worker sent an error! "+t.filename+":"+t.lineno+": "+t.message),t},_&&(t.on("message",(function(e){t.onmessage({data:e})})),t.on("error",(function(e){t.onerror(e)})),t.on("detachedExit",(function(){}))),t.postMessage({cmd:"load",urlOrBlob:u.mainScriptUrlOrBlob||_scriptDir,wasmMemory:j,wasmModule:k})},yc:function(){var t=S("ort-wasm-threaded.worker.js");ht.Yb.push(new Worker(t))},Cc:function(){return 0==ht.Yb.length&&(ht.yc(),ht.Fc(ht.Yb[0])),ht.Yb.pop()}};function dt(t){for(;0<t.length;)t.shift()(u)}function yt(t){var e=Ee();return t=t(),Me(e),t}function bt(t){if(O)return $t(2,0,t);try{pt(t)}catch(t){t instanceof ct||"unwind"==t||g(1,t)}}u.PThread=ht,u.establishStackSpace=function(){var t=he(),e=a()[t+44>>2>>>0];t=a()[t+48>>2>>>0],Te(e,e-t),Me(e)};var mt=[];function gt(t){var e=mt[t];return e||(t>=mt.length&&(mt.length=t+1),mt[t]=e=$.get(t)),e}u.invokeEntryPoint=function(t,e){t=gt(t)(e),Q()?ht.nc(t):Ae(t)};var vt,wt,_t=[],Ot=0,At=0;function St(t){this.Zb=t,this.Sb=t-24,this.xc=function(t){i()[this.Sb+4>>2>>>0]=t},this.bc=function(){return i()[this.Sb+4>>2>>>0]},this.wc=function(t){i()[this.Sb+8>>2>>>0]=t},this.Dc=function(){return i()[this.Sb+8>>2>>>0]},this.rc=function(){a()[this.Sb>>2>>>0]=0},this.hc=function(t){t=t?1:0,e()[this.Sb+12>>0>>>0]=t},this.uc=function(){return 0!=e()[this.Sb+12>>0>>>0]},this.ic=function(t){t=t?1:0,e()[this.Sb+13>>0>>>0]=t},this.kc=function(){return 0!=e()[this.Sb+13>>0>>>0]},this.fc=function(t,e){this.cc(0),this.xc(t),this.wc(e),this.rc(),this.hc(!1),this.ic(!1)},this.sc=function(){Atomics.add(a(),this.Sb>>2,1)},this.Hc=function(){return 1===Atomics.sub(a(),this.Sb>>2,1)},this.cc=function(t){i()[this.Sb+16>>2>>>0]=t},this.tc=function(){return i()[this.Sb+16>>2>>>0]},this.vc=function(){if(Re(this.bc()))return i()[this.Zb>>2>>>0];var t=this.tc();return 0!==t?t:this.Zb}}function Tt(t){return ye(new St(t).Sb)}
vendor: 64,584 bytes, line 1865
1865function Et(t,e,n,r){return O?$t(3,1,t,e,n,r):Mt(t,e,n,r)}function Mt(t,e,n,r){if("undefined"==typeof SharedArrayBuffer)return x("Current environment does not support SharedArrayBuffer, pthreads are not available!"),6;var a=[];return O&&0===a.length?Et(t,e,n,r):(t={Ic:n,Ub:t,zc:r,Nc:a},O?(t.Oc="spawnThread",postMessage(t,a),0):lt(t))}function Ct(t,e,n){return O?$t(4,1,t,e,n):0}function xt(t,e){if(O)return $t(5,1,t,e)}function Rt(t,e){if(O)return $t(6,1,t,e)}function jt(t,e,n){if(O)return $t(7,1,t,e,n)}function kt(t,e,n){return O?$t(8,1,t,e,n):0}function Dt(t,e){if(O)return $t(9,1,t,e)}function Pt(t,e,n){if(O)return $t(10,1,t,e,n)}function Ut(t,e,n,r){if(O)return $t(11,1,t,e,n,r)}function Ft(t,e,n,r){if(O)return $t(12,1,t,e,n,r)}function It(t,e,n,r){if(O)return $t(13,1,t,e,n,r)}function Wt(t){if(O)return $t(14,1,t)}function Ht(t,e){if(O)return $t(15,1,t,e)}function Lt(t,e,n){if(O)return $t(16,1,t,e,n)}function zt(t){Atomics.store(a(),t>>2,1),he()&&_e(t),Atomics.compareExchange(a(),t>>2,1,0)}function Yt(t){return i()[t>>>2]+4294967296*a()[t+4>>>2]}function Bt(t,e,n,r,a,i){return O?$t(17,1,t,e,n,r,a,i):-52}function Gt(t,e,n,r,a,i){if(O)return $t(18,1,t,e,n,r,a,i)}function Nt(t){var n=G(t)+1,r=de(n);return r&&B(t,e(),r,n),r}function Vt(t,e,n){function r(t){return(t=t.toTimeString().match(/\\(([A-Za-z ]+)\\)$/))?t[1]:"GMT"}if(O)return $t(19,1,t,e,n);var o=(new Date).getFullYear(),u=new Date(o,0,1),c=new Date(o,6,1);o=u.getTimezoneOffset();var s=c.getTimezoneOffset(),l=Math.max(o,s);a()[t>>2>>>0]=60*l,a()[e>>2>>>0]=Number(o!=s),t=r(u),e=r(c),t=Nt(t),e=Nt(e),s<o?(i()[n>>2>>>0]=t,i()[n+4>>2>>>0]=e):(i()[n>>2>>>0]=e,i()[n+4>>2>>>0]=t)}function $t(t,e){var n=arguments.length-2,r=arguments;return yt((()=>{for(var a=Ce(8*n),i=a>>3,u=0;u<n;u++){var c=r[2+u];o()[i+u>>>0]=c}return we(t,n,a,e)}))}u.executeNotifiedProxyingQueue=zt,wt=_?()=>{var t=process.hrtime();return 1e3*t[0]+t[1]/1e6}:O?()=>performance.now()-u.__performance_now_clock_drift:()=>performance.now();var qt,Xt=[],Jt={};function Zt(){if(!qt){var t,e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:m||"./this.program"};for(t in Jt)void 0===Jt[t]?delete e[t]:e[t]=Jt[t];var n=[];for(t in e)n.push(t+"="+e[t]);qt=n}return qt}function Qt(t,n){if(O)return $t(20,1,t,n);var r=0;return Zt().forEach((function(a,o){var u=n+r;for(o=i()[t+4*o>>2>>>0]=u,u=0;u<a.length;++u)e()[o++>>0>>>0]=a.charCodeAt(u);e()[o>>0>>>0]=0,r+=a.length+1})),0}function Kt(t,e){if(O)return $t(21,1,t,e);var n=Zt();i()[t>>2>>>0]=n.length;var r=0;return n.forEach((function(t){r+=t.length+1})),i()[e>>2>>>0]=r,0}function te(t){return O?$t(22,1,t):52}function ee(t,e,n,r){return O?$t(23,1,t,e,n,r):52}function ne(t,e,n,r,a){return O?$t(24,1,t,e,n,r,a):70}var re=[null,[],[]];function ae(t,e){var n=re[t];0===e||10===e?((1===t?C:x)(z(n,0)),n.length=0):n.push(e)}function ie(t,e,n,a){if(O)return $t(25,1,t,e,n,a);for(var o=0,u=0;u<n;u++){var c=i()[e>>2>>>0],s=i()[e+4>>2>>>0];e+=8;for(var l=0;l<s;l++)ae(t,r()[c+l>>>0]);o+=s}return i()[a>>2>>>0]=o,0}var oe=0;function ue(t){return 0==t%4&&(0!=t%100||0==t%400)}var ce=[31,29,31,30,31,30,31,31,30,31,30,31],se=[31,28,31,30,31,30,31,31,30,31,30,31];function le(t,n,r,i){function o(t,e,n){for(t="number"==typeof t?t.toString():t||"";t.length<e;)t=n[0]+t;return t}function u(t,e){return o(t,e,"0")}function c(t,e){function n(t){return 0>t?-1:0<t?1:0}var r;return 0===(r=n(t.getFullYear()-e.getFullYear()))&&0===(r=n(t.getMonth()-e.getMonth()))&&(r=n(t.getDate()-e.getDate())),r}function s(t){switch(t.getDay()){case 0:return new Date(t.getFullYear()-1,11,29);case 1:return t;case 2:return new Date(t.getFullYear(),0,3);case 3:return new Date(t.getFullYear(),0,2);case 4:return new Date(t.getFullYear(),0,1);case 5:return new Date(t.getFullYear()-1,11,31);case 6:return new Date(t.getFullYear()-1,11,30)}}function l(t){var e=t.Wb;for(t=new Date(new Date(t.Xb+1900,0,1).getTime());0<e;){var n=t.getMonth(),r=(ue(t.getFullYear())?ce:se)[n];if(!(e>r-t.getDate())){t.setDate(t.getDate()+e);break}e-=r-t.getDate()+1,t.setDate(1),11>n?t.setMonth(n+1):(t.setMonth(0),t.setFullYear(t.getFullYear()+1))}return n=new Date(t.getFullYear()+1,0,4),e=s(new Date(t.getFullYear(),0,4)),n=s(n),0>=c(e,t)?0>=c(n,t)?t.getFullYear()+1:t.getFullYear():t.getFullYear()-1}var f=a()[i+40>>2>>>0];for(var p in i={Lc:a()[i>>2>>>0],Kc:a()[i+4>>2>>>0],dc:a()[i+8>>2>>>0],jc:a()[i+12>>2>>>0],ec:a()[i+16>>2>>>0],Xb:a()[i+20>>2>>>0],Tb:a()[i+24>>2>>>0],Wb:a()[i+28>>2>>>0],Rc:a()[i+32>>2>>>0],Jc:a()[i+36>>2>>>0],Mc:f?Y(f):""},r=Y(r),f={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"})r=r.replace(new RegExp(p,"g"),f[p]);var h="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),d="January February March April May June July August September October November December".split(" ");for(p in f={"%a":function(t){return h[t.Tb].substring(0,3)},"%A":function(t){return h[t.Tb]},"%b":function(t){return d[t.ec].substring(0,3)},"%B":function(t){return d[t.ec]},"%C":function(t){return u((t.Xb+1900)/100|0,2)},"%d":function(t){return u(t.jc,2)},"%e":function(t){return o(t.jc,2," ")},"%g":function(t){return l(t).toString().substring(2)},"%G":function(t){return l(t)},"%H":function(t){return u(t.dc,2)},"%I":function(t){return 0==(t=t.dc)?t=12:12<t&&(t-=12),u(t,2)},"%j":function(t){for(var e=0,n=0;n<=t.ec-1;e+=(ue(t.Xb+1900)?ce:se)[n++]);return u(t.jc+e,3)},"%m":function(t){return u(t.ec+1,2)},"%M":function(t){return u(t.Kc,2)},"%n":function(){return"\\n"},"%p":function(t){return 0<=t.dc&&12>t.dc?"AM":"PM"},"%S":function(t){return u(t.Lc,2)},"%t":function(){return"\\t"},"%u":function(t){return t.Tb||7},"%U":function(t){return u(Math.floor((t.Wb+7-t.Tb)/7),2)},"%V":function(t){var e=Math.floor((t.Wb+7-(t.Tb+6)%7)/7);if(2>=(t.Tb+371-t.Wb-2)%7&&e++,e)53==e&&(4==(n=(t.Tb+371-t.Wb)%7)||3==n&&ue(t.Xb)||(e=1));else{e=52;var n=(t.Tb+7-t.Wb-1)%7;(4==n||5==n&&ue(t.Xb%400-1))&&e++}return u(e,2)},"%w":function(t){return t.Tb},"%W":function(t){return u(Math.floor((t.Wb+7-(t.Tb+6)%7)/7),2)},"%y":function(t){return(t.Xb+1900).toString().substring(2)},"%Y":function(t){return t.Xb+1900},"%z":function(t){var e=0<=(t=t.Jc);return t=Math.abs(t)/60,(e?"+":"-")+String("0000"+(t/60*100+t%60)).slice(-4)},"%Z":function(t){return t.Mc},"%%":function(){return"%"}},r=r.replace(/%%/g,"\\0\\0"),f)r.includes(p)&&(r=r.replace(new RegExp(p,"g"),f[p](i)));return p=function(t){var e=Array(G(t)+1);return B(t,e,0,e.length),e}(r=r.replace(/\\0\\0/g,"%")),p.length>n?0:(function(t,n){e().set(t,n>>>0)}(p,t),p.length-1)}ht.fc();var fe=[null,ft,bt,Et,Ct,xt,Rt,jt,kt,Dt,Pt,Ut,Ft,It,Wt,Ht,Lt,Bt,Gt,Vt,Qt,Kt,te,ee,ne,ie],pe={b:function(t){return de(t+24)+24},n:function(t){return(t=new St(t)).uc()||(t.hc(!0),Ot--),t.ic(!1),_t.push(t),t.sc(),t.vc()},ma:function(t){throw x("Unexpected exception thrown, this is not properly supported - aborting"),H=!0,t},x:function(){Se(0);var t=_t.pop();if(t.Hc()&&!t.kc()){var e=t.Dc();e&&gt(e)(t.Zb),Tt(t.Zb)}At=0},e:function(){var t=At;if(!t)return oe=0;var e=new St(t);e.cc(t);var n=e.bc();if(!n)return oe=0,t;for(var r=Array.prototype.slice.call(arguments),a=0;a<r.length;a++){var i=r[a];if(0===i||i===n)break;if(xe(i,n,e.Sb+16))return oe=i,t}return oe=n,t},l:function(){var t=At;if(!t)return oe=0;var e=new St(t);e.cc(t);var n=e.bc();if(!n)return oe=0,t;for(var r=Array.prototype.slice.call(arguments),a=0;a<r.length;a++){var i=r[a];if(0===i||i===n)break;if(xe(i,n,e.Sb+16))return oe=i,t}return oe=n,t},h:function(){var t=At;if(!t)return oe=0;var e=new St(t);e.cc(t);var n=e.bc();if(!n)return oe=0,t;for(var r=Array.prototype.slice.call(arguments),a=0;a<r.length;a++){var i=r[a];if(0===i||i===n)break;if(xe(i,n,e.Sb+16))return oe=i,t}return oe=n,t},t:Tt,M:function(){var t=_t.pop();t||at("no exception to throw");var e=t.Zb;throw t.kc()||(_t.push(t),t.ic(!0),t.hc(!1),Ot++),At=e,e},c:function(t,e,n){throw new St(t).fc(e,n),At=t,Ot++,t},pa:function(){return Ot},Fa:function(t){ge(t,!w,1,!v),ht.pc()},T:function(t){O?postMessage({cmd:"cleanupThread",thread:t}):st(t)},xa:Mt,j:function(t){throw At||(At=t),t},H:Ct,Ma:xt,ua:Rt,wa:jt,oa:kt,Ka:Dt,Ca:Pt,Ja:Ut,V:Ft,va:It,sa:Wt,La:Ht,ta:Lt,Ta:function(){},X:function(){at("To use dlopen, you need enable dynamic linking, see https://github.com/emscripten-core/emscripten/wiki/Linking")},Ua:function(){at("To use dlopen, you need enable dynamic linking, see https://github.com/emscripten-core/emscripten/wiki/Linking")},W:function(){return Date.now()},ya:function(){return 2097152},Oa:function(){return!0},za:function(t,e,n,r){if(t==e)setTimeout((()=>zt(r)));else if(O)postMessage({targetThread:t,cmd:"processProxyingQueue",queue:r});else{if(!(t=ht.Vb[t]))return;t.postMessage({cmd:"processProxyingQueue",queue:r})}return 1},Ea:function(){return-1},Pa:function(t,e){t=new Date(1e3*Yt(t)),a()[e>>2>>>0]=t.getUTCSeconds(),a()[e+4>>2>>>0]=t.getUTCMinutes(),a()[e+8>>2>>>0]=t.getUTCHours(),a()[e+12>>2>>>0]=t.getUTCDate(),a()[e+16>>2>>>0]=t.getUTCMonth(),a()[e+20>>2>>>0]=t.getUTCFullYear()-1900,a()[e+24>>2>>>0]=t.getUTCDay(),t=(t.getTime()-Date.UTC(t.getUTCFullYear(),0,1,0,0,0,0))/864e5|0,a()[e+28>>2>>>0]=t},Qa:function(t,e){t=new Date(1e3*Yt(t)),a()[e>>2>>>0]=t.getSeconds(),a()[e+4>>2>>>0]=t.getMinutes(),a()[e+8>>2>>>0]=t.getHours(),a()[e+12>>2>>>0]=t.getDate(),a()[e+16>>2>>>0]=t.getMonth(),a()[e+20>>2>>>0]=t.getFullYear()-1900,a()[e+24>>2>>>0]=t.getDay();var n=new Date(t.getFullYear(),0,1),r=(t.getTime()-n.getTime())/864e5|0;a()[e+28>>2>>>0]=r,a()[e+36>>2>>>0]=-60*t.getTimezoneOffset(),r=new Date(t.getFullYear(),6,1).getTimezoneOffset(),t=0|(r!=(n=n.getTimezoneOffset())&&t.getTimezoneOffset()==Math.min(n,r)),a()[e+32>>2>>>0]=t},Ra:function(t){var e=new Date(a()[t+20>>2>>>0]+1900,a()[t+16>>2>>>0],a()[t+12>>2>>>0],a()[t+8>>2>>>0],a()[t+4>>2>>>0],a()[t>>2>>>0],0),n=a()[t+32>>2>>>0],r=e.getTimezoneOffset(),i=new Date(e.getFullYear(),0,1),o=new Date(e.getFullYear(),6,1).getTimezoneOffset(),u=i.getTimezoneOffset(),c=Math.min(u,o);return 0>n?a()[t+32>>2>>>0]=Number(o!=u&&c==r):0<n!=(c==r)&&(o=Math.max(u,o),e.setTime(e.getTime()+6e4*((0<n?c:o)-r))),a()[t+24>>2>>>0]=e.getDay(),n=(e.getTime()-i.getTime())/864e5|0,a()[t+28>>2>>>0]=n,a()[t>>2>>>0]=e.getSeconds(),a()[t+4>>2>>>0]=e.getMinutes(),a()[t+8>>2>>>0]=e.getHours(),a()[t+12>>2>>>0]=e.getDate(),a()[t+16>>2>>>0]=e.getMonth(),e.getTime()/1e3|0},Aa:Bt,Ba:Gt,Sa:function t(e,n,r){t.Ac||(t.Ac=!0,Vt(e,n,r))},y:function(){at("")},U:function(){if(!_&&!w){var t="Blocking on the main thread is very dangerous, see https://emscripten.org/docs/porting/pthreads.html#blocking-on-the-main-browser-thread";vt||(vt={}),vt[t]||(vt[t]=1,_&&(t="warning: "+t),x(t))}},ra:function(){return 4294901760},B:wt,Ia:function(t,e,n){r().copyWithin(t>>>0,e>>>0,e+n>>>0)},F:function(){return _?n(993).cpus().length:navigator.hardwareConcurrency},Da:function(t,e,n){Xt.length=e,n>>=3;for(var r=0;r<e;r++)Xt[r]=o()[n+r>>>0];return(0>t?ut[-t-1]:fe[t]).apply(null,Xt)},qa:function(t){var e=r().length;if((t>>>=0)<=e||4294901760<t)return!1;for(var n=1;4>=n;n*=2){var a=e*(1+.2/n);a=Math.min(a,t+100663296);var i=Math;a=Math.max(t,a),i=i.min.call(i,4294901760,a+(65536-a%65536)%65536);t:{try{j.grow(i-D.byteLength+65535>>>16),N(j.buffer);var o=1;break t}catch(t){}o=void 0}if(o)return!0}return!1},Na:function(){throw"unwind"},Ga:Qt,Ha:Kt,J:pt,I:te,S:ee,ga:ne,R:ie,d:function(){return oe},na:function t(r,a){t.lc||(t.lc=function(){if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues){var t=new Uint8Array(1);return()=>(crypto.getRandomValues(t),t[0])}if(_)try{var e=n(Object(function(){var t=new Error("Cannot find module \'crypto\'");throw t.code="MODULE_NOT_FOUND",t}()));return()=>e.randomBytes(1)[0]}catch(t){}return()=>at("randomDevice")}());for(var i=0;i<a;i++)e()[r+i>>0>>>0]=t.lc();return 0},ia:function(t,e,n){var r=Ee();try{return gt(t)(e,n)}catch(t){if(Me(r),t!==t+0)throw t;Se(1,0)}},ja:function(t,e,n){var r=Ee();try{return gt(t)(e,n)}catch(t){if(Me(r),t!==t+0)throw t;Se(1,0)}},K:function(t){var e=Ee();try{return gt(t)()}catch(t){if(Me(e),t!==t+0)throw t;Se(1,0)}},f:function(t,e){var n=Ee();try{return gt(t)(e)}catch(t){if(Me(n),t!==t+0)throw t;Se(1,0)}},P:function(t,e,n){var r=Ee();try{return gt(t)(e,n)}catch(t){if(Me(r),t!==t+0)throw t;Se(1,0)}},Q:function(t,e,n){var r=Ee();try{return gt(t)(e,n)}catch(t){if(Me(r),t!==t+0)throw t;Se(1,0)}},k:function(t,e,n){var r=Ee();try{return gt(t)(e,n)}catch(t){if(Me(r),t!==t+0)throw t;Se(1,0)}},p:function(t,e,n,r){var a=Ee();try{return gt(t)(e,n,r)}catch(t){if(Me(a),t!==t+0)throw t;Se(1,0)}},q:function(t,e,n,r,a){var i=Ee();try{return gt(t)(e,n,r,a)}catch(t){if(Me(i),t!==t+0)throw t;Se(1,0)}},N:function(t,e,n,r,a,i){var o=Ee();try{return gt(t)(e,n,r,a,i)}catch(t){if(Me(o),t!==t+0)throw t;Se(1,0)}},s:function(t,e,n,r,a,i){var o=Ee();try{return gt(t)(e,n,r,a,i)}catch(t){if(Me(o),t!==t+0)throw t;Se(1,0)}},w:function(t,e,n,r,a,i,o){var u=Ee();try{return gt(t)(e,n,r,a,i,o)}catch(t){if(Me(u),t!==t+0)throw t;Se(1,0)}},L:function(t,e,n,r,a,i,o,u){var c=Ee();try{return gt(t)(e,n,r,a,i,o,u)}catch(t){if(Me(c),t!==t+0)throw t;Se(1,0)}},E:function(t,e,n,r,a,i,o,u,c,s,l,f){var p=Ee();try{return gt(t)(e,n,r,a,i,o,u,c,s,l,f)}catch(t){if(Me(p),t!==t+0)throw t;Se(1,0)}},aa:function(t,e,n,r,a,i,o,u){var c=Ee();try{return He(t,e,n,r,a,i,o,u)}catch(t){if(Me(c),t!==t+0)throw t;Se(1,0)}},_:function(t,e,n,r,a,i,o){var u=Ee();try{return ke(t,e,n,r,a,i,o)}catch(t){if(Me(u),t!==t+0)throw t;Se(1,0)}},Z:function(t,e,n,r,a){var i=Ee();try{return Le(t,e,n,r,a)}catch(t){if(Me(i),t!==t+0)throw t;Se(1,0)}},ca:function(t,e,n,r){var a=Ee();try{return Ie(t,e,n,r)}catch(t){if(Me(a),t!==t+0)throw t;Se(1,0)}},$:function(t){var e=Ee();try{return je(t)}catch(t){if(Me(e),t!==t+0)throw t;Se(1,0)}},ba:function(t,e){var n=Ee();try{return We(t,e)}catch(t){if(Me(n),t!==t+0)throw t;Se(1,0)}},Y:function(t,e,n){var r=Ee();try{return De(t,e,n)}catch(t){if(Me(r),t!==t+0)throw t;Se(1,0)}},g:function(t){var e=Ee();try{gt(t)()}catch(t){if(Me(e),t!==t+0)throw t;Se(1,0)}},r:function(t,e){var n=Ee();try{gt(t)(e)}catch(t){if(Me(n),t!==t+0)throw t;Se(1,0)}},i:function(t,e,n){var r=Ee();try{gt(t)(e,n)}catch(t){if(Me(r),t!==t+0)throw t;Se(1,0)}},ha:function(t,e,n,r){var a=Ee();try{gt(t)(e,n,r)}catch(t){if(Me(a),t!==t+0)throw t;Se(1,0)}},m:function(t,e,n,r){var a=Ee();try{gt(t)(e,n,r)}catch(t){if(Me(a),t!==t+0)throw t;Se(1,0)}},v:function(t,e,n,r,a){var i=Ee();try{gt(t)(e,n,r,a)}catch(t){if(Me(i),t!==t+0)throw t;Se(1,0)}},u:function(t,e,n,r,a,i){var o=Ee();try{gt(t)(e,n,r,a,i)}catch(t){if(Me(o),t!==t+0)throw t;Se(1,0)}},O:function(t,e,n,r,a,i,o){var u=Ee();try{gt(t)(e,n,r,a,i,o)}catch(t){if(Me(u),t!==t+0)throw t;Se(1,0)}},A:function(t,e,n,r,a,i,o,u){var c=Ee();try{gt(t)(e,n,r,a,i,o,u)}catch(t){if(Me(c),t!==t+0)throw t;Se(1,0)}},ka:function(t,e,n,r,a,i,o,u,c){var s=Ee();try{gt(t)(e,n,r,a,i,o,u,c)}catch(t){if(Me(s),t!==t+0)throw t;Se(1,0)}},C:function(t,e,n,r,a,i,o,u,c,s,l){var f=Ee();try{gt(t)(e,n,r,a,i,o,u,c,s,l)}catch(t){if(Me(f),t!==t+0)throw t;Se(1,0)}},D:function(t,e,n,r,a,i,o,u,c,s,l,f,p,h,d,y){var b=Ee();try{gt(t)(e,n,r,a,i,o,u,c,s,l,f,p,h,d,y)}catch(t){if(Me(b),t!==t+0)throw t;Se(1,0)}},fa:function(t,e,n,r,a,i,o,u){var c=Ee();try{Pe(t,e,n,r,a,i,o,u)}catch(t){if(Me(c),t!==t+0)throw t;Se(1,0)}},da:function(t,e,n,r,a,i,o,u,c,s,l,f){var p=Ee();try{Fe(t,e,n,r,a,i,o,u,c,s,l,f)}catch(t){if(Me(p),t!==t+0)throw t;Se(1,0)}},ea:function(t,e,n,r,a,i){var o=Ee();try{Ue(t,e,n,r,a,i)}catch(t){if(Me(o),t!==t+0)throw t;Se(1,0)}},o:function(t){return t},a:j||u.wasmMemory,G:function(t){oe=t},la:le,z:function(t,e,n,r){return le(t,e,n,r)}};!function(){function t(t,e){u.asm=t.exports,ht.qc.push(u.asm.sb),$=u.asm.ub,X.unshift(u.asm.Va),k=e,O||(et--,u.monitorRunDependencies&&u.monitorRunDependencies(et),0==et&&(null!==nt&&(clearInterval(nt),nt=null),rt&&(t=rt,rt=null,t())))}function e(e){t(e.instance,e.module)}function n(t){return function(){if(!M&&(v||w)){if("function"==typeof fetch&&!tt.startsWith("file://"))return fetch(tt,{credentials:"same-origin"}).then((function(t){if(!t.ok)throw"failed to load wasm binary file at \'"+tt+"\'";return t.arrayBuffer()})).catch((function(){return ot()}));if(f)return new Promise((function(t,e){f(tt,(function(e){t(new Uint8Array(e))}),e)}))}return Promise.resolve().then((function(){return ot()}))}().then((function(t){return WebAssembly.instantiate(t,r)})).then((function(t){return t})).then(t,(function(t){x("failed to asynchronously prepare wasm: "+t),at(t)}))}var r={a:pe};if(O||(et++,u.monitorRunDependencies&&u.monitorRunDependencies(et)),u.instantiateWasm)try{return u.instantiateWasm(r,t)}catch(t){return x("Module.instantiateWasm callback failed with error: "+t),!1}(M||"function"!=typeof WebAssembly.instantiateStreaming||it()||tt.startsWith("file://")||_||"function"!=typeof fetch?n(e):fetch(tt,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,r).then(e,(function(t){return x("wasm streaming compile failed: "+t),x("falling back to ArrayBuffer instantiation"),n(e)}))}))).catch(s)}(),u.___wasm_call_ctors=function(){return(u.___wasm_call_ctors=u.asm.Va).apply(null,arguments)},u._OrtInit=function(){return(u._OrtInit=u.asm.Wa).apply(null,arguments)},u._OrtCreateSessionOptions=function(){return(u._OrtCreateSessionOptions=u.asm.Xa).apply(null,arguments)},u._OrtAppendExecutionProvider=function(){return(u._OrtAppendExecutionProvider=u.asm.Ya).apply(null,arguments)},u._OrtAddSessionConfigEntry=function(){return(u._OrtAddSessionConfigEntry=u.asm.Za).apply(null,arguments)},u._OrtReleaseSessionOptions=function(){return(u._OrtReleaseSessionOptions=u.asm._a).apply(null,arguments)},u._OrtCreateSession=function(){return(u._OrtCreateSession=u.asm.$a).apply(null,arguments)},u._OrtReleaseSession=function(){return(u._OrtReleaseSession=u.asm.ab).apply(null,arguments)},u._OrtGetInputCount=function(){return(u._OrtGetInputCount=u.asm.bb).apply(null,arguments)},u._OrtGetOutputCount=function(){return(u._OrtGetOutputCount=u.asm.cb).apply(null,arguments)},u._OrtGetInputName=function(){return(u._OrtGetInputName=u.asm.db).apply(null,arguments)},u._OrtGetOutputName=function(){return(u._OrtGetOutputName=u.asm.eb).apply(null,arguments)},u._OrtFree=function(){return(u._OrtFree=u.asm.fb).apply(null,arguments)},u._OrtCreateTensor=function(){return(u._OrtCreateTensor=u.asm.gb).apply(null,arguments)},u._OrtGetTensorData=function(){return(u._OrtGetTensorData=u.asm.hb).apply(null,arguments)},u._OrtReleaseTensor=function(){return(u._OrtReleaseTensor=u.asm.ib).apply(null,arguments)},u._OrtCreateRunOptions=function(){return(u._OrtCreateRunOptions=u.asm.jb).apply(null,arguments)},u._OrtAddRunConfigEntry=function(){return(u._OrtAddRunConfigEntry=u.asm.kb).apply(null,arguments)},u._OrtReleaseRunOptions=function(){return(u._OrtReleaseRunOptions=u.asm.lb).apply(null,arguments)},u._OrtRun=function(){return(u._OrtRun=u.asm.mb).apply(null,arguments)},u._OrtEndProfiling=function(){return(u._OrtEndProfiling=u.asm.nb).apply(null,arguments)};var he=u._pthread_self=function(){return(he=u._pthread_self=u.asm.ob).apply(null,arguments)},de=u._malloc=function(){return(de=u._malloc=u.asm.pb).apply(null,arguments)},ye=u._free=function(){return(ye=u._free=u.asm.qb).apply(null,arguments)},be=u._fflush=function(){return(be=u._fflush=u.asm.rb).apply(null,arguments)};u.__emscripten_tls_init=function(){return(u.__emscripten_tls_init=u.asm.sb).apply(null,arguments)};var me=u.___funcs_on_exit=function(){return(me=u.___funcs_on_exit=u.asm.tb).apply(null,arguments)},ge=u.__emscripten_thread_init=function(){return(ge=u.__emscripten_thread_init=u.asm.vb).apply(null,arguments)};u.__emscripten_thread_crashed=function(){return(u.__emscripten_thread_crashed=u.asm.wb).apply(null,arguments)};var ve,we=u._emscripten_run_in_main_runtime_thread_js=function(){return(we=u._emscripten_run_in_main_runtime_thread_js=u.asm.xb).apply(null,arguments)},_e=u.__emscripten_proxy_execute_task_queue=function(){return(_e=u.__emscripten_proxy_execute_task_queue=u.asm.yb).apply(null,arguments)},Oe=u.__emscripten_thread_free_data=function(){return(Oe=u.__emscripten_thread_free_data=u.asm.zb).apply(null,arguments)},Ae=u.__emscripten_thread_exit=function(){return(Ae=u.__emscripten_thread_exit=u.asm.Ab).apply(null,arguments)},Se=u._setThrew=function(){return(Se=u._setThrew=u.asm.Bb).apply(null,arguments)},Te=u._emscripten_stack_set_limits=function(){return(Te=u._emscripten_stack_set_limits=u.asm.Cb).apply(null,arguments)},Ee=u.stackSave=function(){return(Ee=u.stackSave=u.asm.Db).apply(null,arguments)},Me=u.stackRestore=function(){return(Me=u.stackRestore=u.asm.Eb).apply(null,arguments)},Ce=u.stackAlloc=function(){return(Ce=u.stackAlloc=u.asm.Fb).apply(null,arguments)},xe=u.___cxa_can_catch=function(){return(xe=u.___cxa_can_catch=u.asm.Gb).apply(null,arguments)},Re=u.___cxa_is_pointer_type=function(){return(Re=u.___cxa_is_pointer_type=u.asm.Hb).apply(null,arguments)},je=u.dynCall_j=function(){return(je=u.dynCall_j=u.asm.Ib).apply(null,arguments)},ke=u.dynCall_iiiiij=function(){return(ke=u.dynCall_iiiiij=u.asm.Jb).apply(null,arguments)},De=u.dynCall_jii=function(){return(De=u.dynCall_jii=u.asm.Kb).apply(null,arguments)},Pe=u.dynCall_viiiiij=function(){return(Pe=u.dynCall_viiiiij=u.asm.Lb).apply(null,arguments)},Ue=u.dynCall_vjji=function(){return(Ue=u.dynCall_vjji=u.asm.Mb).apply(null,arguments)},Fe=u.dynCall_viiijjjii=function(){return(Fe=u.dynCall_viiijjjii=u.asm.Nb).apply(null,arguments)},Ie=u.dynCall_iij=function(){return(Ie=u.dynCall_iij=u.asm.Ob).apply(null,arguments)},We=u.dynCall_ji=function(){return(We=u.dynCall_ji=u.asm.Pb).apply(null,arguments)},He=u.dynCall_iiiiiij=function(){return(He=u.dynCall_iiiiiij=u.asm.Qb).apply(null,arguments)},Le=u.dynCall_iiij=function(){return(Le=u.dynCall_iiij=u.asm.Rb).apply(null,arguments)};function ze(){function t(){if(!ve&&(ve=!0,u.calledRun=!0,!H)&&(O||dt(X),c(u),u.onRuntimeInitialized&&u.onRuntimeInitialized(),!O)){if(u.postRun)for("function"==typeof u.postRun&&(u.postRun=[u.postRun]);u.postRun.length;){var t=u.postRun.shift();Z.unshift(t)}dt(Z)}}if(!(0<et))if(O)c(u),O||dt(X),postMessage({cmd:"loaded"});else{if(u.preRun)for("function"==typeof u.preRun&&(u.preRun=[u.preRun]);u.preRun.length;)K();dt(q),0<et||(u.setStatus?(u.setStatus("Running..."),setTimeout((function(){setTimeout((function(){u.setStatus("")}),1),t()}),1)):t())}}if(u.UTF8ToString=Y,u.stringToUTF8=function(t,e,n){return B(t,r(),e,n)},u.lengthBytesUTF8=G,u.keepRuntimeAlive=Q,u.wasmMemory=j,u.stackSave=Ee,u.stackRestore=Me,u.stackAlloc=Ce,u.ExitStatus=ct,u.PThread=ht,rt=function t(){ve||ze(),ve||(rt=t)},u.preInit)for("function"==typeof u.preInit&&(u.preInit=[u.preInit]);0<u.preInit.length;)u.preInit.pop()();return ze(),t.ready});t.exports=r},932:(t,e,n)=>{var _scriptDir,r=(_scriptDir=(_scriptDir="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0)||"/index.js",function(t){var e,r,a;t=t||{},e||(e=void 0!==t?t:{}),e.ready=new Promise((function(t,e){r=t,a=e}));var i,o,u,c,s,l,f=Object.assign({},e),p="./this.program",h=(t,e)=>{throw e},d="object"==typeof window,y="function"==typeof importScripts,b="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,m="";b?(m=y?n(908).dirname(m)+"/":"//",l=()=>{s||(c=n(384),s=n(908))},i=function(t,e){return l(),t=s.normalize(t),c.readFileSync(t,e?void 0:"utf8")},u=t=>((t=i(t,!0)).buffer||(t=new Uint8Array(t)),t),o=(t,e,n)=>{l(),t=s.normalize(t),c.readFile(t,(function(t,r){t?n(t):e(r.buffer)}))},1<process.argv.length&&(p=process.argv[1].replace(/\\\\/g,"/")),process.argv.slice(2),process.on("uncaughtException",(function(t){if(!(t instanceof J))throw t})),process.on("unhandledRejection",(function(t){throw t})),h=(t,e)=>{if(_||0<L)throw process.exitCode=t,e;e instanceof J||w("exiting due to exception: "+e),process.exit(t)},e.inspect=function(){return"[Emscripten Module object]"}):(d||y)&&(y?m=self.location.href:"undefined"!=typeof document&&document.currentScript&&(m=document.currentScript.src),_scriptDir&&(m=_scriptDir),m=0!==m.indexOf("blob:")?m.substr(0,m.replace(/[?#].*/,"").lastIndexOf("/")+1):"",i=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.send(null),e.responseText},y&&(u=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),o=(t,e,n)=>{var r=new XMLHttpRequest;r.open("GET",t,!0),r.responseType="arraybuffer",r.onload=()=>{200==r.status||0==r.status&&r.response?e(r.response):n()},r.onerror=n,r.send(null)});var g,v=e.print||console.log.bind(console),w=e.printErr||console.warn.bind(console);Object.assign(e,f),f=null,e.thisProgram&&(p=e.thisProgram),e.quit&&(h=e.quit),e.wasmBinary&&(g=e.wasmBinary);var _=e.noExitRuntime||!1;"object"!=typeof WebAssembly&&V("no native wasm support detected");var O,A,S,T,E,M,C=!1,x="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function R(t,e,n){var r=(e>>>=0)+n;for(n=e;t[n]&&!(n>=r);)++n;if(16<n-e&&t.buffer&&x)return x.decode(t.subarray(e,n));for(r="";e<n;){var a=t[e++];if(128&a){var i=63&t[e++];if(192==(224&a))r+=String.fromCharCode((31&a)<<6|i);else{var o=63&t[e++];65536>(a=224==(240&a)?(15&a)<<12|i<<6|o:(7&a)<<18|i<<12|o<<6|63&t[e++])?r+=String.fromCharCode(a):(a-=65536,r+=String.fromCharCode(55296|a>>10,56320|1023&a))}}else r+=String.fromCharCode(a)}return r}function j(t,e){return(t>>>=0)?R(T,t,e):""}function k(t,e,n,r){if(!(0<r))return 0;var a=n>>>=0;r=n+r-1;for(var i=0;i<t.length;++i){var o=t.charCodeAt(i);if(55296<=o&&57343>=o&&(o=65536+((1023&o)<<10)|1023&t.charCodeAt(++i)),127>=o){if(n>=r)break;e[n++>>>0]=o}else{if(2047>=o){if(n+1>=r)break;e[n++>>>0]=192|o>>6}else{if(65535>=o){if(n+2>=r)break;e[n++>>>0]=224|o>>12}else{if(n+3>=r)break;e[n++>>>0]=240|o>>18,e[n++>>>0]=128|o>>12&63}e[n++>>>0]=128|o>>6&63}e[n++>>>0]=128|63&o}}return e[n>>>0]=0,n-a}function D(t){for(var e=0,n=0;n<t.length;++n){var r=t.charCodeAt(n);127>=r?e++:2047>=r?e+=2:55296<=r&&57343>=r?(e+=4,++n):e+=3}return e}function P(){var t=O.buffer;A=t,e.HEAP8=S=new Int8Array(t),e.HEAP16=new Int16Array(t),e.HEAP32=E=new Int32Array(t),e.HEAPU8=T=new Uint8Array(t),e.HEAPU16=new Uint16Array(t),e.HEAPU32=M=new Uint32Array(t),e.HEAPF32=new Float32Array(t),e.HEAPF64=new Float64Array(t)}var U,F=[],I=[],W=[],H=[],L=0;function z(){var t=e.preRun.shift();F.unshift(t)}var Y,B=0,G=null,N=null;function V(t){throw e.onAbort&&e.onAbort(t),w(t="Aborted("+t+")"),C=!0,t=new WebAssembly.RuntimeError(t+". Build with -sASSERTIONS for more info."),a(t),t}function $(){return Y.startsWith("data:application/octet-stream;base64,")}if(Y="ort-wasm.wasm",!$()){var q=Y;Y=e.locateFile?e.locateFile(q,m):m+q}function X(){var t=Y;try{if(t==Y&&g)return new Uint8Array(g);if(u)return u(t);throw"both async and sync fetching of the wasm failed"}catch(t){V(t)}}function J(t){this.name="ExitStatus",this.message="Program terminated with exit("+t+")",this.status=t}function Z(t){for(;0<t.length;)t.shift()(e)}var Q=[],K=0,tt=0;function et(t){this.Db=t,this.zb=t-24,this.Ub=function(t){M[this.zb+4>>2>>>0]=t},this.Eb=function(){return M[this.zb+4>>2>>>0]},this.Sb=function(t){M[this.zb+8>>2>>>0]=t},this.Wb=function(){return M[this.zb+8>>2>>>0]},this.Tb=function(){E[this.zb>>2>>>0]=0},this.Ib=function(t){S[this.zb+12>>0>>>0]=t?1:0},this.Pb=function(){return 0!=S[this.zb+12>>0>>>0]},this.Jb=function(t){S[this.zb+13>>0>>>0]=t?1:0},this.Lb=function(){return 0!=S[this.zb+13>>0>>>0]},this.Rb=function(t,e){this.Fb(0),this.Ub(t),this.Sb(e),this.Tb(),this.Ib(!1),this.Jb(!1)},this.Nb=function(){E[this.zb>>2>>>0]+=1},this.Xb=function(){var t=E[this.zb>>2>>>0];return E[this.zb>>2>>>0]=t-1,1===t},this.Fb=function(t){M[this.zb+16>>2>>>0]=t},this.Ob=function(){return M[this.zb+16>>2>>>0]},this.Qb=function(){if(Mt(this.Eb()))return M[this.Db>>2>>>0];var t=this.Ob();return 0!==t?t:this.Db}}function nt(t){return vt(new et(t).zb)}var rt=[];function at(t){var e=rt[t];return e||(t>=rt.length&&(rt.length=t+1),rt[t]=e=U.get(t)),e}function it(t){var e=D(t)+1,n=gt(e);return n&&k(t,S,n,e),n}var ot={};function ut(){if(!ct){var t,e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:p||"./this.program"};for(t in ot)void 0===ot[t]?delete e[t]:e[t]=ot[t];var n=[];for(t in e)n.push(t+"="+e[t]);ct=n}return ct}var ct,st=[null,[],[]];function lt(t,e){var n=st[t];0===e||10===e?((1===t?v:w)(R(n,0)),n.length=0):n.push(e)}var ft=0;function pt(t){return 0==t%4&&(0!=t%100||0==t%400)}var ht=[31,29,31,30,31,30,31,31,30,31,30,31],dt=[31,28,31,30,31,30,31,31,30,31,30,31];function yt(t,e,n,r){function a(t,e,n){for(t="number"==typeof t?t.toString():t||"";t.length<e;)t=n[0]+t;return t}function i(t,e){return a(t,e,"0")}function o(t,e){function n(t){return 0>t?-1:0<t?1:0}var r;return 0===(r=n(t.getFullYear()-e.getFullYear()))&&0===(r=n(t.getMonth()-e.getMonth()))&&(r=n(t.getDate()-e.getDate())),r}function u(t){switch(t.getDay()){case 0:return new Date(t.getFullYear()-1,11,29);case 1:return t;case 2:return new Date(t.getFullYear(),0,3);case 3:return new Date(t.getFullYear(),0,2);case 4:return new Date(t.getFullYear(),0,1);case 5:return new Date(t.getFullYear()-1,11,31);case 6:return new Date(t.getFullYear()-1,11,30)}}function c(t){var e=t.Bb;for(t=new Date(new Date(t.Cb+1900,0,1).getTime());0<e;){var n=t.getMonth(),r=(pt(t.getFullYear())?ht:dt)[n];if(!(e>r-t.getDate())){t.setDate(t.getDate()+e);break}e-=r-t.getDate()+1,t.setDate(1),11>n?t.setMonth(n+1):(t.setMonth(0),t.setFullYear(t.getFullYear()+1))}return n=new Date(t.getFullYear()+1,0,4),e=u(new Date(t.getFullYear(),0,4)),n=u(n),0>=o(e,t)?0>=o(n,t)?t.getFullYear()+1:t.getFullYear():t.getFullYear()-1}var s=E[r+40>>2>>>0];for(var l in r={$b:E[r>>2>>>0],Zb:E[r+4>>2>>>0],Gb:E[r+8>>2>>>0],Kb:E[r+12>>2>>>0],Hb:E[r+16>>2>>>0],Cb:E[r+20>>2>>>0],Ab:E[r+24>>2>>>0],Bb:E[r+28>>2>>>0],bc:E[r+32>>2>>>0],Yb:E[r+36>>2>>>0],ac:s?j(s):""},n=j(n),s={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"})n=n.replace(new RegExp(l,"g"),s[l]);var f="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),p="January February March April May June July August September October November December".split(" ");for(l in s={"%a":function(t){return f[t.Ab].substring(0,3)},"%A":function(t){return f[t.Ab]},"%b":function(t){return p[t.Hb].substring(0,3)},"%B":function(t){return p[t.Hb]},"%C":function(t){return i((t.Cb+1900)/100|0,2)},"%d":function(t){return i(t.Kb,2)},"%e":function(t){return a(t.Kb,2," ")},"%g":function(t){return c(t).toString().substring(2)},"%G":function(t){return c(t)},"%H":function(t){return i(t.Gb,2)},"%I":function(t){return 0==(t=t.Gb)?t=12:12<t&&(t-=12),i(t,2)},"%j":function(t){for(var e=0,n=0;n<=t.Hb-1;e+=(pt(t.Cb+1900)?ht:dt)[n++]);return i(t.Kb+e,3)},"%m":function(t){return i(t.Hb+1,2)},"%M":function(t){return i(t.Zb,2)},"%n":function(){return"\\n"},"%p":function(t){return 0<=t.Gb&&12>t.Gb?"AM":"PM"},"%S":function(t){return i(t.$b,2)},"%t":function(){return"\\t"},"%u":function(t){return t.Ab||7},"%U":function(t){return i(Math.floor((t.Bb+7-t.Ab)/7),2)},"%V":function(t){var e=Math.floor((t.Bb+7-(t.Ab+6)%7)/7);if(2>=(t.Ab+371-t.Bb-2)%7&&e++,e)53==e&&(4==(n=(t.Ab+371-t.Bb)%7)||3==n&&pt(t.Cb)||(e=1));else{e=52;var n=(t.Ab+7-t.Bb-1)%7;(4==n||5==n&&pt(t.Cb%400-1))&&e++}return i(e,2)},"%w":function(t){return t.Ab},"%W":function(t){return i(Math.floor((t.Bb+7-(t.Ab+6)%7)/7),2)},"%y":function(t){return(t.Cb+1900).toString().substring(2)},"%Y":function(t){return t.Cb+1900},"%z":function(t){var e=0<=(t=t.Yb);return t=Math.abs(t)/60,(e?"+":"-")+String("0000"+(t/60*100+t%60)).slice(-4)},"%Z":function(t){return t.ac},"%%":function(){return"%"}},n=n.replace(/%%/g,"\\0\\0"),s)n.includes(l)&&(n=n.replace(new RegExp(l,"g"),s[l](r)));return l=function(t){var e=Array(D(t)+1);return k(t,e,0,e.length),e}(n=n.replace(/\\0\\0/g,"%")),l.length>e?0:(S.set(l,t>>>0),l.length-1)}var bt={a:function(t){return gt(t+24)+24},m:function(t){return(t=new et(t)).Pb()||(t.Ib(!0),K--),t.Jb(!1),Q.push(t),t.Nb(),t.Qb()},ia:function(t){throw w("Unexpected exception thrown, this is not properly supported - aborting"),C=!0,t},w:function(){Ot(0);var t=Q.pop();if(t.Xb()&&!t.Lb()){var e=t.Wb();e&&at(e)(t.Db),nt(t.Db)}tt=0},d:function(){var t=tt;if(!t)return ft=0;var e=new et(t);e.Fb(t);var n=e.Eb();if(!n)return ft=0,t;for(var r=Array.prototype.slice.call(arguments),a=0;a<r.length;a++){var i=r[a];if(0===i||i===n)break;if(Et(i,n,e.zb+16))return ft=i,t}return ft=n,t},k:function(){var t=tt;if(!t)return ft=0;var e=new et(t);e.Fb(t);var n=e.Eb();if(!n)return ft=0,t;for(var r=Array.prototype.slice.call(arguments),a=0;a<r.length;a++){var i=r[a];if(0===i||i===n)break;if(Et(i,n,e.zb+16))return ft=i,t}return ft=n,t},g:function(){var t=tt;if(!t)return ft=0;var e=new et(t);e.Fb(t);var n=e.Eb();if(!n)return ft=0,t;for(var r=Array.prototype.slice.call(arguments),a=0;a<r.length;a++){var i=r[a];if(0===i||i===n)break;if(Et(i,n,e.zb+16))return ft=i,t}return ft=n,t},s:nt,L:function(){var t=Q.pop();t||V("no exception to throw");var e=t.Db;throw t.Lb()||(Q.push(t),t.Jb(!0),t.Ib(!1),K++),tt=e,e},b:function(t,e,n){throw new et(t).Rb(e,n),tt=t,K++,t},la:function(){return K},i:function(t){throw tt||(tt=t),t},H:function(){return 0},Ba:function(){},pa:function(){},ra:function(){},ka:function(){return 0},za:function(){},ua:function(){},ya:function(){},R:function(){},qa:function(){},na:function(){},Aa:function(){},oa:function(){},Ha:function(){},Ja:function(){V("To use dlopen, you need enable dynamic linking, see https://github.com/emscripten-core/emscripten/wiki/Linking")},Ia:function(){V("To use dlopen, you need enable dynamic linking, see https://github.com/emscripten-core/emscripten/wiki/Linking")},S:function(){return Date.now()},Ca:function(){return!0},Da:function(t,e){t=new Date(1e3*(M[t>>>2]+4294967296*E[t+4>>>2])),E[e>>2>>>0]=t.getUTCSeconds(),E[e+4>>2>>>0]=t.getUTCMinutes(),E[e+8>>2>>>0]=t.getUTCHours(),E[e+12>>2>>>0]=t.getUTCDate(),E[e+16>>2>>>0]=t.getUTCMonth(),E[e+20>>2>>>0]=t.getUTCFullYear()-1900,E[e+24>>2>>>0]=t.getUTCDay(),E[e+28>>2>>>0]=(t.getTime()-Date.UTC(t.getUTCFullYear(),0,1,0,0,0,0))/864e5|0},Ea:function(t,e){t=new Date(1e3*(M[t>>>2]+4294967296*E[t+4>>>2])),E[e>>2>>>0]=t.getSeconds(),E[e+4>>2>>>0]=t.getMinutes(),E[e+8>>2>>>0]=t.getHours(),E[e+12>>2>>>0]=t.getDate(),E[e+16>>2>>>0]=t.getMonth(),E[e+20>>2>>>0]=t.getFullYear()-1900,E[e+24>>2>>>0]=t.getDay();var n=new Date(t.getFullYear(),0,1);E[e+28>>2>>>0]=(t.getTime()-n.getTime())/864e5|0,E[e+36>>2>>>0]=-60*t.getTimezoneOffset();var r=new Date(t.getFullYear(),6,1).getTimezoneOffset();n=n.getTimezoneOffset(),E[e+32>>2>>>0]=0|(r!=n&&t.getTimezoneOffset()==Math.min(n,r))},Fa:function(t){var e=new Date(E[t+20>>2>>>0]+1900,E[t+16>>2>>>0],E[t+12>>2>>>0],E[t+8>>2>>>0],E[t+4>>2>>>0],E[t>>2>>>0],0),n=E[t+32>>2>>>0],r=e.getTimezoneOffset(),a=new Date(e.getFullYear(),0,1),i=new Date(e.getFullYear(),6,1).getTimezoneOffset(),o=a.getTimezoneOffset(),u=Math.min(o,i);return 0>n?E[t+32>>2>>>0]=Number(i!=o&&u==r):0<n!=(u==r)&&(i=Math.max(o,i),e.setTime(e.getTime()+6e4*((0<n?u:i)-r))),E[t+24>>2>>>0]=e.getDay(),E[t+28>>2>>>0]=(e.getTime()-a.getTime())/864e5|0,E[t>>2>>>0]=e.getSeconds(),E[t+4>>2>>>0]=e.getMinutes(),E[t+8>>2>>>0]=e.getHours(),E[t+12>>2>>>0]=e.getDate(),E[t+16>>2>>>0]=e.getMonth(),e.getTime()/1e3|0},sa:function(){return-52},ta:function(){},Ga:function t(e,n,r){t.Vb||(t.Vb=!0,function(t,e,n){function r(t){return(t=t.toTimeString().match(/\\(([A-Za-z ]+)\\)$/))?t[1]:"GMT"}var a=(new Date).getFullYear(),i=new Date(a,0,1),o=new Date(a,6,1);a=i.getTimezoneOffset();var u=o.getTimezoneOffset();E[t>>2>>>0]=60*Math.max(a,u),E[e>>2>>>0]=Number(a!=u),t=r(i),e=r(o),t=it(t),e=it(e),u<a?(M[n>>2>>>0]=t,M[n+4>>2>>>0]=e):(M[n>>2>>>0]=e,M[n+4>>2>>>0]=t)}(e,n,r))},B:function(){V("")},ma:function(){return 4294901760},I:b?()=>{var t=process.hrtime();return 1e3*t[0]+t[1]/1e6}:()=>performance.now(),xa:function(t,e,n){T.copyWithin(t>>>0,e>>>0,e+n>>>0)},G:function(t){var e=T.length;if(4294901760<(t>>>=0))return!1;for(var n=1;4>=n;n*=2){var r=e*(1+.2/n);r=Math.min(r,t+100663296);var a=Math;r=Math.max(t,r),a=a.min.call(a,4294901760,r+(65536-r%65536)%65536);t:{try{O.grow(a-A.byteLength+65535>>>16),P();var i=1;break t}catch(t){}i=void 0}if(i)return!0}return!1},va:function(t,e){var n=0;return ut().forEach((function(r,a){var i=e+n;for(a=M[t+4*a>>2>>>0]=i,i=0;i<r.length;++i)S[a++>>0>>>0]=r.charCodeAt(i);S[a>>0>>>0]=0,n+=r.length+1})),0},wa:function(t,e){var n=ut();M[t>>2>>>0]=n.length;var r=0;return n.forEach((function(t){r+=t.length+1})),M[e>>2>>>0]=r,0},ba:function(t){_||0<L||(_t(),Z(W),wt(0),st[1].length&&lt(1,10),st[2].length&&lt(2,10)),_||0<L||(e.onExit&&e.onExit(t),C=!0),h(t,new J(t))},E:function(){return 52},Q:function(){return 52},ca:function(){return 70},P:function(t,e,n,r){for(var a=0,i=0;i<n;i++){var o=M[e>>2>>>0],u=M[e+4>>2>>>0];e+=8;for(var c=0;c<u;c++)lt(t,T[o+c>>>0]);a+=u}return M[r>>2>>>0]=a,0},c:function(){return ft},ja:function t(e,r){t.Mb||(t.Mb=function(){if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues){var t=new Uint8Array(1);return()=>(crypto.getRandomValues(t),t[0])}if(b)try{var e=n(Object(function(){var t=new Error("Cannot find module \'crypto\'");throw t.code="MODULE_NOT_FOUND",t}()));return()=>e.randomBytes(1)[0]}catch(t){}return()=>V("randomDevice")}());for(var a=0;a<r;a++)S[e+a>>0>>>0]=t.Mb();return 0},ea:function(t,e,n){var r=At();try{return at(t)(e,n)}catch(t){if(St(r),t!==t+0)throw t;Ot(1,0)}},fa:function(t,e,n){var r=At();try{return at(t)(e,n)}catch(t){if(St(r),t!==t+0)throw t;Ot(1,0)}},J:function(t){var e=At();try{return at(t)()}catch(t){if(St(e),t!==t+0)throw t;Ot(1,0)}},e:function(t,e){var n=At();try{return at(t)(e)}catch(t){if(St(n),t!==t+0)throw t;Ot(1,0)}},N:function(t,e,n){var r=At();try{return at(t)(e,n)}catch(t){if(St(r),t!==t+0)throw t;Ot(1,0)}},O:function(t,e,n){var r=At();try{return at(t)(e,n)}catch(t){if(St(r),t!==t+0)throw t;Ot(1,0)}},j:function(t,e,n){var r=At();try{return at(t)(e,n)}catch(t){if(St(r),t!==t+0)throw t;Ot(1,0)}},o:function(t,e,n,r){var a=At();try{return at(t)(e,n,r)}catch(t){if(St(a),t!==t+0)throw t;Ot(1,0)}},p:function(t,e,n,r,a){var i=At();try{return at(t)(e,n,r,a)}catch(t){if(St(i),t!==t+0)throw t;Ot(1,0)}},M:function(t,e,n,r,a,i){var o=At();try{return at(t)(e,n,r,a,i)}catch(t){if(St(o),t!==t+0)throw t;Ot(1,0)}},r:function(t,e,n,r,a,i){var o=At();try{return at(t)(e,n,r,a,i)}catch(t){if(St(o),t!==t+0)throw t;Ot(1,0)}},v:function(t,e,n,r,a,i,o){var u=At();try{return at(t)(e,n,r,a,i,o)}catch(t){if(St(u),t!==t+0)throw t;Ot(1,0)}},K:function(t,e,n,r,a,i,o,u){var c=At();try{return at(t)(e,n,r,a,i,o,u)}catch(t){if(St(c),t!==t+0)throw t;Ot(1,0)}},D:function(t,e,n,r,a,i,o,u,c,s,l,f){var p=At();try{return at(t)(e,n,r,a,i,o,u,c,s,l,f)}catch(t){if(St(p),t!==t+0)throw t;Ot(1,0)}},X:function(t,e,n,r,a,i,o,u){var c=At();try{return Ft(t,e,n,r,a,i,o,u)}catch(t){if(St(c),t!==t+0)throw t;Ot(1,0)}},V:function(t,e,n,r,a,i,o){var u=At();try{return xt(t,e,n,r,a,i,o)}catch(t){if(St(u),t!==t+0)throw t;Ot(1,0)}},U:function(t,e,n,r,a){var i=At();try{return It(t,e,n,r,a)}catch(t){if(St(i),t!==t+0)throw t;Ot(1,0)}},Z:function(t,e,n,r){var a=At();try{return Pt(t,e,n,r)}catch(t){if(St(a),t!==t+0)throw t;Ot(1,0)}},W:function(t){var e=At();try{return Ct(t)}catch(t){if(St(e),t!==t+0)throw t;Ot(1,0)}},Y:function(t,e){var n=At();try{return Ut(t,e)}catch(t){if(St(n),t!==t+0)throw t;Ot(1,0)}},T:function(t,e,n){var r=At();try{return Rt(t,e,n)}catch(t){if(St(r),t!==t+0)throw t;Ot(1,0)}},f:function(t){var e=At();try{at(t)()}catch(t){if(St(e),t!==t+0)throw t;Ot(1,0)}},q:function(t,e){var n=At();try{at(t)(e)}catch(t){if(St(n),t!==t+0)throw t;Ot(1,0)}},h:function(t,e,n){var r=At();try{at(t)(e,n)}catch(t){if(St(r),t!==t+0)throw t;Ot(1,0)}},da:function(t,e,n,r){var a=At();try{at(t)(e,n,r)}catch(t){if(St(a),t!==t+0)throw t;Ot(1,0)}},l:function(t,e,n,r){var a=At();try{at(t)(e,n,r)}catch(t){if(St(a),t!==t+0)throw t;Ot(1,0)}},t:function(t,e,n,r,a){var i=At();try{at(t)(e,n,r,a)}catch(t){if(St(i),t!==t+0)throw t;Ot(1,0)}},u:function(t,e,n,r,a,i){var o=At();try{at(t)(e,n,r,a,i)}catch(t){if(St(o),t!==t+0)throw t;Ot(1,0)}},x:function(t,e,n,r,a,i,o){var u=At();try{at(t)(e,n,r,a,i,o)}catch(t){if(St(u),t!==t+0)throw t;Ot(1,0)}},z:function(t,e,n,r,a,i,o,u){var c=At();try{at(t)(e,n,r,a,i,o,u)}catch(t){if(St(c),t!==t+0)throw t;Ot(1,0)}},ga:function(t,e,n,r,a,i,o,u,c){var s=At();try{at(t)(e,n,r,a,i,o,u,c)}catch(t){if(St(s),t!==t+0)throw t;Ot(1,0)}},A:function(t,e,n,r,a,i,o,u,c,s,l){var f=At();try{at(t)(e,n,r,a,i,o,u,c,s,l)}catch(t){if(St(f),t!==t+0)throw t;Ot(1,0)}},C:function(t,e,n,r,a,i,o,u,c,s,l,f,p,h,d,y){var b=At();try{at(t)(e,n,r,a,i,o,u,c,s,l,f,p,h,d,y)}catch(t){if(St(b),t!==t+0)throw t;Ot(1,0)}},aa:function(t,e,n,r,a,i,o,u){var c=At();try{jt(t,e,n,r,a,i,o,u)}catch(t){if(St(c),t!==t+0)throw t;Ot(1,0)}},_:function(t,e,n,r,a,i,o,u,c,s,l,f){var p=At();try{Dt(t,e,n,r,a,i,o,u,c,s,l,f)}catch(t){if(St(p),t!==t+0)throw t;Ot(1,0)}},$:function(t,e,n,r,a,i){var o=At();try{kt(t,e,n,r,a,i)}catch(t){if(St(o),t!==t+0)throw t;Ot(1,0)}},n:function(t){return t},F:function(t){ft=t},ha:yt,y:function(t,e,n,r){return yt(t,e,n,r)}};!function(){function t(t){e.asm=t.exports,O=e.asm.Ka,P(),U=e.asm.ib,I.unshift(e.asm.La),B--,e.monitorRunDependencies&&e.monitorRunDependencies(B),0==B&&(null!==G&&(clearInterval(G),G=null),N&&(t=N,N=null,t()))}function n(e){t(e.instance)}function r(t){return function(){if(!g&&(d||y)){if("function"==typeof fetch&&!Y.startsWith("file://"))return fetch(Y,{credentials:"same-origin"}).then((function(t){if(!t.ok)throw"failed to load wasm binary file at \'"+Y+"\'";return t.arrayBuffer()})).catch((function(){return X()}));if(o)return new Promise((function(t,e){o(Y,(function(e){t(new Uint8Array(e))}),e)}))}return Promise.resolve().then((function(){return X()}))}().then((function(t){return WebAssembly.instantiate(t,i)})).then((function(t){return t})).then(t,(function(t){w("failed to asynchronously prepare wasm: "+t),V(t)}))}var i={a:bt};if(B++,e.monitorRunDependencies&&e.monitorRunDependencies(B),e.instantiateWasm)try{return e.instantiateWasm(i,t)}catch(t){return w("Module.instantiateWasm callback failed with error: "+t),!1}(g||"function"!=typeof WebAssembly.instantiateStreaming||$()||Y.startsWith("file://")||b||"function"!=typeof fetch?r(n):fetch(Y,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,i).then(n,(function(t){return w("wasm streaming compile failed: "+t),w("falling back to ArrayBuffer instantiation"),r(n)}))}))).catch(a)}(),e.___wasm_call_ctors=function(){return(e.___wasm_call_ctors=e.asm.La).apply(null,arguments)},e._OrtInit=function(){return(e._OrtInit=e.asm.Ma).apply(null,arguments)},e._OrtCreateSessionOptions=function(){return(e._OrtCreateSessionOptions=e.asm.Na).apply(null,arguments)},e._OrtAppendExecutionProvider=function(){return(e._OrtAppendExecutionProvider=e.asm.Oa).apply(null,arguments)},e._OrtAddSessionConfigEntry=function(){return(e._OrtAddSessionConfigEntry=e.asm.Pa).apply(null,arguments)},e._OrtReleaseSessionOptions=function(){return(e._OrtReleaseSessionOptions=e.asm.Qa).apply(null,arguments)},e._OrtCreateSession=function(){return(e._OrtCreateSession=e.asm.Ra).apply(null,arguments)},e._OrtReleaseSession=function(){return(e._OrtReleaseSession=e.asm.Sa).apply(null,arguments)},e._OrtGetInputCount=function(){return(e._OrtGetInputCount=e.asm.Ta).apply(null,arguments)},e._OrtGetOutputCount=function(){return(e._OrtGetOutputCount=e.asm.Ua).apply(null,arguments)},e._OrtGetInputName=function(){return(e._OrtGetInputName=e.asm.Va).apply(null,arguments)},e._OrtGetOutputName=function(){return(e._OrtGetOutputName=e.asm.Wa).apply(null,arguments)},e._OrtFree=function(){return(e._OrtFree=e.asm.Xa).apply(null,arguments)},e._OrtCreateTensor=function(){return(e._OrtCreateTensor=e.asm.Ya).apply(null,arguments)},e._OrtGetTensorData=function(){return(e._OrtGetTensorData=e.asm.Za).apply(null,arguments)},e._OrtReleaseTensor=function(){return(e._OrtReleaseTensor=e.asm._a).apply(null,arguments)},e._OrtCreateRunOptions=function(){return(e._OrtCreateRunOptions=e.asm.$a).apply(null,arguments)},e._OrtAddRunConfigEntry=function(){return(e._OrtAddRunConfigEntry=e.asm.ab).apply(null,arguments)},e._OrtReleaseRunOptions=function(){return(e._OrtReleaseRunOptions=e.asm.bb).apply(null,arguments)},e._OrtRun=function(){return(e._OrtRun=e.asm.cb).apply(null,arguments)},e._OrtEndProfiling=function(){return(e._OrtEndProfiling=e.asm.db).apply(null,arguments)};var mt,gt=e._malloc=function(){return(gt=e._malloc=e.asm.eb).apply(null,arguments)},vt=e._free=function(){return(vt=e._free=e.asm.fb).apply(null,arguments)},wt=e._fflush=function(){return(wt=e._fflush=e.asm.gb).apply(null,arguments)},_t=e.___funcs_on_exit=function(){return(_t=e.___funcs_on_exit=e.asm.hb).apply(null,arguments)},Ot=e._setThrew=function(){return(Ot=e._setThrew=e.asm.jb).apply(null,arguments)},At=e.stackSave=function(){return(At=e.stackSave=e.asm.kb).apply(null,arguments)},St=e.stackRestore=function(){return(St=e.stackRestore=e.asm.lb).apply(null,arguments)},Tt=e.stackAlloc=function(){return(Tt=e.stackAlloc=e.asm.mb).apply(null,arguments)},Et=e.___cxa_can_catch=function(){return(Et=e.___cxa_can_catch=e.asm.nb).apply(null,arguments)},Mt=e.___cxa_is_pointer_type=function(){return(Mt=e.___cxa_is_pointer_type=e.asm.ob).apply(null,arguments)},Ct=e.dynCall_j=function(){return(Ct=e.dynCall_j=e.asm.pb).apply(null,arguments)},xt=e.dynCall_iiiiij=function(){return(xt=e.dynCall_iiiiij=e.asm.qb).apply(null,arguments)},Rt=e.dynCall_jii=function(){return(Rt=e.dynCall_jii=e.asm.rb).apply(null,arguments)},jt=e.dynCall_viiiiij=function(){return(jt=e.dynCall_viiiiij=e.asm.sb).apply(null,arguments)},kt=e.dynCall_vjji=function(){return(kt=e.dynCall_vjji=e.asm.tb).apply(null,arguments)},Dt=e.dynCall_viiijjjii=function(){return(Dt=e.dynCall_viiijjjii=e.asm.ub).apply(null,arguments)},Pt=e.dynCall_iij=function(){return(Pt=e.dynCall_iij=e.asm.vb).apply(null,arguments)},Ut=e.dynCall_ji=function(){return(Ut=e.dynCall_ji=e.asm.wb).apply(null,arguments)},Ft=e.dynCall_iiiiiij=function(){return(Ft=e.dynCall_iiiiiij=e.asm.xb).apply(null,arguments)},It=e.dynCall_iiij=function(){return(It=e.dynCall_iiij=e.asm.yb).apply(null,arguments)};function Wt(){function t(){if(!mt&&(mt=!0,e.calledRun=!0,!C)){if(Z(I),r(e),e.onRuntimeInitialized&&e.onRuntimeInitialized(),e.postRun)for("function"==typeof e.postRun&&(e.postRun=[e.postRun]);e.postRun.length;){var t=e.postRun.shift();H.unshift(t)}Z(H)}}if(!(0<B)){if(e.preRun)for("function"==typeof e.preRun&&(e.preRun=[e.preRun]);e.preRun.length;)z();Z(F),0<B||(e.setStatus?(e.setStatus("Running..."),setTimeout((function(){setTimeout((function(){e.setStatus("")}),1),t()}),1)):t())}}if(e.UTF8ToString=j,e.stringToUTF8=function(t,e,n){return k(t,T,e,n)},e.lengthBytesUTF8=D,e.stackSave=At,e.stackRestore=St,e.stackAlloc=Tt,N=function t(){mt||Wt(),mt||(N=t)},e.preInit)for("function"==typeof e.preInit&&(e.preInit=[e.preInit]);0<e.preInit.length;)e.preInit.pop()();return Wt(),t.ready});t.exports=r},967:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.iterateExtraOptions=void 0,e.iterateExtraOptions=(t,n,r,a)=>{if("object"==typeof t&&null!==t){if(r.has(t))throw new Error("Circular reference in options");r.add(t)}Object.entries(t).forEach((([t,i])=>{const o=n?n+t:t;if("object"==typeof i)(0,e.iterateExtraOptions)(i,o+".",r,a);else if("string"==typeof i||"number"==typeof i)a(o,i.toString());else{if("boolean"!=typeof i)throw new Error("Can\'t handle extra config type: "+typeof i);a(o,i?"1":"0")}}))}},586:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setRunOptions=void 0;const r=n(967),a=n(983),i=n(361);e.setRunOptions=t=>{const e=(0,i.getInstance)();let n=0;const o=[],u=t||{};try{if(void 0===(null==t?void 0:t.logSeverityLevel))u.logSeverityLevel=2;else if("number"!=typeof t.logSeverityLevel||!Number.isInteger(t.logSeverityLevel)||t.logSeverityLevel<0||t.logSeverityLevel>4)throw new Error(`log serverity level is not valid: ${t.logSeverityLevel}`);if(void 0===(null==t?void 0:t.logVerbosityLevel))u.logVerbosityLevel=0;else if("number"!=typeof t.logVerbosityLevel||!Number.isInteger(t.logVerbosityLevel))throw new Error(`log verbosity level is not valid: ${t.logVerbosityLevel}`);void 0===(null==t?void 0:t.terminate)&&(u.terminate=!1);let i=0;if(void 0!==(null==t?void 0:t.tag)&&(i=(0,a.allocWasmString)(t.tag,o)),n=e._OrtCreateRunOptions(u.logSeverityLevel,u.logVerbosityLevel,!!u.terminate,i),0===n)throw new Error("Can\'t create run options");return void 0!==(null==t?void 0:t.extra)&&(0,r.iterateExtraOptions)(t.extra,"",new WeakSet,((t,r)=>{const i=(0,a.allocWasmString)(t,o),u=(0,a.allocWasmString)(r,o);if(0!==e._OrtAddRunConfigEntry(n,i,u))throw new Error(`Can\'t set a run config entry: ${t} - ${r}`)})),[n,o]}catch(t){throw 0!==n&&e._OrtReleaseRunOptions(n),o.forEach(e._free),t}}},919:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setSessionOptions=void 0;const r=n(967),a=n(983),i=n(361);e.setSessionOptions=t=>{const e=(0,i.getInstance)();let n=0;const o=[],u=t||{};(t=>{t.extra||(t.extra={}),t.extra.session||(t.extra.session={});const e=t.extra.session;e.use_ort_model_bytes_directly||(e.use_ort_model_bytes_directly="1")})(u);try{void 0===(null==t?void 0:t.graphOptimizationLevel)&&(u.graphOptimizationLevel="all");const c=(t=>{switch(t){case"disabled":return 0;case"basic":return 1;case"extended":return 2;case"all":return 99;default:throw new Error(`unsupported graph optimization level: ${t}`)}})(u.graphOptimizationLevel);void 0===(null==t?void 0:t.enableCpuMemArena)&&(u.enableCpuMemArena=!0),void 0===(null==t?void 0:t.enableMemPattern)&&(u.enableMemPattern=!0),void 0===(null==t?void 0:t.executionMode)&&(u.executionMode="sequential");const s=(t=>{switch(t){case"sequential":return 0;case"parallel":return 1;default:throw new Error(`unsupported execution mode: ${t}`)}})(u.executionMode);let l=0;if(void 0!==(null==t?void 0:t.logId)&&(l=(0,a.allocWasmString)(t.logId,o)),void 0===(null==t?void 0:t.logSeverityLevel))u.logSeverityLevel=2;else if("number"!=typeof t.logSeverityLevel||!Number.isInteger(t.logSeverityLevel)||t.logSeverityLevel<0||t.logSeverityLevel>4)throw new Error(`log serverity level is not valid: ${t.logSeverityLevel}`);if(void 0===(null==t?void 0:t.logVerbosityLevel))u.logVerbosityLevel=0;else if("number"!=typeof t.logVerbosityLevel||!Number.isInteger(t.logVerbosityLevel))throw new Error(`log verbosity level is not valid: ${t.logVerbosityLevel}`);if(void 0===(null==t?void 0:t.enableProfiling)&&(u.enableProfiling=!1),n=e._OrtCreateSessionOptions(c,!!u.enableCpuMemArena,!!u.enableMemPattern,s,!!u.enableProfiling,0,l,u.logSeverityLevel,u.logVerbosityLevel),0===n)throw new Error("Can\'t create session options");return(null==t?void 0:t.executionProviders)&&((t,e,n)=>{for(const r of e){let e="string"==typeof r?r:r.name;switch(e){case"xnnpack":e="XNNPACK";break;case"wasm":case"cpu":continue;default:throw new Error(`not supported EP: ${e}`)}const o=(0,a.allocWasmString)(e,n);if(0!==(0,i.getInstance)()._OrtAppendExecutionProvider(t,o))throw new Error(`Can\'t append execution provider: ${e}`)}})(n,t.executionProviders,o),void 0!==(null==t?void 0:t.extra)&&(0,r.iterateExtraOptions)(t.extra,"",new WeakSet,((t,r)=>{const i=(0,a.allocWasmString)(t,o),u=(0,a.allocWasmString)(r,o);if(0!==e._OrtAddSessionConfigEntry(n,i,u))throw new Error(`Can\'t set a session config entry: ${t} - ${r}`)})),[n,o]}catch(t){throw 0!==n&&e._OrtReleaseSessionOptions(n),o.forEach(e._free),t}}},983:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.allocWasmString=void 0;const r=n(361);e.allocWasmString=(t,e)=>{const n=(0,r.getInstance)(),a=n.lengthBytesUTF8(t)+1,i=n._malloc(a);return n.stringToUTF8(t,i,a),e.push(i),i}},349:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.extractTransferableBuffers=e.endProfiling=e.run=e.releaseSession=e.createSession=e.createSessionFinalize=e.createSessionAllocate=e.initOrt=void 0;const r=n(586),a=n(919),i=n(983),o=n(361);e.initOrt=(t,e)=>{const n=(0,o.getInstance)()._OrtInit(t,e);if(0!==n)throw new Error(`Can\'t initialize onnxruntime. error code = ${n}`)};const u=new Map;e.createSessionAllocate=t=>{const e=(0,o.getInstance)(),n=e._malloc(t.byteLength);return e.HEAPU8.set(t,n),[n,t.byteLength]},e.createSessionFinalize=(t,e)=>{const n=(0,o.getInstance)();let r=0,i=0,c=[];try{if([i,c]=(0,a.setSessionOptions)(e),r=n._OrtCreateSession(t[0],t[1],i),0===r)throw new Error("Can\'t create a session")}finally{n._free(t[0]),n._OrtReleaseSessionOptions(i),c.forEach(n._free)}const s=n._OrtGetInputCount(r),l=n._OrtGetOutputCount(r),f=[],p=[],h=[],d=[];for(let t=0;t<s;t++){const e=n._OrtGetInputName(r,t);if(0===e)throw new Error("Can\'t get an input name");p.push(e),f.push(n.UTF8ToString(e))}for(let t=0;t<l;t++){const e=n._OrtGetOutputName(r,t);if(0===e)throw new Error("Can\'t get an output name");d.push(e),h.push(n.UTF8ToString(e))}return u.set(r,[r,p,d]),[r,f,h]},e.createSession=(t,n)=>{const r=(0,e.createSessionAllocate)(t);return(0,e.createSessionFinalize)(r,n)},e.releaseSession=t=>{const e=(0,o.getInstance)(),n=u.get(t);if(!n)throw new Error("invalid session id");const r=n[0],a=n[1],i=n[2];a.forEach(e._OrtFree),i.forEach(e._OrtFree),e._OrtReleaseSession(r),u.delete(t)};const c=t=>{switch(t){case"int8":return 3;case"uint8":return 2;case"bool":return 9;case"int16":return 5;case"uint16":return 4;case"int32":return 6;case"uint32":return 12;case"float32":return 1;case"float64":return 11;case"string":return 8;case"int64":return 7;case"uint64":return 13;default:throw new Error(`unsupported data type: ${t}`)}},s=t=>{switch(t){case 3:return"int8";case 2:return"uint8";case 9:return"bool";case 5:return"int16";case 4:return"uint16";case 6:return"int32";case 12:return"uint32";case 1:return"float32";case 11:return"float64";case 8:return"string";case 7:return"int64";case 13:return"uint64";default:throw new Error(`unsupported data type: ${t}`)}},l=t=>{switch(t){case"float32":return Float32Array;case"uint8":case"bool":return Uint8Array;case"int8":return Int8Array;case"uint16":return Uint16Array;case"int16":return Int16Array;case"int32":return Int32Array;case"float64":return Float64Array;case"uint32":return Uint32Array;case"int64":return BigInt64Array;case"uint64":return BigUint64Array;default:throw new Error(`unsupported type: ${t}`)}};e.run=(t,e,n,a,f)=>{const p=(0,o.getInstance)(),h=u.get(t);if(!h)throw new Error("invalid session id");const d=h[0],y=h[1],b=h[2],m=e.length,g=a.length;let v=0,w=[];const _=[],O=[];try{[v,w]=(0,r.setRunOptions)(f);for(let t=0;t<m;t++){const e=n[t][0],r=n[t][1],a=n[t][2];let o,u;if(Array.isArray(a)){u=4*a.length,o=p._malloc(u),O.push(o);let t=o/4;for(let e=0;e<a.length;e++){if("string"!=typeof a[e])throw new TypeError(`tensor data at index ${e} is not a string`);p.HEAPU32[t++]=(0,i.allocWasmString)(a[e],O)}}else u=a.byteLength,o=p._malloc(u),O.push(o),p.HEAPU8.set(new Uint8Array(a.buffer,a.byteOffset,u),o);const s=p.stackSave(),l=p.stackAlloc(4*r.length);try{let t=l/4;r.forEach((e=>p.HEAP32[t++]=e));const n=p._OrtCreateTensor(c(e),o,u,l,r.length);if(0===n)throw new Error("Can\'t create a tensor");_.push(n)}finally{p.stackRestore(s)}}const t=p.stackSave(),o=p.stackAlloc(4*m),u=p.stackAlloc(4*m),h=p.stackAlloc(4*g),A=p.stackAlloc(4*g);try{let n=o/4,r=u/4,i=h/4,c=A/4;for(let t=0;t<m;t++)p.HEAPU32[n++]=_[t],p.HEAPU32[r++]=y[e[t]];for(let t=0;t<g;t++)p.HEAPU32[i++]=0,p.HEAPU32[c++]=b[a[t]];let f=p._OrtRun(d,u,o,m,A,g,h,v);const w=[];if(0===f)for(let t=0;t<g;t++){const e=p.HEAPU32[h/4+t],n=p.stackSave(),r=p.stackAlloc(16);let a,i=0;try{if(f=p._OrtGetTensorData(e,r,r+4,r+8,r+12),0!==f)throw new Error(`Can\'t access output tensor data. error code = ${f}`);let t=r/4;const o=p.HEAPU32[t++];i=p.HEAPU32[t++];const u=p.HEAPU32[t++],c=p.HEAPU32[t++],h=[];for(let t=0;t<c;t++)h.push(p.HEAPU32[u/4+t]);p._OrtFree(u);const d=0===h.length?1:h.reduce(((t,e)=>t*e));if(a=s(o),"string"===a){const t=[];let e=i/4;for(let n=0;n<d;n++){const r=p.HEAPU32[e++],a=n===d-1?void 0:p.HEAPU32[e]-r;t.push(p.UTF8ToString(r,a))}w.push([a,h,t])}else{const t=new(l(a))(d);new Uint8Array(t.buffer,t.byteOffset,t.byteLength).set(p.HEAPU8.subarray(i,i+t.byteLength)),w.push([a,h,t])}}finally{p.stackRestore(n),"string"===a&&i&&p._free(i),p._OrtReleaseTensor(e)}}if(0===f)return w;throw new Error(`failed to call OrtRun(). error code = ${f}.`)}finally{p.stackRestore(t)}}finally{_.forEach(p._OrtReleaseTensor),O.forEach(p._free),p._OrtReleaseRunOptions(v),w.forEach(p._free)}},e.endProfiling=t=>{const e=(0,o.getInstance)(),n=u.get(t);if(!n)throw new Error("invalid session id");const r=n[0],a=e._OrtEndProfiling(r);if(0===a)throw new Error("Can\'t get an profile file name");e._OrtFree(a)},e.extractTransferableBuffers=t=>{const e=[];for(const n of t){const t=n[2];!Array.isArray(t)&&t.buffer&&e.push(t.buffer)}return e}},361:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(e,n);a&&!("get"in a?!e.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,a)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),a=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return a(e,t),e},o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.dispose=e.getInstance=e.initializeWebAssembly=void 0;const u=i(n(449)),c=o(n(932)),s=n(474);let l,f=!1,p=!1,h=!1;const d=(t,e)=>e?t?"ort-wasm-simd-threaded.wasm":"ort-wasm-threaded.wasm":t?"ort-wasm-simd.wasm":"ort-wasm.wasm";e.initializeWebAssembly=async t=>{if(f)return Promise.resolve();if(p)throw new Error("multiple calls to \'initializeWebAssembly()\' detected.");if(h)throw new Error("previous call to \'initializeWebAssembly()\' failed.");p=!0;const e=t.initTimeout,r=t.numThreads,a=t.simd,i=r>1&&(()=>{try{return"undefined"!=typeof SharedArrayBuffer&&("undefined"!=typeof MessageChannel&&(new MessageChannel).port1.postMessage(new SharedArrayBuffer(1)),WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,4,1,3,1,1,10,11,1,9,0,65,0,254,16,2,0,26,11])))}catch(t){return!1}})(),o=a&&(()=>{try{return WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,30,1,28,0,65,0,253,15,253,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,253,186,1,26,11]))}catch(t){return!1}})(),y="string"==typeof t.wasmPaths?t.wasmPaths:void 0,b=d(!1,i),m=d(o,i),g="object"==typeof t.wasmPaths?t.wasmPaths[m]:void 0;let v=!1;const w=[];if(e>0&&w.push(new Promise((t=>{setTimeout((()=>{v=!0,t()}),e)}))),w.push(new Promise(((t,e)=>{const r=i?s:c.default,a={locateFile:(t,e)=>i&&t.endsWith(".worker.js")&&"undefined"!=typeof Blob?URL.createObjectURL(new Blob([n(154)],{type:"text/javascript"})):t===b?null!=g?g:(null!=y?y:e)+m:e+t};if(i)if("undefined"==typeof Blob)a.mainScriptUrlOrBlob=u.join("/","ort-wasm-threaded.js");else{const t=`var ortWasmThreaded=(function(){var _scriptDir;return ${r.toString()}})();`;a.mainScriptUrlOrBlob=new Blob([t],{type:"text/javascript"})}r(a).then((e=>{p=!1,f=!0,l=e,t()}),(t=>{p=!1,h=!0,e(t)}))}))),await Promise.race(w),v)throw new Error(`WebAssembly backend initializing failed due to timeout: ${e}ms`)},e.getInstance=()=>{if(f&&l)return l;throw new Error("WebAssembly is not initialized yet.")},e.dispose=()=>{var t;!f||p||h||(p=!0,null===(t=l.PThread)||void 0===t||t.terminateAllThreads(),l=void 0,p=!1,f=!1,h=!0)}},154:t=>{"use strict";t.exports=\'"use strict";var e={},t="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node;if(t){var r=require("worker_threads"),a=r.parentPort;a.on("message",(e=>onmessage({data:e})));var o=require("fs");Object.assign(global,{self:global,require:require,Module:e,location:{href:__filename},Worker:r.Worker,importScripts:function(e){(0,eval)(o.readFileSync(e,"utf8"))},postMessage:function(e){a.postMessage(e)},performance:global.performance||{now:function(){return Date.now()}}})}var s=!1,n=[],i=function(){var e=Array.prototype.slice.call(arguments).join(" ");t?o.writeSync(2,e+"\\\\n"):console.error(e)};self.alert=function(){var t=Array.prototype.slice.call(arguments).join(" ");postMessage({cmd:"alert",text:t,threadId:e._pthread_self()})},e.instantiateWasm=(t,r)=>{var a=new WebAssembly.Instance(e.wasmModule,t);return r(a),e.wasmModule=null,a.exports},self.onunhandledrejection=e=>{throw e.reason??e},self.onmessage=t=>{try{if("load"===t.data.cmd){if(e.wasmModule=t.data.wasmModule,e.wasmMemory=t.data.wasmMemory,e.buffer=e.wasmMemory.buffer,e.ENVIRONMENT_IS_PTHREAD=!0,"string"==typeof t.data.urlOrBlob)importScripts(t.data.urlOrBlob);else{var r=URL.createObjectURL(t.data.urlOrBlob);importScripts(r),URL.revokeObjectURL(r)}ortWasmThreaded(e).then((function(t){e=t}))}else if("run"===t.data.cmd){e.__performance_now_clock_drift=performance.now()-t.data.time,e.__emscripten_thread_init(t.data.pthread_ptr,0,0,1),e.establishStackSpace(),e.PThread.receiveObjectTransfer(t.data),e.PThread.threadInitTLS(),s||(n.forEach((t=>{e.executeNotifiedProxyingQueue(t)})),n=[],s=!0);try{e.invokeEntryPoint(t.data.start_routine,t.data.arg)}catch(t){if("unwind"!=t){if(!(t instanceof e.ExitStatus))throw t;e.keepRuntimeAlive()||e.__emscripten_thread_exit(t.status)}}}else"cancel"===t.data.cmd?e._pthread_self()&&e.__emscripten_thread_exit(-1):"setimmediate"===t.data.target||("processProxyingQueue"===t.data.cmd?s?e.executeNotifiedProxyingQueue(t.data.queue):n.push(t.data.queue):(i("worker.js received unknown command "+t.data.cmd),i(t.data)))}catch(t){throw i("worker.js onmessage() captured an uncaught exception: "+t),t&&t.stack&&i(t.stack),e.__emscripten_thread_crashed&&e.__emscripten_thread_crashed(),t}};\\n\'},384:()=>{},993:()=>{},908:()=>{},953:()=>{},925:()=>{},449:()=>{}},e={};function n(r){var a=e[r];if(void 0!==a)return a.exports;var i=e[r]={exports:{}};return t[r].call(i.exports,i,i.exports,n),i.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),(()=>{"use strict";const t=n(349),e=n(361);self.onmessage=n=>{switch(n.data.type){case"init-wasm":(0,e.initializeWebAssembly)(n.data.in).then((()=>postMessage({type:"init-wasm"})),(t=>postMessage({type:"init-wasm",err:t})));break;case"init-ort":try{const{numThreads:e,loggingLevel:r}=n.data.in;(0,t.initOrt)(e,r),postMessage({type:"init-ort"})}catch(t){postMessage({type:"init-ort",err:t})}break;case"create_allocate":try{const{model:e}=n.data.in,r=(0,t.createSessionAllocate)(e);postMessage({type:"create_allocate",out:r})}catch(t){postMessage({type:"create_allocate",err:t})}break;case"create_finalize":try{const{modeldata:e,options:r}=n.data.in,a=(0,t.createSessionFinalize)(e,r);postMessage({type:"create_finalize",out:a})}catch(t){postMessage({type:"create_finalize",err:t})}break;case"create":try{const{model:e,options:r}=n.data.in,a=(0,t.createSession)(e,r);postMessage({type:"create",out:a})}catch(t){postMessage({type:"create",err:t})}break;case"release":try{const e=n.data.in;(0,t.releaseSession)(e),postMessage({type:"release"})}catch(t){postMessage({type:"release",err:t})}break;case"run":try{const{sessionId:e,inputIndices:r,inputs:a,outputIndices:i,options:o}=n.data.in,u=(0,t.run)(e,r,a,i,o);postMessage({type:"run",out:u},(0,t.extractTransferableBuffers)(u))}catch(t){postMessage({type:"run",err:t})}break;case"end-profiling":try{const e=n.data.in;(0,t.endProfiling)(e),postMessage({type:"end-profiling"})}catch(t){postMessage({type:"end-profiling",err:t})}}}})()})();\n',"Worker",void 0,void 0)}},477:
vendor: 8,397 bytes, lines 1865-1866
1865o=>{o.exports=function(n,c,d,h){var m=self||window;try{try{var p;try{p=new m.Blob([n])}catch{(p=new(m.BlobBuilder||m.WebKitBlobBuilder||m.MozBlobBuilder||m.MSBlobBuilder)).append(n),p=p.getBlob()}var w=m.URL||m.webkitURL,z=w.createObjectURL(p),A=new m[c](z,d);return w.revokeObjectURL(z),A}catch{return new m[c]("data:application/javascript,".concat(encodeURIComponent(n)),d)}}catch{if(!h)throw Error("Inline worker is not supported");return new m[c](h,d)}}},4154:o=>{o.exports=`"use strict";var e={},t="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node;if(t){var r=require("worker_threads"),a=r.parentPort;a.on("message",(e=>onmessage({data:e})));var o=require("fs");Object.assign(global,{self:global,require:require,Module:e,location:{href:__filename},Worker:r.Worker,importScripts:function(e){(0,eval)(o.readFileSync(e,"utf8"))},postMessage:function(e){a.postMessage(e)},performance:global.performance||{now:function(){return Date.now()}}})}var s=!1,n=[],i=function(){var e=Array.prototype.slice.call(arguments).join(" ");t?o.writeSync(2,e+"\\n"):console.error(e)};self.alert=function(){var t=Array.prototype.slice.call(arguments).join(" ");postMessage({cmd:"alert",text:t,threadId:e._pthread_self()})},e.instantiateWasm=(t,r)=>{var a=new WebAssembly.Instance(e.wasmModule,t);return r(a),e.wasmModule=null,a.exports},self.onunhandledrejection=e=>{throw e.reason??e},self.onmessage=t=>{try{if("load"===t.data.cmd){if(e.wasmModule=t.data.wasmModule,e.wasmMemory=t.data.wasmMemory,e.buffer=e.wasmMemory.buffer,e.ENVIRONMENT_IS_PTHREAD=!0,"string"==typeof t.data.urlOrBlob)importScripts(t.data.urlOrBlob);else{var r=URL.createObjectURL(t.data.urlOrBlob);importScripts(r),URL.revokeObjectURL(r)}ortWasmThreaded(e).then((function(t){e=t}))}else if("run"===t.data.cmd){e.__performance_now_clock_drift=performance.now()-t.data.time,e.__emscripten_thread_init(t.data.pthread_ptr,0,0,1),e.establishStackSpace(),e.PThread.receiveObjectTransfer(t.data),e.PThread.threadInitTLS(),s||(n.forEach((t=>{e.executeNotifiedProxyingQueue(t)})),n=[],s=!0);try{e.invokeEntryPoint(t.data.start_routine,t.data.arg)}catch(t){if("unwind"!=t){if(!(t instanceof e.ExitStatus))throw t;e.keepRuntimeAlive()||e.__emscripten_thread_exit(t.status)}}}else"cancel"===t.data.cmd?e._pthread_self()&&e.__emscripten_thread_exit(-1):"setimmediate"===t.data.target||("processProxyingQueue"===t.data.cmd?s?e.executeNotifiedProxyingQueue(t.data.queue):n.push(t.data.queue):(i("worker.js received unknown command "+t.data.cmd),i(t.data)))}catch(t){throw i("worker.js onmessage() captured an uncaught exception: "+t),t&&t.stack&&i(t.stack),e.__emscripten_thread_crashed&&e.__emscripten_thread_crashed(),t}};
1866`},1670:o=>{o.exports=__WEBPACK_EXTERNAL_MODULE__1670__},7067:()=>{},1296:()=>{},1384:()=>{},3993:()=>{},908:()=>{},6953:()=>{},9925:()=>{},2806:()=>{},6449:()=>{},2850:()=>{},5381:()=>{},5686:(o,n,c)=>{c.r(n),c.d(n,{flatbuffers:()=>d});var d={};d.Offset,d.Table,d.SIZEOF_SHORT=2,d.SIZEOF_INT=4,d.FILE_IDENTIFIER_LENGTH=4,d.SIZE_PREFIX_LENGTH=4,d.Encoding={UTF8_BYTES:1,UTF16_STRING:2},d.int32=new Int32Array(2),d.float32=new Float32Array(d.int32.buffer),d.float64=new Float64Array(d.int32.buffer),d.isLittleEndian=new Uint16Array(new Uint8Array([1,0]).buffer)[0]===1,d.Long=function(h,m){this.low=0|h,this.high=0|m},d.Long.create=function(h,m){return h==0&&m==0?d.Long.ZERO:new d.Long(h,m)},d.Long.prototype.toFloat64=function(){return(this.low>>>0)+4294967296*this.high},d.Long.prototype.equals=function(h){return this.low==h.low&&this.high==h.high},d.Long.ZERO=new d.Long(0,0),d.Builder=function(h){if(h)m=h;else var m=1024;this.bb=d.ByteBuffer.allocate(m),this.space=m,this.minalign=1,this.vtable=null,this.vtable_in_use=0,this.isNested=!1,this.object_start=0,this.vtables=[],this.vector_num_elems=0,this.force_defaults=!1},d.Builder.prototype.clear=function(){this.bb.clear(),this.space=this.bb.capacity(),this.minalign=1,this.vtable=null,this.vtable_in_use=0,this.isNested=!1,this.object_start=0,this.vtables=[],this.vector_num_elems=0,this.force_defaults=!1},d.Builder.prototype.forceDefaults=function(h){this.force_defaults=h},d.Builder.prototype.dataBuffer=function(){return this.bb},d.Builder.prototype.asUint8Array=function(){return this.bb.bytes().subarray(this.bb.position(),this.bb.position()+this.offset())},d.Builder.prototype.prep=function(h,m){h>this.minalign&&(this.minalign=h);for(var p=1+~(this.bb.capacity()-this.space+m)&h-1;this.space<p+h+m;){var w=this.bb.capacity();this.bb=d.Builder.growByteBuffer(this.bb),this.space+=this.bb.capacity()-w}this.pad(p)},d.Builder.prototype.pad=function(h){for(var m=0;m<h;m++)this.bb.writeInt8(--this.space,0)},d.Builder.prototype.writeInt8=function(h){this.bb.writeInt8(this.space-=1,h)},d.Builder.prototype.writeInt16=function(h){this.bb.writeInt16(this.space-=2,h)},d.Builder.prototype.writeInt32=function(h){this.bb.writeInt32(this.space-=4,h)},d.Builder.prototype.writeInt64=function(h){this.bb.writeInt64(this.space-=8,h)},d.Builder.prototype.writeFloat32=function(h){this.bb.writeFloat32(this.space-=4,h)},d.Builder.prototype.writeFloat64=function(h){this.bb.writeFloat64(this.space-=8,h)},d.Builder.prototype.addInt8=function(h){this.prep(1,0),this.writeInt8(h)},d.Builder.prototype.addInt16=function(h){this.prep(2,0),this.writeInt16(h)},d.Builder.prototype.addInt32=function(h){this.prep(4,0),this.writeInt32(h)},d.Builder.prototype.addInt64=function(h){this.prep(8,0),this.writeInt64(h)},d.Builder.prototype.addFloat32=function(h){this.prep(4,0),this.writeFloat32(h)},d.Builder.prototype.addFloat64=function(h){this.prep(8,0),this.writeFloat64(h)},d.Builder.prototype.addFieldInt8=function(h,m,p){(this.force_defaults||m!=p)&&(this.addInt8(m),this.slot(h))},d.Builder.prototype.addFieldInt16=function(h,m,p){(this.force_defaults||m!=p)&&(this.addInt16(m),this.slot(h))},d.Builder.prototype.addFieldInt32=function(h,m,p){(this.force_defaults||m!=p)&&(this.addInt32(m),this.slot(h))},d.Builder.prototype.addFieldInt64=function(h,m,p){!this.force_defaults&&m.equals(p)||(this.addInt64(m),this.slot(h))},d.Builder.prototype.addFieldFloat32=function(h,m,p){(this.force_defaults||m!=p)&&(this.addFloat32(m),this.slot(h))},d.Builder.prototype.addFieldFloat64=function(h,m,p){(this.force_defaults||m!=p)&&(this.addFloat64(m),this.slot(h))},d.Builder.prototype.addFieldOffset=function(h,m,p){(this.force_defaults||m!=p)&&(this.addOffset(m),this.slot(h))},d.Builder.prototype.addFieldStruct=function(h,m,p){m!=p&&(this.nested(m),this.slot(h))},d.Builder.prototype.nested=function(h){if(h!=this.offset())throw new Error("FlatBuffers: struct must be serialized inline.")},d.Builder.prototype.notNested=function(){if(this.isNested)throw new Error("FlatBuffers: object serialization must not be nested.")},d.Builder.prototype.slot=function(h){this.vtable[h]=this.offset()},d.Builder.prototype.offset=function(){return this.bb.capacity()-this.space},d.Builder.growByteBuffer=function(h){var m=h.capacity();if(3221225472&m)throw new Error("FlatBuffers: cannot grow buffer beyond 2 gigabytes.");var p=m<<1,w=d.ByteBuffer.allocate(p);return w.setPosition(p-m),w.bytes().set(h.bytes(),p-m),w},d.Builder.prototype.addOffset=function(h){this.prep(d.SIZEOF_INT,0),this.writeInt32(this.offset()-h+d.SIZEOF_INT)},d.Builder.prototype.startObject=function(h){this.notNested(),this.vtable==null&&(this.vtable=[]),this.vtable_in_use=h;for(var m=0;m<h;m++)this.vtable[m]=0;this.isNested=!0,this.object_start=this.offset()},d.Builder.prototype.endObject=function(){if(this.vtable==null||!this.isNested)throw new Error("FlatBuffers: endObject called without startObject");this.addInt32(0);for(var h=this.offset(),m=this.vtable_in_use-1;m>=0&&this.vtable[m]==0;m--);for(var p=m+1;m>=0;m--)this.addInt16(this.vtable[m]!=0?h-this.vtable[m]:0);this.addInt16(h-this.object_start);var w=(p+2)*d.SIZEOF_SHORT;this.addInt16(w);var z=0,A=this.space;e:for(m=0;m<this.vtables.length;m++){var y=this.bb.capacity()-this.vtables[m];if(w==this.bb.readInt16(y)){for(var s=d.SIZEOF_SHORT;s<w;s+=d.SIZEOF_SHORT)if(this.bb.readInt16(A+s)!=this.bb.readInt16(y+s))continue e;z=this.vtables[m];break}}return z?(this.space=this.bb.capacity()-h,this.bb.writeInt32(this.space,z-h)):(this.vtables.push(this.offset()),this.bb.writeInt32(this.bb.capacity()-h,this.offset()-h)),this.isNested=!1,h},d.Builder.prototype.finish=function(h,m,p){var w=p?d.SIZE_PREFIX_LENGTH:0;
vendor: 5,563 bytes, line 1866
1866if(m){var z=m;if(this.prep(this.minalign,d.SIZEOF_INT+d.FILE_IDENTIFIER_LENGTH+w),z.length!=d.FILE_IDENTIFIER_LENGTH)throw new Error("FlatBuffers: file identifier must be length "+d.FILE_IDENTIFIER_LENGTH);for(var A=d.FILE_IDENTIFIER_LENGTH-1;A>=0;A--)this.writeInt8(z.charCodeAt(A))}this.prep(this.minalign,d.SIZEOF_INT+w),this.addOffset(h),w&&this.addInt32(this.bb.capacity()-this.space),this.bb.setPosition(this.space)},d.Builder.prototype.finishSizePrefixed=function(h,m){this.finish(h,m,!0)},d.Builder.prototype.requiredField=function(h,m){var p=this.bb.capacity()-h,w=p-this.bb.readInt32(p);if(this.bb.readInt16(w+m)==0)throw new Error("FlatBuffers: field "+m+" must be set")},d.Builder.prototype.startVector=function(h,m,p){this.notNested(),this.vector_num_elems=m,this.prep(d.SIZEOF_INT,h*m),this.prep(p,h*m)},d.Builder.prototype.endVector=function(){return this.writeInt32(this.vector_num_elems),this.offset()},d.Builder.prototype.createString=function(h){if(h instanceof Uint8Array)var m=h;else{m=[];for(var p=0;p<h.length;){var w,z=h.charCodeAt(p++);(w=z<55296||z>=56320?z:(z<<10)+h.charCodeAt(p++)+-56613888)<128?m.push(w):(w<2048?m.push(w>>6&31|192):(w<65536?m.push(w>>12&15|224):m.push(w>>18&7|240,w>>12&63|128),m.push(w>>6&63|128)),m.push(63&w|128))}}this.addInt8(0),this.startVector(1,m.length,1),this.bb.setPosition(this.space-=m.length),p=0;for(var A=this.space,y=this.bb.bytes();p<m.length;p++)y[A++]=m[p];return this.endVector()},d.Builder.prototype.createLong=function(h,m){return d.Long.create(h,m)},d.ByteBuffer=function(h){this.bytes_=h,this.position_=0},d.ByteBuffer.allocate=function(h){return new d.ByteBuffer(new Uint8Array(h))},d.ByteBuffer.prototype.clear=function(){this.position_=0},d.ByteBuffer.prototype.bytes=function(){return this.bytes_},d.ByteBuffer.prototype.position=function(){return this.position_},d.ByteBuffer.prototype.setPosition=function(h){this.position_=h},d.ByteBuffer.prototype.capacity=function(){return this.bytes_.length},d.ByteBuffer.prototype.readInt8=function(h){return this.readUint8(h)<<24>>24},d.ByteBuffer.prototype.readUint8=function(h){return this.bytes_[h]},d.ByteBuffer.prototype.readInt16=function(h){return this.readUint16(h)<<16>>16},d.ByteBuffer.prototype.readUint16=function(h){return this.bytes_[h]|this.bytes_[h+1]<<8},d.ByteBuffer.prototype.readInt32=function(h){return this.bytes_[h]|this.bytes_[h+1]<<8|this.bytes_[h+2]<<16|this.bytes_[h+3]<<24},d.ByteBuffer.prototype.readUint32=function(h){return this.readInt32(h)>>>0},d.ByteBuffer.prototype.readInt64=function(h){return new d.Long(this.readInt32(h),this.readInt32(h+4))},d.ByteBuffer.prototype.readUint64=function(h){return new d.Long(this.readUint32(h),this.readUint32(h+4))},d.ByteBuffer.prototype.readFloat32=function(h){return d.int32[0]=this.readInt32(h),d.float32[0]},d.ByteBuffer.prototype.readFloat64=function(h){return d.int32[d.isLittleEndian?0:1]=this.readInt32(h),d.int32[d.isLittleEndian?1:0]=this.readInt32(h+4),d.float64[0]},d.ByteBuffer.prototype.writeInt8=function(h,m){this.bytes_[h]=m},d.ByteBuffer.prototype.writeUint8=function(h,m){this.bytes_[h]=m},d.ByteBuffer.prototype.writeInt16=function(h,m){this.bytes_[h]=m,this.bytes_[h+1]=m>>8},d.ByteBuffer.prototype.writeUint16=function(h,m){this.bytes_[h]=m,this.bytes_[h+1]=m>>8},d.ByteBuffer.prototype.writeInt32=function(h,m){this.bytes_[h]=m,this.bytes_[h+1]=m>>8,this.bytes_[h+2]=m>>16,this.bytes_[h+3]=m>>24},d.ByteBuffer.prototype.writeUint32=function(h,m){this.bytes_[h]=m,this.bytes_[h+1]=m>>8,this.bytes_[h+2]=m>>16,this.bytes_[h+3]=m>>24},d.ByteBuffer.prototype.writeInt64=function(h,m){this.writeInt32(h,m.low),this.writeInt32(h+4,m.high)},d.ByteBuffer.prototype.writeUint64=function(h,m){this.writeUint32(h,m.low),this.writeUint32(h+4,m.high)},d.ByteBuffer.prototype.writeFloat32=function(h,m){d.float32[0]=m,this.writeInt32(h,d.int32[0])},d.ByteBuffer.prototype.writeFloat64=function(h,m){d.float64[0]=m,this.writeInt32(h,d.int32[d.isLittleEndian?0:1]),this.writeInt32(h+4,d.int32[d.isLittleEndian?1:0])},d.ByteBuffer.prototype.getBufferIdentifier=function(){if(this.bytes_.length<this.position_+d.SIZEOF_INT+d.FILE_IDENTIFIER_LENGTH)throw new Error("FlatBuffers: ByteBuffer is too short to contain an identifier.");for(var h="",m=0;m<d.FILE_IDENTIFIER_LENGTH;m++)h+=String.fromCharCode(this.readInt8(this.position_+d.SIZEOF_INT+m));return h},d.ByteBuffer.prototype.__offset=function(h,m){var p=h-this.readInt32(h);return m<this.readInt16(p)?this.readInt16(p+m):0},d.ByteBuffer.prototype.__union=function(h,m){return h.bb_pos=m+this.readInt32(m),h.bb=this,h},d.ByteBuffer.prototype.__string=function(h,m){h+=this.readInt32(h);var p=this.readInt32(h),w="",z=0;if(h+=d.SIZEOF_INT,m===d.Encoding.UTF8_BYTES)return this.bytes_.subarray(h,h+p);for(;z<p;){var A,y=this.readUint8(h+z++);if(y<192)A=y;else{var s=this.readUint8(h+z++);if(y<224)A=(31&y)<<6|63&s;else{var e=this.readUint8(h+z++);A=y<240?(15&y)<<12|(63&s)<<6|63&e:(7&y)<<18|(63&s)<<12|(63&e)<<6|63&this.readUint8(h+z++)}}A<65536?w+=String.fromCharCode(A):(A-=65536,w+=String.fromCharCode(55296+(A>>10),56320+(1023&A)))}return w},d.ByteBuffer.prototype.__indirect=function(h){return h+this.readInt32(h)},d.ByteBuffer.prototype.__vector=function(h){return h+this.readInt32(h)+d.SIZEOF_INT},d.ByteBuffer.prototype.__vector_len=function(h){return this.readInt32(h+this.readInt32(h))},d.ByteBuffer.prototype.__has_identifier=function(h){if(h.length!=d.FILE_IDENTIFIER_LENGTH)throw new Error("FlatBuffers: file identifier must be length "+d.FILE_IDENTIFIER_LENGTH);for(var m=0;m<d.FILE_IDENTIFIER_LENGTH;
1866m++)if(h.charCodeAt(m)!=this.readInt8(this.position_+d.SIZEOF_INT+m))return!1;return!0},d.ByteBuffer.prototype.createLong=function(h,m){return d.Long.create(h,m)}}},__webpack_module_cache__={};function __webpack_require__(o){var n=__webpack_module_cache__[o];if(n!==void 0)return n.exports;var c=__webpack_module_cache__[o]={exports:{}};return __webpack_modules__[o].call(c.exports,c,c.exports,__webpack_require__),c.exports}__webpack_require__.n=o=>{var n=o&&o.__esModule?()=>o.default:()=>o;return __webpack_require__.d(n,{a:n}),n},__webpack_require__.d=(o,n)=>{for(var c in n)__webpack_require__.o(n,c)&&!__webpack_require__.o(o,c)&&Object.defineProperty(o,c,{enumerable:!0,get:n[c]})},__webpack_require__.g=(function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}})(),__webpack_require__.o=(o,n)=>Object.prototype.hasOwnProperty.call(o,n),__webpack_require__.r=o=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})};var __webpack_exports__=__webpack_require__(6018);return __webpack_exports__})()))})(ortWeb_min$1)),ortWeb_min$1.exports}var ortWeb_minExports=requireOrtWeb_min();const ortWeb_min=getDefaultExportFromCjs(ortWeb_minExports),ONNX_WEB=_mergeNamespaces({__proto__:null,default:ortWeb_min},[ortWeb_minExports]);let ONNX;const executionProviders=["wasm"];typeof process<"u"&&process?.release?.name==="node"?(ONNX=sharp??ONNX_NODE,executionProviders.unshift("cpu")):(ONNX=ortWeb_min??ONNX_WEB,typeof navigator<"u"&&/iP(hone|od|ad).+16_4.+AppleWebKit/.test(navigator.userAgent)&&(ONNX.env.wasm.simd=!1));const{env:onnx_env}=ONNX,VERSION="2.17.2",WEB_CACHE_AVAILABLE=typeof self<"u"&&"caches"in self,FS_AVAILABLE=!isEmpty(sharp),PATH_AVAILABLE=!isEmpty(sharp),RUNNING_LOCALLY=FS_AVAILABLE&&PATH_AVAILABLE,__dirname$1=RUNNING_LOCALLY?sharp.dirname(sharp.dirname(sharp.fileURLToPath(import.meta.url))):"./",DEFAULT_CACHE_DIR=RUNNING_LOCALLY?sharp.join(__dirname$1,"/.cache/"):null,DEFAULT_LOCAL_MODEL_PATH="/models/",localModelPath=RUNNING_LOCALLY?sharp.join(__dirname$1,DEFAULT_LOCAL_MODEL_PATH):DEFAULT_LOCAL_MODEL_PATH;onnx_env?.wasm&&(onnx_env.wasm.wasmPaths=RUNNING_LOCALLY?sharp.join(__dirname$1,"/dist/"):`https://cdn.jsdelivr.net/npm/@xenova/transformers@${VERSION}/dist/`);const env$1={version:VERSION,remoteHost:"https://huggingface.co/",remotePathTemplate:"{model}/resolve/{revision}/",localModelPath,useFS:FS_AVAILABLE,useBrowserCache:WEB_CACHE_AVAILABLE,useFSCache:FS_AVAILABLE,cacheDir:DEFAULT_CACHE_DIR};function isEmpty(o){return Object.keys(o).length===0}var define_process_env_default={};class FileResponse{_CONTENT_TYPE_MAP={txt:"text/plain",html:"text/html",css:"text/css",js:"text/javascript",json:"application/json",png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif"};constructor(n){if(this.filePath=n,this.headers=new Headers,this.exists=sharp.existsSync(n),this.exists){this.status=200,this.statusText="OK";let c=sharp.statSync(n);this.headers.set("content-length",c.size.toString()),this.updateContentType();let d=this;this.body=new ReadableStream({start(h){d.arrayBuffer().then(m=>{h.enqueue(new Uint8Array(m)),h.close()})}})}else this.status=404,this.statusText="Not Found",this.body=null}updateContentType(){const n=this.filePath.toString().split(".").pop().toLowerCase();this.headers.set("content-type",this._CONTENT_TYPE_MAP[n]??"application/octet-stream")}clone(){let n=new FileResponse(this.filePath);return n.exists=this.exists,n.status=this.status,n.statusText=this.statusText,n.headers=new Headers(this.headers),n}async arrayBuffer(){return(await sharp.promises.readFile(this.filePath)).buffer}async blob(){const n=await sharp.promises.readFile(this.filePath);return new Blob([n],{type:this.headers.get("content-type")})}async text(){return await sharp.promises.readFile(this.filePath,"utf8")}async json(){return JSON.parse(await this.text())}}function isValidUrl(o,n=null,c=null){let d;try{d=new URL(o)}catch{return!1}return!(n&&!n.includes(d.protocol)||c&&!c.includes(d.hostname))}async function getFile(o){if(env$1.useFS&&!isValidUrl(o,["http:","https:","blob:"]))return new FileResponse(o);if(typeof process<"u"&&process?.release?.name==="node"){const n=!!define_process_env_default?.TESTING_REMOTELY,c=env$1.version,d=new Headers;if(d.set("User-Agent",`transformers.js/${c}; is_ci/${n};`),isValidUrl(o,["http:","https:"],["huggingface.co","hf.co"])){const m=define_process_env_default?.HF_TOKEN??define_process_env_default?.HF_ACCESS_TOKEN;m&&d.set("Authorization",`Bearer ${m}`)}return fetch(o,{headers:d})}else return fetch(o)}const ERROR_MAPPING={400:"Bad request error occurred while trying to load file",401:"Unauthorized access to file",403:"Forbidden access to file",404:"Could not locate file",408:"Request timeout error occurred while trying to load file",500:"Internal server error error occurred while trying to load file",502:"Bad gateway error occurred while trying to load file",503:"Service unavailable error occurred while trying to load file",504:"Gateway t
1866imeout error occurred while trying to load file"};function handleError(o,n,c){if(!c)return null;const d=ERROR_MAPPING[o]??`Error (${o}) occurred while trying to load file`;throw Error(`${d}: "${n}".`)}class FileCache{constructor(n){this.path=n}async match(n){let c=sharp.join(this.path,n),d=new FileResponse(c);if(d.exists)return d}async put(n,c){const d=Buffer.from(await c.arrayBuffer());let h=sharp.join(this.path,n);try{await sharp.promises.mkdir(sharp.dirname(h),{recursive:!0}),await sharp.promises.writeFile(h,d)}catch(m){console.warn("An error occurred while writing the file to cache:",m)}}}async function tryCache(o,...n){for(let c of n)try{let d=await o.match(c);if(d)return d}catch{continue}}async function getModelFile(o,n,c=!0,d={}){dispatchCallback(d.progress_callback,{status:"initiate",name:o,file:n});let h;if(!h&&env$1.useBrowserCache){if(typeof caches>"u")throw Error("Browser cache is not available in this environment.");try{h=await caches.open("transformers-cache")}catch(H){console.warn("An error occurred while opening the browser cache:",H)}}!h&&env$1.useFSCache&&(h=new FileCache(d.cache_dir??env$1.cacheDir));const m=d.revision??"main";let p=pathJoin(o,n),w=pathJoin(env$1.localModelPath,p),z=pathJoin(env$1.remoteHost,env$1.remotePathTemplate.replaceAll("{model}",o).replaceAll("{revision}",encodeURIComponent(m)),n),A=m==="main"?p:pathJoin(o,m,n),y,s=h instanceof FileCache?A:z,e=!1,f;h&&(f=await tryCache(h,w,s));const g=f!==void 0;if(f===void 0){if(isValidUrl(p,["http:","https:"])){if(d.local_files_only)throw new Error(`\`local_files_only=true\`, but attempted to load a remote file from: ${p}.`)}else try{f=await getFile(w),y=w}catch(te){console.warn(`Unable to load from local path "${w}": "${te}"`)}if(f===void 0||f.status===404){if(d.local_files_only){if(c)throw Error(`\`local_files_only=true\` or \`env.allowRemoteModels=false\` and file was not found locally at "${w}".`);return null}if(f=await getFile(z),f.status!==200)return handleError(f.status,z,c);y=s}e=h&&typeof Response<"u"&&f instanceof Response&&f.status===200}dispatchCallback(d.progress_callback,{status:"download",name:o,file:n});const R={status:"progress",name:o,file:n};let q;return d.progress_callback?g&&typeof navigator<"u"&&/firefox/i.test(navigator.userAgent)?(q=new Uint8Array(await f.arrayBuffer()),dispatchCallback(d.progress_callback,{...R,progress:100,loaded:q.length,total:q.length})):q=await readResponse(f,H=>{dispatchCallback(d.progress_callback,{...R,...H})}):q=new Uint8Array(await f.arrayBuffer()),e&&y&&await h.match(y)===void 0&&await h.put(y,new Response(q,{headers:f.headers})).catch(H=>{console.warn(`Unable to add response to browser cache: ${H}.`)}),dispatchCallback(d.progress_callback,{status:"done",name:o,file:n}),q}async function getModelJSON(o,n,c=!0,d={}){let h=await getModelFile(o,n,c,d);if(h===null)return{};let p=new TextDecoder("utf-8").decode(h);return JSON.parse(p)}async function readResponse(o,n){const c=o.headers.get("Content-Length");c===null&&console.warn("Unable to determine content-length from response headers. Will expand buffer when needed.");let d=parseInt(c??"0"),h=new Uint8Array(d),m=0;const p=o.body.getReader();async function w(){const{done:z,value:A}=await p.read();if(z)return;let y=m+A.length;if(y>d){d=y;let e=new Uint8Array(d);e.set(h),h=e}h.set(A,m),m=y;const s=m/d*100;return n({progress:s,loaded:m,total:d}),w()}return await w(),h}function pathJoin(...o){return o=o.map((n,c)=>(c&&(n=n.replace(new RegExp("^/"),"")),c!==o.length-1&&(n=n.replace(new RegExp("/$"),"")),n)),o.join("/")}function permute_data(o,n,c){const d=new Array(c.length),h=new Array(c.length);for(let w=c.length-1,z=1;w>=0;--w)h[w]=z,d[w]=n[c[w]],z*=d[w];const m=c.map((w,z)=>h[c.indexOf(z)]),p=new o.constructor(o.length);for(let w=0;w<o.length;++w){let z=0;for(let A=n.length-1,y=w;A>=0;--A)z+=y%n[A]*m[A],y=Math.floor(y/n[A]);p[z]=o[w]}return[p,d]}function softmax(o){const n=max(o)[0],c=o.map(m=>Math.exp(m-n)),d=c.reduce((m,p)=>m+p,0);return c.map(m=>m/d)}function log_softmax(o){return softmax(o).map(d=>Math.log(d))}function getTopItems(o,n=0){return o=Array.from(o).map((c,d)=>[d,c]).sort((c,d)=>d[1]-c[1]),n!==null&&n>0&&(o=o.slice(0,n)),o}function max(o){if(o.length===0)throw Error("Array must not be empty");let n=o[0],c=0;for(let d=1;d<o.length;++d)o[d]>n&&(n=o[d],c=d);return[Number(n),c]}function medianFilter(o,n){if(n%2===0||n<=0)throw new Error("Window size must be a positive odd number");const c=new o.constructor(o.length),d=new o.constructor(n),h=Math.floor(n/2);for(let m=0;m<o.length;++m){let p=0;for(let w=-h;w<=h;++w){let z=m+w;z<0?z=Math.abs(z):z>=o.length&&(z=2*(o.length-1)-z),d[p++]=o[z]}d.sort(),c[m]=d[h]}return c}const DataTypeMap=Object.freeze({float32:Float32Array,float64:Float64Array,string:Array,int8:
1866Int8Array,uint8:Uint8Array,int16:Int16Array,uint16:Uint16Array,int32:Int32Array,uint32:Uint32Array,int64:BigInt64Array,uint64:BigUint64Array,bool:Uint8Array}),ONNXTensor$1=ONNX.Tensor;class Tensor{dims;type;data;size;constructor(...n){return n[0]instanceof ONNXTensor$1?Object.assign(this,n[0]):Object.assign(this,new ONNXTensor$1(n[0],n[1],n[2])),new Proxy(this,{get:(c,d)=>{if(typeof d=="string"){let h=Number(d);if(Number.isInteger(h))return c._getitem(h)}return c[d]},set:(c,d,h)=>c[d]=h})}*[Symbol.iterator](){const[n,...c]=this.dims;if(c.length>0){const d=c.reduce((h,m)=>h*m);for(let h=0;h<n;++h)yield this._subarray(h,d,c)}else yield*this.data}_getitem(n){const[c,...d]=this.dims;if(n=safeIndex(n,c),d.length>0){const h=d.reduce((m,p)=>m*p);return this._subarray(n,h,d)}else return new Tensor(this.type,[this.data[n]],d)}indexOf(n){for(let c=0;c<this.data.length;++c)if(this.data[c]==n)return c;return-1}_subarray(n,c,d){const h=n*c,m=(n+1)*c,p="subarray"in this.data?this.data.subarray(h,m):this.data.slice(h,m);return new Tensor(this.type,p,d)}item(){if(this.data.length!==1)throw new Error(`a Tensor with ${this.data.length} elements cannot be converted to Scalar`);return this.data[0]}tolist(){return reshape(this.data,this.dims)}sigmoid(){return this.clone().sigmoid_()}sigmoid_(){for(let n=0;n<this.data.length;++n)this.data[n]=1/(1+Math.exp(-this.data[n]));return this}mul(n){return this.clone().mul_(n)}mul_(n){for(let c=0;c<this.data.length;++c)this.data[c]*=n;return this}add(n){return this.clone().add_(n)}add_(n){for(let c=0;c<this.data.length;++c)this.data[c]+=n;return this}clone(){return new Tensor(this.type,this.data.slice(),this.dims.slice())}slice(...n){let c=[],d=[];for(let z=0;z<this.dims.length;++z){let A=n[z];if(A==null)d.push([0,this.dims[z]]),c.push(this.dims[z]);else if(typeof A=="number")A=safeIndex(A,this.dims[z],z),d.push([A,A+1]);else if(Array.isArray(A)&&A.length===2){if(A[0]>A[1])throw new Error(`Invalid slice: ${A}`);let y=[Math.max(A[0],0),Math.min(A[1],this.dims[z])];d.push(y),c.push(y[1]-y[0])}else throw new Error(`Invalid slice: ${A}`)}let h=d.map(([z,A])=>A-z),m=h.reduce((z,A)=>z*A),p=new this.data.constructor(m);const w=this.stride();for(let z=0;z<m;++z){let A=0;for(let y=h.length-1,s=z;y>=0;--y){const e=h[y];A+=(s%e+d[y][0])*w[y],s=Math.floor(s/e)}p[z]=this.data[A]}return new Tensor(this.type,p,c)}permute(...n){return permute(this,n)}transpose(...n){return this.permute(...n)}sum(n=null,c=!1){return this.norm(1,n,c)}norm(n="fro",c=null,d=!1){if(n==="fro")n=2;else if(typeof n=="string")throw Error(`Unsupported norm: ${n}`);if(c===null){let p=this.data.reduce((w,z)=>w+z**n,0)**(1/n);return new Tensor(this.type,[p],[])}c=safeIndex(c,this.dims.length);const h=this.dims.slice();h[c]=1;const m=new this.data.constructor(this.data.length/this.dims[c]);for(let p=0;p<this.data.length;++p){let w=0;for(let z=this.dims.length-1,A=p,y=1;z>=0;--z){const s=this.dims[z];if(z!==c){const e=A%s;w+=e*y,y*=h[z]}A=Math.floor(A/s)}m[w]+=this.data[p]**n}if(n!==1)for(let p=0;p<m.length;++p)m[p]=m[p]**(1/n);return d||h.splice(c,1),new Tensor(this.type,m,h)}normalize_(n=2,c=1){c=safeIndex(c,this.dims.length);const d=this.norm(n,c,!0);for(let h=0;h<this.data.length;++h){let m=0;for(let p=this.dims.length-1,w=h,z=1;p>=0;--p){const A=this.dims[p];if(p!==c){const y=w%A;m+=y*z,z*=this.dims[p]}w=Math.floor(w/A)}this.data[h]/=d.data[m]}return this}normalize(n=2,c=1){return this.clone().normalize_(n,c)}stride(){return dimsToStride(this.dims)}squeeze(n=null){return new Tensor(this.type,this.data,calc_squeeze_dims(this.dims,n))}squeeze_(n=null){return this.dims=calc_squeeze_dims(this.dims,n),this}unsqueeze(n=null){return new Tensor(this.type,this.data,calc_unsqueeze_dims(this.dims,n))}unsqueeze_(n=null){return this.dims=calc_unsqueeze_dims(this.dims,n),this}flatten_(n=0,c=-1){c=(c+this.dims.length)%this.dims.length;let d=this.dims.slice(0,n),h=this.dims.slice(n,c+1),m=this.dims.slice(c+1);return this.dims=[...d,h.reduce((p,w)=>p*w,1),...m],this}flatten(n=0,c=-1){return this.clone().flatten_(n,c)}view(...n){let c=-1;for(let d=0;d<n.length;++d)if(n[d]===-1){if(c!==-1)throw new Error("Only one dimension can be inferred");c=d}if(c!==-1){const d=n.reduce((h,m,p)=>p!==c?h*m:h,1);n[c]=this.data.length/d}
1866return new Tensor(this.type,this.data,n)}neg_(){for(let n=0;n<this.data.length;++n)this.data[n]=-this.data[n];return this}neg(){return this.clone().neg_()}clamp_(n,c){for(let d=0;d<this.data.length;++d)this.data[d]=Math.min(Math.max(this.data[d],n),c);return this}clamp(n,c){return this.clone().clamp_(n,c)}round_(){for(let n=0;n<this.data.length;++n)this.data[n]=Math.round(this.data[n]);return this}round(){return this.clone().round_()}to(n){if(this.type===n)return this;if(!DataTypeMap.hasOwnProperty(n))throw new Error(`Unsupported type: ${n}`);return new Tensor(n,DataTypeMap[n].from(this.data),this.dims)}}function reshape(o,n){const c=o.length,d=n.reduce((m,p)=>m*p);if(c!==d)throw Error(`cannot reshape array of size ${c} into shape (${n})`);let h=o;for(let m=n.length-1;m>=0;m--)h=h.reduce((p,w)=>{let z=p[p.length-1];return z.length<n[m]?z.push(w):p.push([w]),p},[[]]);return h[0]}function permute(o,n){const[c,d]=permute_data(o.data,o.dims,n);return new Tensor(o.type,c,d)}function calc_squeeze_dims(o,n){return o=o.slice(),n===null?o=o.filter(c=>c!==1):typeof n=="number"?o[n]===1&&o.splice(n,1):Array.isArray(n)&&(o=o.filter((c,d)=>c!==1||!n.includes(d))),o}function calc_unsqueeze_dims(o,n){return n=safeIndex(n,o.length+1),o=o.slice(),o.splice(n,0,1),o}function safeIndex(o,n,c=null){if(o<-n||o>=n)throw new Error(`IndexError: index ${o} is out of bounds for dimension${c===null?"":" "+c} with size ${n}`);return o<0&&(o=(o%n+n)%n),o}function cat(o,n=0){n=safeIndex(n,o[0].dims.length);const c=o[0].dims.slice();c[n]=o.reduce((p,w)=>p+w.dims[n],0);const d=c.reduce((p,w)=>p*w,1),h=new o[0].data.constructor(d),m=o[0].type;if(n===0){let p=0;for(let w of o)h.set(w.data,p),p+=w.data.length}else{let p=0;for(let w=0;w<o.length;++w){let z=o[w];for(let A=0;A<z.data.length;++A){let y=0;for(let s=z.dims.length-1,e=A,f=1;s>=0;--s){const g=z.dims[s];let R=e%g;s===n&&(R+=p),y+=R*f,f*=c[s],e=Math.floor(e/g)}h[y]=z.data[A]}p+=z.dims[n]}}return new Tensor(m,h,c)}function stack(o,n=0){return cat(o.map(c=>c.unsqueeze(n)),n)}function std_mean(o,n=null,c=1,d=!1){if(n===null){const A=o.data.reduce((f,g)=>f+g,0)/o.data.length,y=Math.sqrt(o.data.reduce((f,g)=>f+(g-A)**2,0)/(o.data.length-c)),s=new Tensor(o.type,[A],[]);return[new Tensor(o.type,[y],[]),s]}n=safeIndex(n,o.dims.length);const h=mean(o,n,d),m=o.dims.slice();m[n]=1;const p=new o.data.constructor(o.data.length/o.dims[n]);for(let z=0;z<o.data.length;++z){let A=0;for(let y=o.dims.length-1,s=z,e=1;y>=0;--y){const f=o.dims[y];if(y!==n){const g=s%f;A+=g*e,e*=m[y]}s=Math.floor(s/f)}p[A]+=(o.data[z]-h.data[A])**2}for(let z=0;z<p.length;++z)p[z]=Math.sqrt(p[z]/(o.dims[n]-c));return d||m.splice(n,1),[new Tensor(o.type,p,m),h]}function mean(o,n=null,c=!1){if(n===null){let m=o.data.reduce((p,w)=>p+w,0);return new Tensor(o.type,[m/o.data.length],[])}n=safeIndex(n,o.dims.length);const d=o.dims.slice();d[n]=1;const h=new o.data.constructor(o.data.length/o.dims[n]);for(let m=0;m<o.data.length;++m){let p=0;for(let w=o.dims.length-1,z=m,A=1;w>=0;--w){const y=o.dims[w];if(w!==n){const s=z%y;p+=s*A,A*=d[w]}z=Math.floor(z/y)}h[p]+=o.data[m]}if(o.dims[n]!==1)for(let m=0;m<h.length;++m)h[m]=h[m]/o.dims[n];return c||d.splice(n,1),new Tensor(o.type,h,d)}function dynamicTimeWarping(o){const[n,c]=o.dims,d=[n+1,c+1],h=new Tensor("float32",new Float32Array(d[0]*d[1]).fill(1/0),d),m=new Tensor("float32",new Float32Array(d[0]*d[1]).fill(-1),d);h[0].data[0]=0;for(let y=1;y<c+1;++y)for(let s=1;s<n+1;++s){const e=h[s-1][y-1].item(),f=h[s-1][y].item(),g=h[s][y-1].item();let R,q;e<f&&e<g?(R=e,q=0):f<e&&f<g?(R=f,q=1):(R=g,q=2),h[s].data[y]=o[s-1][y-1].item()+R,m[s].data[y]=q}let p=n,w=c;m.data.fill(2,0,d[1]);for(let y=0;y<d[0];++y)m[y].data[0]=1;let z=[],A=[];for(;p>0||w>0;)switch(z.push(p-1),A.push(w-1),m[p][w].item()){case 0:--p,--w;break;case 1:--p;break;case 2:--w;break;default:throw new Error(`Internal error in dynamic time warping. Unexpected trace[${p}, ${w}]. Please file a bug report.`)}return z.reverse(),A.reverse(),[z,A]}function dimsToStride(o){const n=new Array(o.length);for(let c=o.length-1,d=1;c>=0;--c)n[c]=d,d*=o[c];return n}function ones(o){const n=o.reduce((c,d)=>c*d,1);return new Tensor("int64",new BigInt64Array(n).fill(1n),o)}function ones_like(o){return ones(o.dims)}var TOKEN_TYPES=Object.freeze({Text:"Text",NumericLiteral:"NumericLiteral",BooleanLiteral:"BooleanLiteral",StringLiteral
1866:"StringLiteral",Identifier:"Identifier",Equals:"Equals",OpenParen:"OpenParen",CloseParen:"CloseParen",OpenStatement:"OpenStatement",CloseStatement:"CloseStatement",OpenExpression:"OpenExpression",CloseExpression:"CloseExpression",OpenSquareBracket:"OpenSquareBracket",CloseSquareBracket:"CloseSquareBracket",OpenCurlyBracket:"OpenCurlyBracket",CloseCurlyBracket:"CloseCurlyBracket",Comma:"Comma",Dot:"Dot",Colon:"Colon",Pipe:"Pipe",CallOperator:"CallOperator",AdditiveBinaryOperator:"AdditiveBinaryOperator",MultiplicativeBinaryOperator:"MultiplicativeBinaryOperator",ComparisonBinaryOperator:"ComparisonBinaryOperator",UnaryOperator:"UnaryOperator",Set:"Set",If:"If",For:"For",In:"In",Is:"Is",NotIn:"NotIn",Else:"Else",EndIf:"EndIf",ElseIf:"ElseIf",EndFor:"EndFor",And:"And",Or:"Or",Not:"UnaryOperator"});Object.freeze({set:TOKEN_TYPES.Set,for:TOKEN_TYPES.For,in:TOKEN_TYPES.In,is:TOKEN_TYPES.Is,if:TOKEN_TYPES.If,else:TOKEN_TYPES.Else,endif:TOKEN_TYPES.EndIf,elif:TOKEN_TYPES.ElseIf,endfor:TOKEN_TYPES.EndFor,and:TOKEN_TYPES.And,or:TOKEN_TYPES.Or,not:TOKEN_TYPES.Not,"not in":TOKEN_TYPES.NotIn,true:TOKEN_TYPES.BooleanLiteral,false:TOKEN_TYPES.BooleanLiteral});TOKEN_TYPES.OpenStatement,TOKEN_TYPES.CloseStatement,TOKEN_TYPES.OpenExpression,TOKEN_TYPES.CloseExpression,TOKEN_TYPES.OpenParen,TOKEN_TYPES.CloseParen,TOKEN_TYPES.OpenCurlyBracket,TOKEN_TYPES.CloseCurlyBracket,TOKEN_TYPES.OpenSquareBracket,TOKEN_TYPES.CloseSquareBracket,TOKEN_TYPES.Comma,TOKEN_TYPES.Dot,TOKEN_TYPES.Colon,TOKEN_TYPES.Pipe,TOKEN_TYPES.ComparisonBinaryOperator,TOKEN_TYPES.ComparisonBinaryOperator,TOKEN_TYPES.ComparisonBinaryOperator,TOKEN_TYPES.ComparisonBinaryOperator,TOKEN_TYPES.ComparisonBinaryOperator,TOKEN_TYPES.ComparisonBinaryOperator,TOKEN_TYPES.AdditiveBinaryOperator,TOKEN_TYPES.AdditiveBinaryOperator,TOKEN_TYPES.MultiplicativeBinaryOperator,TOKEN_TYPES.MultiplicativeBinaryOperator,TOKEN_TYPES.MultiplicativeBinaryOperator,TOKEN_TYPES.Equals;const BYTES_TO_UNICODE=(()=>{const o=[...Array.from({length:94},(h,m)=>m+33),...Array.from({length:12},(h,m)=>m+161),...Array.from({length:82},(h,m)=>m+174)],n=o.slice();let c=0;for(let h=0;h<256;++h)o.includes(h)||(o.push(h),n.push(256+c),c+=1);const d=n.map(h=>String.fromCharCode(h));return Object.fromEntries(o.map((h,m)=>[h,d[m]]))})();reverseDictionary(BYTES_TO_UNICODE);const WHISPER_LANGUAGES=[["en","english"],["zh","chinese"],["de","german"],["es","spanish"],["ru","russian"],["ko","korean"],["fr","french"],["ja","japanese"],["pt","portuguese"],["tr","turkish"],["pl","polish"],["ca","catalan"],["nl","dutch"],["ar","arabic"],["sv","swedish"],["it","italian"],["id","indonesian"],["hi","hindi"],["fi","finnish"],["vi","vietnamese"],["he","hebrew"],["uk","ukrainian"],["el","greek"],["ms","malay"],["cs","czech"],["ro","romanian"],["da","danish"],["hu","hungarian"],["ta","tamil"],["no","norwegian"],["th","thai"],["ur","urdu"],["hr","croatian"],["bg","bulgarian"],["lt","lithuanian"],["la","latin"],["mi","maori"],["ml","malayalam"],["cy","welsh"],["sk","slovak"],["te","telugu"],["fa","persian"],["lv","latvian"],["bn","bengali"],["sr","serbian"],["az","azerbaijani"],["sl","slovenian"],["kn","kannada"],["et","estonian"],["mk","macedonian"],["br","breton"],["eu","basque"],["is","icelandic"],["hy","armenian"],["ne","nepali"],["mn","mongolian"],["bs","bosnian"],["kk","kazakh"],["sq","albanian"],["sw","swahili"],["gl","galician"],["mr","marathi"],["pa","punjabi"],["si","sinhala"],["km","khmer"],["sn","shona"],["yo","yoruba"],["so","somali"],["af","afrikaans"],["oc","occitan"],["ka","georgian"],["be","belarusian"],["tg","tajik"],["sd","sindhi"],["gu","gujarati"],["am","amharic"],["yi","yiddish"],["lo","lao"],["uz","uzbek"],["fo","faroese"],["ht","haitian creole"],["ps","pashto"],["tk","turkmen"],["nn","nynorsk"],["mt","maltese"],["sa","sanskrit"],["lb","luxembourgish"],["my","myanmar"],["bo","tibetan"],["tl","tagalog"],["mg","malagasy"],["as","assamese"],["tt","tatar"],["haw","hawaiian"],["ln","lingala"],["ha","hausa"],["ba","bashkir"],["jw","javanese"],["su","sundanese"]];new Map(WHISPER_LANGUAGES);new Map([...WHISPER_LANGUAGES.map(([o,n])=>[n,o]),["burmese","my"],["valencian","ca"],["flemish","nl"],["haitian","ht"],["letzeburgesch","lb"],["pushto","ps"],["panjabi","pa"],["moldavian","ro"],["moldovan","ro"],["sinhalese","si"],["castilian","es"]]);async function loadConfig(o,n){return await getModelJSON(o,"config.json",!0,n)}class PretrainedConfig{constructor(n){this.model_type=null,this.is_encoder_decoder=!1,Object.assign(this,n)}static async from_pretrained(n,{progress_callback:c=null,config:d=null,cache_dir:h=null,local_files_only:m=!1,revision:p="main"}={}){let w=d??await loadConfig(n,{progress_callback:c,cache_dir:h,local_files_only:m,revision:p});return new this(w)}}class AutoConfig{static async from_pretrained(...n){return PretrainedConfig.from_pretrained(...n)}}class LogitsProcessorList extends Callable{constructor(){super(),this.processors=[]}push(n){this.processors.push(n)}extend(n){this.processors.push(...n)}
1866_call(n,c){for(let d of c)this.processors.forEach(h=>h(n,d))}[Symbol.iterator](){return this.processors.values()}}class LogitsProcessor extends Callable{_call(n,c){throw Error("`_call` should be implemented in a subclass")}}class ForceTokensLogitsProcessor extends LogitsProcessor{constructor(n){super(),this.force_token_map=Object.fromEntries(n??[])}_call(n,c){let d=this.force_token_map[n.length];return exists(d)&&(c.data.fill(-1/0),c.data[d]=0),c}}class ForcedBOSTokenLogitsProcessor extends LogitsProcessor{constructor(n){super(),this.bos_token_id=n}_call(n,c){return n.length===1&&(c.data.fill(-1/0),c.data[this.bos_token_id]=0),c}}class ForcedEOSTokenLogitsProcessor extends LogitsProcessor{constructor(n,c){super(),this.max_length=n,this.forced_eos_token_id=c}_call(n,c){}}class SuppressTokensAtBeginLogitsProcessor extends LogitsProcessor{constructor(n,c){super(),this.begin_suppress_tokens=n,this.begin_index=c}_call(n,c){if(n.length===this.begin_index)for(let d of this.begin_suppress_tokens)c.data[d]=-1/0;return c}}class WhisperTimeStampLogitsProcessor extends LogitsProcessor{constructor(n){super(),this.eos_token_id=n.eos_token_id,this.no_timestamps_token_id=n.no_timestamps_token_id,this.timestamp_begin=this.no_timestamps_token_id+1,this.begin_index=(n.forced_decoder_ids||[]).length+2,n.forced_decoder_ids.slice(-1)[0][1]===this.no_timestamps_token_id&&(this.begin_index-=1),this.max_initial_timestamp_index=n.max_initial_timestamp_index}_call(n,c){const d=c.data;if(d[this.no_timestamps_token_id]=-1/0,n.length===this.begin_index-1)return d.fill(-1/0),d[this.timestamp_begin]=0,c;const h=n.slice(this.begin_index),m=h.length>=1&&h[h.length-1]>=this.timestamp_begin,p=h.length<2||h[h.length-2]>=this.timestamp_begin;if(m&&(p?d.subarray(this.timestamp_begin).fill(-1/0):d.subarray(0,this.eos_token_id).fill(-1/0)),n.length===this.begin_index&&this.max_initial_timestamp_index!==null){const y=this.timestamp_begin+this.max_initial_timestamp_index;d.subarray(y+1).fill(-1/0)}const w=log_softmax(d),z=Math.log(w.subarray(this.timestamp_begin).map(Math.exp).reduce((y,s)=>y+s)),A=max(w.subarray(0,this.timestamp_begin))[0];return z>A&&d.subarray(0,this.timestamp_begin).fill(-1/0),c}}class NoRepeatNGramLogitsProcessor extends LogitsProcessor{constructor(n){super(),this.no_repeat_ngram_size=n}getNgrams(n){const c=n.length,d=[];for(let m=0;m<c+1-this.no_repeat_ngram_size;++m){const p=[];for(let w=0;w<this.no_repeat_ngram_size;++w)p.push(n[m+w]);d.push(p)}const h=new Map;for(const m of d){const p=m.slice(0,m.length-1),w=JSON.stringify(p),z=h.get(w)??[];z.push(m[m.length-1]),h.set(w,z)}return h}getGeneratedNgrams(n,c){const d=c.slice(c.length+1-this.no_repeat_ngram_size,c.length);return n.get(JSON.stringify(d))??[]}calcBannedNgramTokens(n){const c=[];if(n.length+1<this.no_repeat_ngram_size)return c;{const d=this.getNgrams(n);return this.getGeneratedNgrams(d,n)}}_call(n,c){const d=this.calcBannedNgramTokens(n);for(const h of d)c.data[h]=-1/0;return c}}class RepetitionPenaltyLogitsProcessor extends LogitsProcessor{constructor(n){super(),this.penalty=n}_call(n,c){for(const d of n)c.data[d]<0?c.data[d]*=this.penalty:c.data[d]/=this.penalty;return c}}class MinLengthLogitsProcessor extends LogitsProcessor{constructor(n,c){super(),this.min_length=n,this.eos_token_id=Array.isArray(c)?c:[c]}_call(n,c){if(n.length<this.min_length)for(const d of this.eos_token_id)c.data[d]=-1/0;return c}}class MinNewTokensLengthLogitsProcessor extends LogitsProcessor{constructor(n,c,d){super(),this.prompt_length_to_skip=n,this.min_new_tokens=c,this.eos_token_id=Array.isArray(d)?d:[d]}_call(n,c){if(n.length-this.prompt_length_to_skip<this.min_new_tokens)for(const h of this.eos_token_id)c.data[h]=-1/0;return c}}class NoBadWordsLogitsProcessor extends LogitsProcessor{constructor(n,c){super(),this.bad_words_ids=n,this.eos_token_id=Array.isArray(c)?c:[c]}_call(n,c){for(const d of this.bad_words_ids){let h=!0;for(let m=1;m<=d.length-1&&d.length<n.length;++m)if(d.at(-m-1)!==n.at(-m)){h=!1;break}h&&(c.data[d.at(-1)]=-1/0)}return c}}const GenerationConfig=class{constructor(o={}){this.max_length=o.max_length??20,this.max_new_tokens=o.max_new_tokens??null,this.min_length=o.min_length??0,this.min_new_tokens=o.min_new_tokens??null,this.early_stopping=o.early_stopping??!1,this.max_time=o.max_time??null,this.do_sample=o.do_sample??!1,this.num_beams=o.num_beams??1,this.num_beam_groups=o.num_beam_groups??1,this.penalty_alpha=o.penalty_alpha??null,this.use_cache=o.use_cache??!0,this.temperature=o.temperature??1,this.top_k=o.top_k??50,this.top_p=o.top_p??1,this.typical_p=o.typical_p??1,this.epsilon_cutoff=o.epsilon_cutoff??0,this.eta_cutoff=o.eta_cutoff??0,this.diversity_penalty=o.diversity_penalty??0,this.repetition_penalty=o.repetition_penalty??1,this.encoder_repetition_penalty=o.encoder_repetition_penalty??1,this.length_penalty=o.length_penalty??1,this.no_repeat_ngram_size=o.no_repeat_ngram_size??0,this.bad_words_ids=o.bad_words_ids??null,this.force_words_ids=o.force_words_ids??null,this.renormalize_logits=o.renormalize_logits??!1,this.constraints=o.constraints??null,this.forced_bos_token_id=o.forced_bos_token_id??null,this.forced_eos_token_id=o.forced_eos_token_id??null,this.remove_invalid_values=o.remove_invalid_values??!1,this.exponential_decay_length_penalty=o.exponential_decay_length_penalty??null,this.suppress_tokens=o.suppress_tokens??null,this.begin_suppress_tokens=o.begin_suppress_tokens??null,this.forced_decoder_ids=o.forced_decoder_ids??null,this.num_return_sequences=o.num_return_sequences??1,this.output_attentions=o.output_attentions??!1,this.output_hidden_states=o.output_hidden_states??!1,this.output_scores=o.output_scores??!1,this.return_dict_in_generate=o.return_dict_in_generate??!1,this.pad_token_id=o.pad_token_id??null,this.bos_token_id=o.bos_token_id??null,this.eos_token_id=o.eos_token_id??null,this.encoder_no_repeat_ngram_size=o.encoder_no_repeat_ngram_size??0,this.decoder_start_token_id=o.decoder_start_token_id??null,this.generation_kwargs=o.generation_kwargs??{}}};class Sampler extends Callable{constructor(n){super(),this.generation_config=n}_call(n,c=-1){return this.sample(n,c)}sample(n,c){throw Error("sample should be implemented in subclasses.")}getLogits(n,c){let d=n.dims.at(-1),h=n.data;if(c===-1)h=h.slice(-d);else{let m=c*d;h=h.slice(m,m+d)}return this.generation_config.temperature>0&&(h=h.map(m=>m/this.generation_config.temperature)),h}randomSelect(n){let c=n.reduce((h,m)=>h+m,0),d=Math.random()*c;for(let h=0;h<n.length;++h)if(d-=n[h],d<=0)return h;return 0}static getSampler(n){if(n.do_sample)return new MultinomialSampler(n);if(n.num_beams>1)return new BeamSearchSampler(n);if(n.num_return_sequences>1)throw Error(`num_return_sequences has to be 1 when doing greedy search, but is ${n.num_return_sequences}.`);return new GreedySampler(n)}}class GreedySampler extends Sampler{sample(n,c=-1){let d=this.getLogits(n,c);return[[max(d)[1],0]]}}class MultinomialSampler extends Sampler{sample(n,c=-1){let d=n.dims.at(-1);this.generation_config.top_k>0&&(d=Math.min(this.generation_config.top_k,d));const h=this.getLogits(n,c),m=getTopItems(h,d),p=softmax(m.map(w=>w[1]));return Array.from({length:this.generation_config.num_beams},()=>{const w=this.randomSelect(p);return[m[w][0],Math.log(p[w])]})}}class BeamSearchSampler extends Sampler{sample(n,c=-1){let d=n.dims.at(-1);this.generation_config.top_k>0&&(d=Math.min(this.generation_config.top_k,d));const h=this.getLogits(n,c),m=getTopItems(h,d),p=softmax(m.map(w=>w[1]));return Array.from({length:this.generation_config.num_beams},(w,z)=>[m[z][0],Math.log(p[z])])}}const{InferenceSession,Tensor:ONNXTensor,env}=ONNX,MODEL_TYPES={EncoderOnly:0,EncoderDecoder:1,Seq2Seq:2,Vision2Seq:3,DecoderOnly:4,MaskGeneration:5},MODEL_TYPE_MAPPING=new Map,MODEL_NAME_TO_CLASS_MAPPING=new Map,MODEL_CLASS_TO_NAME_MAPPING=new Map;async function constructSession(o,n,c){let d=`onnx/${n}${c.quantized?"_quantized":""}.onnx`,h=await getModelFile(o,d,!0,c);try{return await InferenceSession.create(h,{executionProviders})}catch(m){if(executionProviders.length===1&&executionProviders[0]==="wasm")throw m;return console.warn(m),console.warn("Something went wrong during model construction (most likely a missing operation). Using `wasm` as a fallback. "),await InferenceSession.create(h,{executionProviders:["wasm"]})}}function validateInputs(o,n){const c=Object.create(null),d=[];for(const p of o.inputNames){const w=n[p];if(!(w instanceof Tensor)){d.push(p);continue}c[p]=env.wasm.proxy?w.clone():w}if(d.length>0)throw new Error(`An error occurred during model execution: "Missing the following inputs: ${d.join(", ")}.`);const h=Object.keys(n).length,m=o.inputNames.length;if(h>m){let p=Object.keys(n).filter(w=>!o.inputNames.includes(w));console.warn(`WARNING: Too many inputs were provided (${h} > ${m}). The following inputs will be ignored: "${p.join(", ")}".`)}return c}async function sessionRun(o,n){const c=validateInputs(o,n);try{let d=await o.run(c);return d=replaceTensors(d),d}catch(d){throw console.error(`An error occurred during model execution: "${d}".`),console.error("Inputs given to model:",c),d}}function replaceTensors(o){for(let n in o)o[n]instanceof ONNXTensor?o[n]=new Tensor(o[n]):typeof o[n]=="object"&&replaceTensors(o[n]);return o}function toI64Tensor(o){if(o instanceof Tensor)return o;if(o.length===0)throw Error("items must be non-empty");if(Array.isArray(o[0])){if(o.some(n=>n.length!==o[0].length))throw Error("Unable to create tensor, you should probably activate truncation and/or padding with 'padding=True' and/or 'truncation=True' to have batched tensors with the same length.");return new Tensor("int64",BigInt64Array.from(o.flat().map(n=>BigInt(n))),[o.length,o[0].length])}else return new Tensor("int64",BigInt64Array.from(o.map(n=>BigInt(n))),[1,o.length])}function prepareAttentionMask(o,n){let c=o.config.pad_token_id??null,d=o.config.eos_token_id??null;isIntegralNumber(d)&&(d=[d]);let h=n.indexOf(c)!==-1,m=d===null||!d.includes(c);if(h&&m){let p=BigInt64Array.from(n.data.map(w=>w!=c));return new Tensor("int64",p,n.dims)}else return ones_like(n)}function preparePositionIds(o,n,c){if(!o.inputNames.includes("position_ids"))return;const d=new BigInt64Array(n.attention_mask.data.length);for(let h=0;
1866h<n.attention_mask.dims[0];++h){let m=h*n.attention_mask.dims[1],p=BigInt(0);for(let w=0;w<n.attention_mask.dims[1];++w){const z=m+w;n.attention_mask.data[z]===0n?d[z]=BigInt(1):(d[z]=p,p+=n.attention_mask.data[z])}}n.position_ids=new Tensor("int64",d,n.attention_mask.dims),c&&(n.position_ids=n.position_ids.slice(null,-1).unsqueeze_(-1))}function boolTensor(o){return new Tensor("bool",[o],[1])}async function seq2seqForward(o,n){let{encoder_outputs:c,past_key_values:d}=n;c||(c=(await encoderForward(o,n)).last_hidden_state);let h={input_ids:n.decoder_input_ids,encoder_hidden_states:c};const m=!!d;o.decoder_merged_session.inputNames.includes("use_cache_branch")&&(h.use_cache_branch=boolTensor(m)),o.decoder_merged_session.inputNames.includes("encoder_attention_mask")&&(h.encoder_attention_mask=n.attention_mask),preparePositionIds(o.decoder_merged_session,h,m),o.addPastKeyValues(h,d);const p=await sessionRun(o.decoder_merged_session,h);let w=p.logits;d=o.getPastKeyValues(p,d);const z=o.getAttentions(p);return new Seq2SeqLMOutput({logits:w,past_key_values:d,encoder_outputs:c,...z})}function seq2seqStartBeams(o,n,c,d){let h=[],m=0;const p=o.requires_attention_mask??!0;let w=c.decoder_input_ids??c.decoder_start_token_id??c.bos_token_id??c.eos_token_id;w instanceof Tensor?w=w.tolist().flat():Array.isArray(w)||(w=[w]);for(let z of n){z.dims=[1,...z.dims];let A={inputs:z,encoder_outputs:null,prev_model_outputs:null,output_token_ids:w,done:!1,score:0,id:m++};p&&(A.attention_mask=prepareAttentionMask(o,z)),h.push(A)}return h}async function seq2seqRunBeam(o,n){const c=o.main_input_name;let d=n.output_token_ids;n.prev_model_outputs&&(d=d.slice(-1));let h={[c]:n.inputs,decoder_input_ids:toI64Tensor(d),encoder_outputs:n.encoder_outputs,past_key_values:n.prev_model_outputs?.past_key_values};n.attention_mask&&(h.attention_mask=n.attention_mask);let m=await o.forward(h);return n.prev_model_outputs=m,n.encoder_outputs=m.encoder_outputs,m}function seq2seqUpdatebeam(o,n){o.output_token_ids=[...o.output_token_ids,n]}async function encoderForward(o,n){const c=Object.create(null);for(const d of o.session.inputNames)c[d]=n[d];return o.session.inputNames.includes("token_type_ids")&&!c.token_type_ids&&(c.token_type_ids=new Tensor("int64",new BigInt64Array(c.input_ids.data.length),c.input_ids.dims)),await sessionRun(o.session,c)}async function decoderForward(o,n){let{input_ids:c,past_key_values:d,attention_mask:h}=n,m={input_ids:c,attention_mask:h??prepareAttentionMask(o,c)};const p=!!d;o.session.inputNames.includes("use_cache_branch")&&(m.use_cache_branch=boolTensor(p)),preparePositionIds(o.session,m,p),o.addPastKeyValues(m,d);let w=await sessionRun(o.session,m),z=w.logits;return d=o.getPastKeyValues(w,d),{logits:z,past_key_values:d}}function decoderStartBeams(o,n,c,d,h){let m=[],p=0;for(let w of n){let z=w.tolist().map(Number);w.dims=[1,...w.dims];let A;h?(A=h[p],A.dims=[1,...A.dims]):A=prepareAttentionMask(o,w);let y={input:w,model_input_ids:w,attention_mask:A,prev_model_outputs:null,output_token_ids:z,num_output_tokens:d,done:!1,score:0,id:p++};m.push(y)}return m}async function decoderRunBeam(o,n){let c=new BigInt64Array(n.output_token_ids.length).fill(1n),d={input_ids:n.model_input_ids,attention_mask:new Tensor("int64",c,[1,c.length]),past_key_values:n.prev_model_outputs?.past_key_values},h=await o.forward(d);return n.prev_model_outputs=h,h}function decoderUpdatebeam(o,n){o.output_token_ids=[...o.output_token_ids,n],o.model_input_ids=new Tensor("int64",[BigInt(n)],[1,1])}class PreTrainedModel extends Callable{main_input_name="input_ids";constructor(n,c){super(),this.config=n,this.session=c;const d=MODEL_CLASS_TO_NAME_MAPPING.get(this.constructor),h=MODEL_TYPE_MAPPING.get(d);this.can_generate=!1,this._runBeam=null,this._getStartBeams=null,this._updateBeam=null,this._forward=null,h===MODEL_TYPES.DecoderOnly?(this.can_generate=!0,this._runBeam=decoderRunBeam,this._getStartBeams=decoderStartBeams,this._updateBeam=decoderUpdatebeam,this._forward=decoderForward):h===MODEL_TYPES.Seq2Seq||h===MODEL_TYPES.Vision2Seq?(this.can_generate=!0,this._runBeam=seq2seqRunBeam,this._getStartBeams=seq2seqStartBeams,this._updateBeam=seq2seqUpdatebeam,this._forward=seq2seqForward):h===MODEL_TYPES.EncoderDecoder?this._forward=encoderForward:this._forward=encoderForward}async dispose(){const n=[];for(let c of Object.keys(this)){const d=this[c];d instanceof InferenceSession&&n.push(d.handler.dispose())}return await Promise.all(n)}static async from_pretrained(n,{quantized:c=!0,progress_callback:d=null,config:h=null,cache_dir:m=null,local_files_only:p=!1,revision:w="main",model_file_name:z=null}={}){let A={quantized:c,progress_callback:d,config:h,cache_dir:m,local_files_only:p,revision:w,model_file_name:z};const y=MODEL_CLASS_TO_NAME_MAPPING.get(this),s=MODEL_TYPE_MAPPING.get(y);let e;return s===MODEL_TYPES.DecoderOnly?e=await Promise.all([AutoConfig.from_pretrained(n,A),constructSession(n,A.model_file_name??"decoder_model_merged",A),getModelJSON(n,"generation_config.json",!1,A)]):s===MODEL_TYPES.Seq2Seq||s===MODEL_TYPES.Vision2Seq?e=await Promise.all([AutoConfig.from_pretrained(n,A),constructSession(n,"encoder_model",A),constructSession(n,"decoder_model_merged",A),getModelJSON(n,"generation_config.json",!1,A)]):s===MODEL_TYPES.MaskGeneration?e=await Promise.all([AutoConfig.from_pretrained(n,A),constructSession(n,"vision_encoder",A),constructSession(n,"prompt_encoder_mask_decoder",A)]):s===MODEL_TYPES.EncoderDecoder?e=await Promise.all([AutoConfig.from_pretrained(n,A),constructSession(n,"encoder_model",A),constructSession(n,"decoder_model_merged",A)]):(s!==MODEL_TYPES.EncoderOnly&&console.warn(`Model type for '${y??h?.model_type}' not found, assuming encoder-only architecture. Please report this at https://github.com/xenova/transformers.js/issues/new/choose.`),e=await Promise.all([AutoConfig.from_pretrained(n,A),constructSession(n,A.model_file_name??"model",A)])),new this(...e)}
1866async _call(n){return await this.forward(n)}async forward(n){return await this._forward(this,n)}_get_logits_processor(n,c,d=null){const h=new LogitsProcessorList;if(n.repetition_penalty!==null&&n.repetition_penalty!==1&&h.push(new RepetitionPenaltyLogitsProcessor(n.repetition_penalty)),n.no_repeat_ngram_size!==null&&n.no_repeat_ngram_size>0&&h.push(new NoRepeatNGramLogitsProcessor(n.no_repeat_ngram_size)),n.bad_words_ids!==null&&h.push(new NoBadWordsLogitsProcessor(n.bad_words_ids,n.eos_token_id)),n.min_length!==null&&n.eos_token_id!==null&&n.min_length>0&&h.push(new MinLengthLogitsProcessor(n.min_length,n.eos_token_id)),n.min_new_tokens!==null&&n.eos_token_id!==null&&n.min_new_tokens>0&&h.push(new MinNewTokensLengthLogitsProcessor(c,n.min_new_tokens,n.eos_token_id)),n.forced_bos_token_id!==null&&h.push(new ForcedBOSTokenLogitsProcessor(n.forced_bos_token_id)),n.forced_eos_token_id!==null&&h.push(new ForcedEOSTokenLogitsProcessor(n.max_length,n.forced_eos_token_id)),n.begin_suppress_tokens!==null){let m=c>1||n.forced_bos_token_id===null?c:c+1;n.forced_decoder_ids!==null&&(m+=n.forced_decoder_ids[n.forced_decoder_ids.length-1][0]),h.push(new SuppressTokensAtBeginLogitsProcessor(n.begin_suppress_tokens,m))}return n.forced_decoder_ids!==null&&h.push(new ForceTokensLogitsProcessor(n.forced_decoder_ids)),d!==null&&h.extend(d),h}_get_generation_config(n){let c=new GenerationConfig(this.config);return"generation_config"in this&&Object.assign(c,this.generation_config),n!==null&&Object.assign(c,n),c}async generate(n,c=null,d=null,{inputs_attention_mask:h=null}={}){if(!this.can_generate){let q=`The current model class (${MODEL_CLASS_TO_NAME_MAPPING.get(this.constructor)}) is not compatible with \`.generate()\`, as it doesn't have a language model head.`;const H=this.config.model_type,te=MODEL_WITH_LM_HEAD_MAPPING_NAMES.get(H)??MODEL_FOR_SEQ_TO_SEQ_CAUSAL_LM_MAPPING_NAMES.get(H)??MODEL_FOR_SPEECH_SEQ_2_SEQ_MAPPING_NAMES.get(H)??MODEL_FOR_VISION_2_SEQ_MAPPING_NAMES.get(H);throw te&&(q+=` Please use the following class instead: '${te[0]}'`),Error(q)}if(!(n instanceof Tensor)&&!isTypedArray(n)&&!Array.isArray(n))throw Error(`\`inputs\` must be a Tensor, TypedArray, or Array, but is "${n.constructor.name}".`);let m;if(this.config.is_encoder_decoder)m=0;else if(m=n instanceof Tensor?n.dims.at(-1):n.length,m===0)throw Error("Must supply a non-empty array of input token ids.");c=this._get_generation_config(c),d=d??new LogitsProcessorList,d=this._get_logits_processor(c,m,d);let p=c.eos_token_id;p!==null&&!Array.isArray(p)&&(p=[p]);let w=1;const z=w+(c.max_new_tokens??1/0),A=Number.isInteger(c.max_length)&&(c.max_new_tokens??null)===null;let y=Sampler.getSampler(c),s=this.getStartBeams(n,c,w,h);for(;s.some(R=>!R.done)&&w<z;){let R=[];for(let q of s){if(q.done){R.push(q);continue}if(A&&q.output_token_ids.length>=c.max_length){q.done=!0,R.push(q);continue}let H=await this.runBeam(q);c.output_attentions&&this.addAttentionsToBeam(q,H),c.output_scores;let te=H.logits.slice(null,-1,null);d(q.output_token_ids,te);let re=y(te);for(let[ae,ne]of re){let oe={...q};this.updateBeam(oe,ae),oe.score+=ne,p&&p.includes(ae)&&(oe.done=!0),R.push(oe)}}++w,R=this.groupBeams(R).map(q=>q.sort((H,te)=>te.score-H.score).slice(0,c.num_beams)),s=R.flat(),c.callback_function&&c.callback_function(s)}const e=this.groupBeams(s),f=R=>e.map(q=>c.num_return_sequences>1?q.slice(0,c.num_return_sequences).map(H=>H[R]):[q[0][R]]).flat(),g=f("output_token_ids");if(c.return_dict_in_generate){const R=f("decoder_attentions"),q=f("cross_attentions");return{sequences:g,decoder_attentions:R,cross_attentions:q}}else return g}addAttentionsToBeam(n,c){if(this.config.is_encoder_decoder){if(!c.cross_attentions||c.cross_attentions.length===0)throw Error("`output_attentions` is true, but the model did not produce cross-attentions. This is most likely because the model was not exported with `output_attentions=True`.");n.cross_attentions||(n.cross_attentions=[]),n.cross_attentions.push(c.cross_attentions)}if(!c.decoder_attentions||c.decoder_attentions.length===0)throw Error("`output_attentions` is true, but the model did not produce decoder-attentions. This is most likely because the model was not exported with `output_attentions=True`.");n.decoder_attentions||(n.decoder_attentions=[]),n.decoder_attentions.push(c.decoder_attentions)}groupBeams(n){const c=Object.create(null);for(const d of n)c[d.id]===void 0?c[d.id]=[d]:c[d.id].push(d);return Object.values(c)}getPastKeyValues(n,c){const d=Object.create(null);for(const h in n)if(h.startsWith("present")){let m=h.replace("present","past_key_values");c&&h.includes("encoder")?d[m]=c[m]:d[m]=n[h]}return d}getAttentions(n){const c=Object.create(null);for(const d of["cross_attentions","decoder_attentions"]){const h=[];for(const m in n)if(m.startsWith(d)){const p=m.split(".").pop();h[p]=n[m]}c[d]=h}return c}addPastKeyValues(n,c){if(c)Object.assign(n,c);else if(this.config.is_encoder_decoder&&(this.add_encoder_pkv??!0)){let h=[1,this.num_encoder_heads,0,this.encoder_dim_kv],m=[1,this.num_decoder_heads,0,this.decoder_dim_kv];for(let p=0;p<this.num_decoder_layers;++p)n[`past_key_values.${p}.encoder.key`]=new Tensor("float32",[],h),n[`past_key_values.${p}.encoder.value`]=new Tensor("float32",[],h),n[`past_key_values.${p}.decoder.key`]=new Tensor("float32",[],m),n[`past_key_values.${p}.decoder.value`]=new Tensor("float32",[],m)}else if(this.config.model_type==="falcon"){let h=[1*this.num_heads,0,this.dim_kv];for(let m=0;m<this.num_layers;++m)n[`past_key_values.${m}.key`]=new Tensor("float32",[],h),n[`past_key_values.${m}.value`]=new Tensor("float32",[],h)}else if(this.config.multi_query){let h=[1*this.num_heads,0,2*this.dim_kv];for(let m=0;m<this.num_layers;++m)n[`past_key_values.${m}.key_value`]=new Tensor("float32",[],h)}else if(this.config.model_type==="bloom"){let h=[1*this.num_heads,this.dim_kv,0],m=[1*this.num_heads,0,this.dim_kv];for(let p=0;p<this.num_layers;++p)n[`past_key_values.${p}.key`]=new Tensor("float32",[],h),n[`past_key_values.${p}.value`]=new Tensor("float32",[],m)}else{let h=[1,this.num_heads,0,this.dim_kv];for(let m=0;m<this.num_layers;++m)n[`past_key_values.${m}.key`]=new Tensor("float32",[],h),n[`past_key_values.${m}.value`]=new Tensor("float32",[],h)}}getStartBeams(n,c,d,h){return this._getStartBeams(this,n,c,d,h)}async runBeam(n){return await this._runBeam(this,n)}
1866updateBeam(n,c){return this._updateBeam(n,c)}}class ModelOutput{}class BertPreTrainedModel extends PreTrainedModel{}class BertModel extends BertPreTrainedModel{}class BertForMaskedLM extends BertPreTrainedModel{async _call(n){return new MaskedLMOutput(await super._call(n))}}class BertForSequenceClassification extends BertPreTrainedModel{async _call(n){return new SequenceClassifierOutput(await super._call(n))}}class BertForTokenClassification extends BertPreTrainedModel{async _call(n){return new TokenClassifierOutput(await super._call(n))}}class BertForQuestionAnswering extends BertPreTrainedModel{async _call(n){return new QuestionAnsweringModelOutput(await super._call(n))}}class NomicBertPreTrainedModel extends PreTrainedModel{}class NomicBertModel extends NomicBertPreTrainedModel{}class RoFormerPreTrainedModel extends PreTrainedModel{}class RoFormerModel extends RoFormerPreTrainedModel{}class RoFormerForMaskedLM extends RoFormerPreTrainedModel{async _call(n){return new MaskedLMOutput(await super._call(n))}}class RoFormerForSequenceClassification extends RoFormerPreTrainedModel{async _call(n){return new SequenceClassifierOutput(await super._call(n))}}class RoFormerForTokenClassification extends RoFormerPreTrainedModel{async _call(n){return new TokenClassifierOutput(await super._call(n))}}class RoFormerForQuestionAnswering extends RoFormerPreTrainedModel{async _call(n){return new QuestionAnsweringModelOutput(await super._call(n))}}class ConvBertPreTrainedModel extends PreTrainedModel{}class ConvBertModel extends ConvBertPreTrainedModel{}class ConvBertForMaskedLM extends ConvBertPreTrainedModel{async _call(n){return new MaskedLMOutput(await super._call(n))}}class ConvBertForSequenceClassification extends ConvBertPreTrainedModel{async _call(n){return new SequenceClassifierOutput(await super._call(n))}}class ConvBertForTokenClassification extends ConvBertPreTrainedModel{async _call(n){return new TokenClassifierOutput(await super._call(n))}}class ConvBertForQuestionAnswering extends ConvBertPreTrainedModel{async _call(n){return new QuestionAnsweringModelOutput(await super._call(n))}}class ElectraPreTrainedModel extends PreTrainedModel{}class ElectraModel extends ElectraPreTrainedModel{}class ElectraForMaskedLM extends ElectraPreTrainedModel{async _call(n){return new MaskedLMOutput(await super._call(n))}}
1866class ElectraForSequenceClassification extends ElectraPreTrainedModel{async _call(n){return new SequenceClassifierOutput(await super._call(n))}}class ElectraForTokenClassification extends ElectraPreTrainedModel{async _call(n){return new TokenClassifierOutput(await super._call(n))}}class ElectraForQuestionAnswering extends ElectraPreTrainedModel{async _call(n){return new QuestionAnsweringModelOutput(await super._call(n))}}class CamembertPreTrainedModel extends PreTrainedModel{}class CamembertModel extends CamembertPreTrainedModel{}class CamembertForMaskedLM extends CamembertPreTrainedModel{async _call(n){return new MaskedLMOutput(await super._call(n))}}class CamembertForSequenceClassification extends CamembertPreTrainedModel{async _call(n){return new SequenceClassifierOutput(await super._call(n))}}class CamembertForTokenClassification extends CamembertPreTrainedModel{async _call(n){return new TokenClassifierOutput(await super._call(n))}}class CamembertForQuestionAnswering extends CamembertPreTrainedModel{async _call(n){return new QuestionAnsweringModelOutput(await super._call(n))}}class DebertaPreTrainedModel extends PreTrainedModel{}class DebertaModel extends DebertaPreTrainedModel{}class DebertaForMaskedLM extends DebertaPreTrainedModel{async _call(n){return new MaskedLMOutput(await super._call(n))}}class DebertaForSequenceClassification extends DebertaPreTrainedModel{async _call(n){return new SequenceClassifierOutput(await super._call(n))}}class DebertaForTokenClassification extends DebertaPreTrainedModel{async _call(n){return new TokenClassifierOutput(await super._call(n))}}class DebertaForQuestionAnswering extends DebertaPreTrainedModel{async _call(n){return new QuestionAnsweringModelOutput(await super._call(n))}}class DebertaV2PreTrainedModel extends PreTrainedModel{}class DebertaV2Model extends DebertaV2PreTrainedModel{}class DebertaV2ForMaskedLM extends DebertaV2PreTrainedModel{async _call(n){return new MaskedLMOutput(await super._call(n))}}class DebertaV2ForSequenceClassification extends DebertaV2PreTrainedModel{async _call(n){return new SequenceClassifierOutput(await super._call(n))}}class DebertaV2ForTokenClassification extends DebertaV2PreTrainedModel{async _call(n){return new TokenClassifierOutput(await super._call(n))}}class DebertaV2ForQuestionAnswering extends DebertaV2PreTrainedModel{async _call(n){return new QuestionAnsweringModelOutput(await super._call(n))}}class DistilBertPreTrainedModel extends PreTrainedModel{}class DistilBertModel extends DistilBertPreTrainedModel{}class DistilBertForSequenceClassification extends DistilBertPreTrainedModel{async _call(n){return new SequenceClassifierOutput(await super._call(n))}}class DistilBertForTokenClassification extends DistilBertPreTrainedModel{async _call(n){return new TokenClassifierOutput(await super._call(n))}}class DistilBertForQuestionAnswering extends DistilBertPreTrainedModel{async _call(n){return new QuestionAnsweringModelOutput(await super._call(n))}}class DistilBertForMaskedLM extends DistilBertPreTrainedModel{async _call(n){return new MaskedLMOutput(await super._call(n))}}class EsmPreTrainedModel extends PreTrainedModel{}class EsmModel extends EsmPreTrainedModel{}class EsmForMaskedLM extends EsmPreTrainedModel{async _call(n){return new MaskedLMOutput(await super._call(n))}}
vendor: 7,317 bytes, line 1866
1866class EsmForSequenceClassification extends EsmPreTrainedModel{async _call(n){return new SequenceClassifierOutput(await super._call(n))}}class EsmForTokenClassification extends EsmPreTrainedModel{async _call(n){return new TokenClassifierOutput(await super._call(n))}}class MobileBertPreTrainedModel extends PreTrainedModel{}class MobileBertModel extends MobileBertPreTrainedModel{}class MobileBertForMaskedLM extends MobileBertPreTrainedModel{async _call(n){return new MaskedLMOutput(await super._call(n))}}class MobileBertForSequenceClassification extends MobileBertPreTrainedModel{async _call(n){return new SequenceClassifierOutput(await super._call(n))}}class MobileBertForQuestionAnswering extends MobileBertPreTrainedModel{async _call(n){return new QuestionAnsweringModelOutput(await super._call(n))}}class MPNetPreTrainedModel extends PreTrainedModel{}class MPNetModel extends MPNetPreTrainedModel{}class MPNetForMaskedLM extends MPNetPreTrainedModel{async _call(n){return new MaskedLMOutput(await super._call(n))}}class MPNetForSequenceClassification extends MPNetPreTrainedModel{async _call(n){return new SequenceClassifierOutput(await super._call(n))}}class MPNetForTokenClassification extends MPNetPreTrainedModel{async _call(n){return new TokenClassifierOutput(await super._call(n))}}class MPNetForQuestionAnswering extends MPNetPreTrainedModel{async _call(n){return new QuestionAnsweringModelOutput(await super._call(n))}}class SqueezeBertPreTrainedModel extends PreTrainedModel{}class SqueezeBertModel extends SqueezeBertPreTrainedModel{}class SqueezeBertForMaskedLM extends SqueezeBertPreTrainedModel{async _call(n){return new MaskedLMOutput(await super._call(n))}}class SqueezeBertForSequenceClassification extends SqueezeBertPreTrainedModel{async _call(n){return new SequenceClassifierOutput(await super._call(n))}}class SqueezeBertForQuestionAnswering extends SqueezeBertPreTrainedModel{async _call(n){return new QuestionAnsweringModelOutput(await super._call(n))}}class AlbertPreTrainedModel extends PreTrainedModel{}class AlbertModel extends AlbertPreTrainedModel{}class AlbertForSequenceClassification extends AlbertPreTrainedModel{async _call(n){return new SequenceClassifierOutput(await super._call(n))}}class AlbertForQuestionAnswering extends AlbertPreTrainedModel{async _call(n){return new QuestionAnsweringModelOutput(await super._call(n))}}class AlbertForMaskedLM extends AlbertPreTrainedModel{async _call(n){return new MaskedLMOutput(await super._call(n))}}class T5PreTrainedModel extends PreTrainedModel{}class T5Model extends T5PreTrainedModel{}class T5ForConditionalGeneration extends T5PreTrainedModel{constructor(n,c,d,h){super(n,c),this.decoder_merged_session=d,this.generation_config=h,this.num_decoder_layers=this.config.num_decoder_layers,this.num_decoder_heads=this.config.num_heads,this.decoder_dim_kv=this.config.d_kv,this.num_encoder_layers=this.config.num_layers,this.num_encoder_heads=this.config.num_heads,this.encoder_dim_kv=this.config.d_kv}}class LongT5PreTrainedModel extends PreTrainedModel{}class LongT5Model extends LongT5PreTrainedModel{}class LongT5ForConditionalGeneration extends LongT5PreTrainedModel{constructor(n,c,d,h){super(n,c),this.decoder_merged_session=d,this.generation_config=h,this.num_decoder_layers=this.config.num_decoder_layers,this.num_decoder_heads=this.config.num_heads,this.decoder_dim_kv=this.config.d_kv,this.num_encoder_layers=this.config.num_layers,this.num_encoder_heads=this.config.num_heads,this.encoder_dim_kv=this.config.d_kv}}class MT5PreTrainedModel extends PreTrainedModel{}class MT5Model extends MT5PreTrainedModel{}class MT5ForConditionalGeneration extends MT5PreTrainedModel{constructor(n,c,d,h){super(n,c),this.decoder_merged_session=d,this.generation_config=h,this.num_decoder_layers=this.config.num_decoder_layers,this.num_decoder_heads=this.config.num_heads,this.decoder_dim_kv=this.config.d_kv,this.num_encoder_layers=this.config.num_layers,this.num_encoder_heads=this.config.num_heads,this.encoder_dim_kv=this.config.d_kv}}class BartPretrainedModel extends PreTrainedModel{}class BartModel extends BartPretrainedModel{}class BartForConditionalGeneration extends BartPretrainedModel{constructor(n,c,d,h){super(n,c),this.decoder_merged_session=d,this.generation_config=h,this.num_decoder_layers=this.config.decoder_layers,this.num_decoder_heads=this.config.decoder_attention_heads,this.decoder_dim_kv=this.config.d_model/this.num_decoder_heads,this.num_encoder_layers=this.config.encoder_layers,this.num_encoder_heads=this.config.encoder_attention_heads,this.encoder_dim_kv=this.config.d_model/this.num_encoder_heads}}class BartForSequenceClassification extends BartPretrainedModel{async _call(n){return new SequenceClassifierOutput(await super._call(n))}}class MBartPreTrainedModel extends PreTrainedModel{}class MBartModel extends MBartPreTrainedModel{}class MBartForConditionalGeneration extends MBartPreTrainedModel{constructor(n,c,d,h){super(n,c),this.decoder_merged_session=d,this.generation_config=h,this.num_decoder_layers=this.config.decoder_layers,this.num_decoder_heads=this.config.decoder_attention_heads,this.decoder_dim_kv=this.config.d_model/this.num_decoder_heads,this.num_encoder_layers=this.config.encoder_layers,this.num_encoder_heads=this.config.encoder_attention_heads,this.encoder_dim_kv=this.config.d_model/this.num_encoder_heads}}class MBartForSequenceClassification extends MBartPreTrainedModel{async _call(n){return new SequenceClassifierOutput(await super._call(n))}}class MBartForCausalLM extends MBartPreTrainedModel{constructor(n,c,d){super(n,c),this.generation_config=d,this.num_decoder_layers=this.config.decoder_layers,this.num_decoder_heads=this.config.decoder_attention_heads,this.decoder_dim_kv=this.config.d_model/this.num_decoder_heads,this.num_encoder_layers=this.config.encoder_layers,this.num_encoder_heads=this.config.encoder_attention_heads,this.encoder_dim_kv=this.config.d_model/this.num_encoder_heads}}class BlenderbotPreTrainedModel extends PreTrainedModel{}class BlenderbotModel extends BlenderbotPreTrainedModel{}class BlenderbotForConditionalGeneration extends BlenderbotPreTrainedModel{constructor(n,c,d,h){super(n,c),this.decoder_merged_session=d,this.generation_config=h,this.num_decoder_layers=this.config.decoder_layers,this.num_decoder_heads=this.config.decoder_attention_heads,this.decoder_dim_kv=this.config.d_model/this.num_decoder_heads,this.num_encoder_layers=this.config.encoder_layers,this.num_encoder_heads=this.config.encoder_attention_heads,this.encoder_dim_kv=this.config.d_model/this.num_encoder_heads}}class BlenderbotSmallPreTrainedModel extends PreTrainedModel{}class BlenderbotSmallModel extends BlenderbotSmallPreTrainedModel{}class BlenderbotSmallForConditionalGeneration extends BlenderbotSmallPreTrainedModel{constructor(n,c,d,h){super(n,c),this.decoder_merged_session=d,this.generation_config=h,this.num_decoder_layers=this.config.decoder_layers,this.num_decoder_heads=this.config.decoder_attention_heads,this.decoder_dim_kv=this.config.d_model/this.num_decoder_heads,this.num_encoder_layers=this.config.encoder_layers,this.num_encoder_heads=this.config.encoder_attention_heads,this.encoder_dim_kv=this.config.d_model/this.num_encoder_heads}}class RobertaPreTrainedModel extends PreTrainedModel{}class RobertaModel extends RobertaPreTrainedModel{}
1866class RobertaForMaskedLM extends RobertaPreTrainedModel{async _call(n){return new MaskedLMOutput(await super._call(n))}}class RobertaForSequenceClassification extends RobertaPreTrainedModel{async _call(n){return new SequenceClassifierOutput(await super._call(n))}}class RobertaForTokenClassification extends RobertaPreTrainedModel{async _call(n){return new TokenClassifierOutput(await super._call(n))}}class RobertaForQuestionAnswering extends RobertaPreTrainedModel{async _call(n){return new QuestionAnsweringModelOutput(await super._call(n))}}class XLMPreTrainedModel extends PreTrainedModel{}class XLMModel extends XLMPreTrainedModel{}class XLMWithLMHeadModel extends XLMPreTrainedModel{async _call(n){return new MaskedLMOutput(await super._call(n))}}class XLMForSequenceClassification extends XLMPreTrainedModel{async _call(n){return new SequenceClassifierOutput(await super._call(n))}}class XLMForTokenClassification extends XLMPreTrainedModel{async _call(n){return new TokenClassifierOutput(await super._call(n))}}class XLMForQuestionAnswering extends XLMPreTrainedModel{async _call(n){return new QuestionAnsweringModelOutput(await super._call(n))}}class XLMRobertaPreTrainedModel extends PreTrainedModel{}class XLMRobertaModel extends XLMRobertaPreTrainedModel{}class XLMRobertaForMaskedLM extends XLMRobertaPreTrainedModel{async _call(n){return new MaskedLMOutput(await super._call(n))}}class XLMRobertaForSequenceClassification extends XLMRobertaPreTrainedModel{async _call(n){return new SequenceClassifierOutput(await super._call(n))}}class XLMRobertaForTokenClassification extends XLMRobertaPreTrainedModel{async _call(n){return new TokenClassifierOutput(await super._call(n))}}class XLMRobertaForQuestionAnswering extends XLMRobertaPreTrainedModel{async _call(n){return new QuestionAnsweringModelOutput(await super._call(n))}}class ASTPreTrainedModel extends PreTrainedModel{}class ASTModel extends ASTPreTrainedModel{}class ASTForAudioClassification extends ASTPreTrainedModel{}class WhisperPreTrainedModel extends PreTrainedModel{}class WhisperModel extends WhisperPreTrainedModel{}class WhisperForConditionalGeneration extends WhisperPreTrainedModel{requires_attention_mask=!1;main_input_name="input_features";constructor(n,c,d,h){super(n,c),this.decoder_merged_session=d,this.generation_config=h,this.num_decoder_layers=this.config.decoder_layers,this.num_decoder_heads=this.config.decoder_attention_heads,this.decoder_dim_kv=this.config.d_model/this.num_decoder_heads,this.num_encoder_layers=this.config.encoder_layers,this.num_encoder_heads=this.config.encoder_attention_heads,this.encoder_dim_kv=this.config.d_model/this.num_encoder_heads}async generate(n,c=null,d=null){if(c=this._get_generation_config(c),c.return_timestamps??=!1,c.return_timestamps&&(d=[new WhisperTimeStampLogitsProcessor(c)]),c.return_token_timestamps&&(c.output_attentions=!0,c.return_dict_in_generate=!0,c.task==="translate"&&console.warn("Token-level timestamps may not be reliable for task 'translate'."),!c.alignment_heads))throw new Error("Model generation config has no `alignment_heads`, token-level timestamps not available. See https://gist.github.com/hollance/42e32852f24243b748ae6bc1f985b13a on how to add this property to the generation config.");const h=await super.generate(n,c,d);return c.return_token_timestamps&&c.alignment_heads&&(h.token_timestamps=this._extract_token_timestamps(h,c.alignment_heads,c.num_frames)),h}_extract_token_timestamps(n,c,d=null,h=.02){if(!n.cross_attentions)throw new Error("Model outputs must contain cross attentions to extract timestamps. This is most likely because the model was not exported with `output_attentions=True`.");let m=this.config.median_filter_width;m===void 0&&(console.warn("Model config has no `median_filter_width`, using default value of 7."),m=7);const p=n.cross_attentions.map(A=>{let y=Array.from({length:this.config.decoder_layers},(q,H)=>cat(A.map(te=>te[H]),2)),s=stack(c.map(([q,H])=>d?y[q].slice(null,H,null,[0,d]):y[q].slice(null,H)));s=s.transpose(1,0,2,3);let[e,f]=std_mean(s,-2,0,!0),g=s.clone();for(let q=0;q<g.dims[0];++q){let H=g[q];for(let te=0;te<H.dims[0];++te){let re=H[te];const ae=e[q][te][0],ne=f[q][te][0];for(let oe=0;oe<re.dims[0];++oe){let le=re[oe];for(let ce=0;ce<le.data.length;++ce)le.data[ce]=(le.data[ce]-ne.data[ce])/ae.data[ce];le.data.set(medianFilter(le.data,m))}}}return mean(g,1)}),w=[n.sequences.length,n.sequences[0].length],z=new Tensor("float32",new Float32Array(w[0]*w[1]),w);for(let A=0;A<w[0];++A){const y=p[A].neg().squeeze_(0);let[s,e]=dynamicTimeWarping(y),f=Array.from({length:s.length-1},(q,H)=>s[H+1]-s[H]),g=mergeArrays([1],f).map(q=>!!q),R=[];for(let q=0;q<g.length;++q)g[q]&&R.push(e[q]*h);z[A].data.set(R,1)}return z}}class VisionEncoderDecoderModel extends PreTrainedModel{main_input_name="pixel_values";constructor(n,c,d,h){super(n,c),this.decoder_merged_session=d,this.generation_config=h;const m=this.config.encoder,p=this.config.decoder,w=m.model_type;(MODEL_MAPPING_NAMES_ENCODER_ONLY.get(w)??MODEL_MAPPING_NAMES_ENCODER_DECODER.get(w))||console.warn(`Model type for encoder '${w}' not found, assuming encoder-only architecture. Please report this at https://github.com/xenova/transformers.js/issues/new/choose.`);const A=MODEL_WITH_LM_HEAD_MAPPING_NAMES.get(p.model_type);if(!A)throw new Error(`Unable to construct \`VisionEncoderDecoder\` due to unsupported decoder: "${this.config.decoder.model_type}"`);const y=A[1],s=new y(p,d,h);this.add_encoder_pkv="num_decoder_layers"in s,this.add_encoder_pkv?(this.num_decoder_layers=s.num_decoder_layers,this.num_decoder_heads=s.num_decoder_heads,this.decoder_dim_kv=s.decoder_dim_kv,this.num_encoder_layers=s.num_encoder_layers,this.num_encoder_heads=s.num_encoder_heads,this.encoder_dim_kv=s.encoder_dim_kv):(this.num_layers=s.num_layers,this.num_heads=s.num_heads,this.dim_kv=s.dim_kv)}}class CLIPPreTrainedModel extends PreTrainedModel{}class CLIPModel extends CLIPPreTrainedModel{}class CLIPTextModelWithProjection extends CLIPPreTrainedModel{static async from_pretrained(n,c={}){return c.model_file_name??="text_model",super.from_pretrained(n,c)}}class CLIPVisionModelWithProjection extends CLIPPreTrainedModel{static async from_pretrained(n,c={}){return c.model_file_name??="vision_model",super.from_pretrained(n,c)}}class SiglipPreTrainedModel extends PreTrainedModel{}class SiglipModel extends SiglipPreTrainedModel{}class SiglipTextModel extends SiglipPreTrainedModel{static async from_pretrained(n,c={}){return c.model_file_name??="text_model",super.from_pretrained(n,c)}}class SiglipVisionModel extends CLIPPreTrainedModel{static async from_pretrained(n,c={}){return c.model_file_name??="vision_model",super.from_pretrained(n,c)}}class ChineseCLIPPreTrainedModel extends PreTrainedModel{}class ChineseCLIPModel extends ChineseCLIPPreTrainedModel{}class CLIPSegPreTrainedModel extends PreTrainedModel{}class CLIPSegModel extends CLIPSegPreTrainedModel{}class CLIPSegForImageSegmentation extends CLIPSegPreTrainedModel{}class GPT2PreTrainedModel extends PreTrainedModel{constructor(n,c,d){super(n,c),this.generation_config=d,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.n_head,this.num_layers=this.config.n_layer,this.dim_kv=this.config.n_embd/this.num_heads}}class GPT2Model extends GPT2PreTrainedModel{}class GPT2LMHeadModel extends GPT2PreTrainedModel{}class GPTNeoPreTrainedModel extends PreTrainedModel{constructor(n,c,d){super(n,c),this.generation_config=d,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.num_heads,this.num_layers=this.config.num_layers,this.dim_kv=this.config.hidden_size/this.num_heads}}class GPTNeoModel extends GPTNeoPreTrainedModel{}class GPTNeoForCausalLM extends GPTNeoPreTrainedModel{}class GPTNeoXPreTrainedModel extends PreTrainedModel{constructor(n,c,d){super(n,c),this.generation_config=d,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.num_attention_heads,this.num_layers=this.config.num_hidden_layers,this.dim_kv=this.config.hidden_size/this.num_heads}}class GPTNeoXModel extends GPTNeoXPreTrainedModel{}
vendor: 22,758 bytes, line 1866
1866class GPTNeoXForCausalLM extends GPTNeoXPreTrainedModel{}class GPTJPreTrainedModel extends PreTrainedModel{constructor(n,c,d){super(n,c),this.generation_config=d,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.n_head,this.num_layers=this.config.n_layer,this.dim_kv=this.config.n_embd/this.num_heads}}class GPTJModel extends GPTJPreTrainedModel{}class GPTJForCausalLM extends GPTJPreTrainedModel{}class GPTBigCodePreTrainedModel extends PreTrainedModel{constructor(n,c,d){super(n,c),this.generation_config=d,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.n_head,this.num_layers=this.config.n_layer,this.dim_kv=this.config.n_embd/this.num_heads}}class GPTBigCodeModel extends GPTBigCodePreTrainedModel{}class GPTBigCodeForCausalLM extends GPTBigCodePreTrainedModel{}class CodeGenPreTrainedModel extends PreTrainedModel{constructor(n,c,d){super(n,c),this.generation_config=d,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.n_head,this.num_layers=this.config.n_layer,this.dim_kv=this.config.n_embd/this.num_heads}}class CodeGenModel extends CodeGenPreTrainedModel{}class CodeGenForCausalLM extends CodeGenPreTrainedModel{}class LlamaPreTrainedModel extends PreTrainedModel{constructor(n,c,d){super(n,c),this.generation_config=d,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.num_key_value_heads??this.config.num_attention_heads,this.num_layers=this.config.num_hidden_layers,this.dim_kv=this.config.hidden_size/this.config.num_attention_heads}}class LlamaModel extends LlamaPreTrainedModel{}class LlamaForCausalLM extends LlamaPreTrainedModel{}class Qwen2PreTrainedModel extends PreTrainedModel{constructor(n,c,d){super(n,c),this.generation_config=d,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.num_key_value_heads??this.config.num_attention_heads,this.num_layers=this.config.num_hidden_layers,this.dim_kv=this.config.hidden_size/this.config.num_attention_heads}}class Qwen2Model extends Qwen2PreTrainedModel{}class Qwen2ForCausalLM extends Qwen2PreTrainedModel{}class PhiPreTrainedModel extends PreTrainedModel{constructor(n,c,d){super(n,c),this.generation_config=d,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.num_attention_heads,this.num_layers=this.config.num_hidden_layers,this.dim_kv=this.config.hidden_size/this.num_heads}}class PhiModel extends PhiPreTrainedModel{}class PhiForCausalLM extends PhiPreTrainedModel{}class BloomPreTrainedModel extends PreTrainedModel{constructor(n,c,d){super(n,c),this.generation_config=d,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.n_head,this.num_layers=this.config.n_layer,this.dim_kv=this.config.hidden_size/this.num_heads}}class BloomModel extends BloomPreTrainedModel{}class BloomForCausalLM extends BloomPreTrainedModel{}class MptPreTrainedModel extends PreTrainedModel{constructor(n,c,d){super(n,c),this.generation_config=d,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.n_heads,this.num_layers=this.config.n_layers,this.dim_kv=this.config.d_model/this.num_heads}}class MptModel extends MptPreTrainedModel{}class MptForCausalLM extends MptPreTrainedModel{}class OPTPreTrainedModel extends PreTrainedModel{constructor(n,c,d){super(n,c),this.generation_config=d,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.num_attention_heads,this.num_layers=this.config.num_hidden_layers,this.dim_kv=this.config.hidden_size/this.num_heads}}class OPTModel extends OPTPreTrainedModel{}class OPTForCausalLM extends OPTPreTrainedModel{}class ViTPreTrainedModel extends PreTrainedModel{}class ViTModel extends ViTPreTrainedModel{}class ViTForImageClassification extends ViTPreTrainedModel{async _call(n){return new SequenceClassifierOutput(await super._call(n))}}class FastViTPreTrainedModel extends PreTrainedModel{}class FastViTModel extends FastViTPreTrainedModel{}class FastViTForImageClassification extends FastViTPreTrainedModel{async _call(n){return new SequenceClassifierOutput(await super._call(n))}}class VitMattePreTrainedModel extends PreTrainedModel{}class VitMatteForImageMatting extends VitMattePreTrainedModel{async _call(n){return new ImageMattingOutput(await super._call(n))}}class MobileViTPreTrainedModel extends PreTrainedModel{}class MobileViTModel extends MobileViTPreTrainedModel{}class MobileViTForImageClassification extends MobileViTPreTrainedModel{async _call(n){return new SequenceClassifierOutput(await super._call(n))}}class MobileViTV2PreTrainedModel extends PreTrainedModel{}class MobileViTV2Model extends MobileViTV2PreTrainedModel{}class MobileViTV2ForImageClassification extends MobileViTV2PreTrainedModel{async _call(n){return new SequenceClassifierOutput(await super._call(n))}}class OwlViTPreTrainedModel extends PreTrainedModel{}class OwlViTModel extends OwlViTPreTrainedModel{}class OwlViTForObjectDetection extends OwlViTPreTrainedModel{}class Owlv2PreTrainedModel extends PreTrainedModel{}class Owlv2Model extends Owlv2PreTrainedModel{}class Owlv2ForObjectDetection extends Owlv2PreTrainedModel{}class BeitPreTrainedModel extends PreTrainedModel{}class BeitModel extends BeitPreTrainedModel{}class BeitForImageClassification extends BeitPreTrainedModel{async _call(n){return new SequenceClassifierOutput(await super._call(n))}}class DetrPreTrainedModel extends PreTrainedModel{}class DetrModel extends DetrPreTrainedModel{}class DetrForObjectDetection extends DetrPreTrainedModel{async _call(n){return new DetrObjectDetectionOutput(await super._call(n))}}class DetrForSegmentation extends DetrPreTrainedModel{async _call(n){return new DetrSegmentationOutput(await super._call(n))}}class DetrObjectDetectionOutput extends ModelOutput{constructor({logits:n,pred_boxes:c}){super(),this.logits=n,this.pred_boxes=c}}class DetrSegmentationOutput extends ModelOutput{constructor({logits:n,pred_boxes:c,pred_masks:d}){super(),this.logits=n,this.pred_boxes=c,this.pred_masks=d}}class TableTransformerPreTrainedModel extends PreTrainedModel{}class TableTransformerModel extends TableTransformerPreTrainedModel{}class TableTransformerForObjectDetection extends TableTransformerPreTrainedModel{async _call(n){return new TableTransformerObjectDetectionOutput(await super._call(n))}}class TableTransformerObjectDetectionOutput extends DetrObjectDetectionOutput{}class DeiTPreTrainedModel extends PreTrainedModel{}class DeiTModel extends DeiTPreTrainedModel{}class DeiTForImageClassification extends DeiTPreTrainedModel{async _call(n){return new SequenceClassifierOutput(await super._call(n))}}class ResNetPreTrainedModel extends PreTrainedModel{}class ResNetModel extends ResNetPreTrainedModel{}class ResNetForImageClassification extends ResNetPreTrainedModel{async _call(n){return new SequenceClassifierOutput(await super._call(n))}}class SwinPreTrainedModel extends PreTrainedModel{}class SwinModel extends SwinPreTrainedModel{}class SwinForImageClassification extends SwinPreTrainedModel{async _call(n){return new SequenceClassifierOutput(await super._call(n))}}class Swin2SRPreTrainedModel extends PreTrainedModel{}class Swin2SRModel extends Swin2SRPreTrainedModel{}class Swin2SRForImageSuperResolution extends Swin2SRPreTrainedModel{}class DPTPreTrainedModel extends PreTrainedModel{}class DPTModel extends DPTPreTrainedModel{}class DPTForDepthEstimation extends DPTPreTrainedModel{}class DepthAnythingPreTrainedModel extends PreTrainedModel{}class DepthAnythingForDepthEstimation extends DepthAnythingPreTrainedModel{}class GLPNPreTrainedModel extends PreTrainedModel{}class GLPNModel extends GLPNPreTrainedModel{}class GLPNForDepthEstimation extends GLPNPreTrainedModel{}class DonutSwinPreTrainedModel extends PreTrainedModel{}class DonutSwinModel extends DonutSwinPreTrainedModel{}class ConvNextPreTrainedModel extends PreTrainedModel{}class ConvNextModel extends ConvNextPreTrainedModel{}class ConvNextForImageClassification extends ConvNextPreTrainedModel{async _call(n){return new SequenceClassifierOutput(await super._call(n))}}class ConvNextV2PreTrainedModel extends PreTrainedModel{}class ConvNextV2Model extends ConvNextV2PreTrainedModel{}class ConvNextV2ForImageClassification extends ConvNextV2PreTrainedModel{async _call(n){return new SequenceClassifierOutput(await super._call(n))}}class Dinov2PreTrainedModel extends PreTrainedModel{}class Dinov2Model extends Dinov2PreTrainedModel{}class Dinov2ForImageClassification extends Dinov2PreTrainedModel{async _call(n){return new SequenceClassifierOutput(await super._call(n))}}class YolosPreTrainedModel extends PreTrainedModel{}class YolosModel extends YolosPreTrainedModel{}class YolosForObjectDetection extends YolosPreTrainedModel{async _call(n){return new YolosObjectDetectionOutput(await super._call(n))}}class YolosObjectDetectionOutput extends ModelOutput{constructor({logits:n,pred_boxes:c}){super(),this.logits=n,this.pred_boxes=c}}class SamPreTrainedModel extends PreTrainedModel{}class SamModel extends SamPreTrainedModel{constructor(n,c,d){super(n,c),this.prompt_encoder_mask_decoder=d}async get_image_embeddings({pixel_values:n}){return await encoderForward(this,{pixel_values:n})}async forward(n){if((!n.image_embeddings||!n.image_positional_embeddings)&&(n={...n,...await this.get_image_embeddings(n)}),!n.input_labels){const c=n.input_points.dims.slice(0,-1),d=c.reduce((h,m)=>h*m,1);n.input_labels=new Tensor("int64",new BigInt64Array(d).fill(1n),c)}return await sessionRun(this.prompt_encoder_mask_decoder,{input_points:n.input_points,input_labels:n.input_labels,image_embeddings:n.image_embeddings,image_positional_embeddings:n.image_positional_embeddings})}async _call(n){return new SamImageSegmentationOutput(await super._call(n))}}class SamImageSegmentationOutput extends ModelOutput{constructor({iou_scores:n,pred_masks:c}){super(),this.iou_scores=n,this.pred_masks=c}}class MarianPreTrainedModel extends PreTrainedModel{}class MarianModel extends MarianPreTrainedModel{}class MarianMTModel extends MarianPreTrainedModel{constructor(n,c,d,h){super(n,c),this.decoder_merged_session=d,this.generation_config=h,this.num_decoder_layers=this.config.decoder_layers,this.num_decoder_heads=this.config.decoder_attention_heads,this.decoder_dim_kv=this.config.d_model/this.num_decoder_heads,this.num_encoder_layers=this.config.encoder_layers,this.num_encoder_heads=this.config.encoder_attention_heads,this.encoder_dim_kv=this.config.d_model/this.num_encoder_heads}}class M2M100PreTrainedModel extends PreTrainedModel{}class M2M100Model extends M2M100PreTrainedModel{}class M2M100ForConditionalGeneration extends M2M100PreTrainedModel{constructor(n,c,d,h){super(n,c),this.decoder_merged_session=d,this.generation_config=h,this.num_decoder_layers=this.config.decoder_layers,this.num_decoder_heads=this.config.decoder_attention_heads,this.decoder_dim_kv=this.config.d_model/this.num_decoder_heads,this.num_encoder_layers=this.config.encoder_layers,this.num_encoder_heads=this.config.encoder_attention_heads,this.encoder_dim_kv=this.config.d_model/this.num_encoder_heads}}class Wav2Vec2PreTrainedModel extends PreTrainedModel{}class Wav2Vec2Model extends Wav2Vec2PreTrainedModel{}class Wav2Vec2ForCTC extends Wav2Vec2PreTrainedModel{async _call(n){return new CausalLMOutput(await super._call(n))}}class Wav2Vec2ForSequenceClassification extends Wav2Vec2PreTrainedModel{async _call(n){return new SequenceClassifierOutput(await super._call(n))}}class Wav2Vec2ForAudioFrameClassification extends Wav2Vec2PreTrainedModel{async _call(n){return new TokenClassifierOutput(await super._call(n))}}class UniSpeechPreTrainedModel extends PreTrainedModel{}class UniSpeechModel extends UniSpeechPreTrainedModel{}class UniSpeechForCTC extends UniSpeechPreTrainedModel{async _call(n){return new CausalLMOutput(await super._call(n))}}class UniSpeechForSequenceClassification extends UniSpeechPreTrainedModel{async _call(n){return new SequenceClassifierOutput(await super._call(n))}}class UniSpeechSatPreTrainedModel extends PreTrainedModel{}class UniSpeechSatModel extends UniSpeechSatPreTrainedModel{}class UniSpeechSatForCTC extends UniSpeechSatPreTrainedModel{async _call(n){return new CausalLMOutput(await super._call(n))}}class UniSpeechSatForSequenceClassification extends UniSpeechSatPreTrainedModel{async _call(n){return new SequenceClassifierOutput(await super._call(n))}}class UniSpeechSatForAudioFrameClassification extends UniSpeechSatPreTrainedModel{async _call(n){return new TokenClassifierOutput(await super._call(n))}}class Wav2Vec2BertPreTrainedModel extends PreTrainedModel{}class Wav2Vec2BertModel extends Wav2Vec2BertPreTrainedModel{}class Wav2Vec2BertForCTC extends Wav2Vec2BertPreTrainedModel{async _call(n){return new CausalLMOutput(await super._call(n))}}class Wav2Vec2BertForSequenceClassification extends Wav2Vec2BertPreTrainedModel{async _call(n){return new SequenceClassifierOutput(await super._call(n))}}class HubertModel extends Wav2Vec2PreTrainedModel{}class HubertForCTC extends Wav2Vec2PreTrainedModel{async _call(n){return new CausalLMOutput(await super._call(n))}}class HubertForSequenceClassification extends Wav2Vec2PreTrainedModel{async _call(n){return new SequenceClassifierOutput(await super._call(n))}}class WavLMPreTrainedModel extends PreTrainedModel{}class WavLMModel extends WavLMPreTrainedModel{}class WavLMForCTC extends WavLMPreTrainedModel{async _call(n){return new CausalLMOutput(await super._call(n))}}class WavLMForSequenceClassification extends WavLMPreTrainedModel{async _call(n){return new SequenceClassifierOutput(await super._call(n))}}class WavLMForXVector extends WavLMPreTrainedModel{async _call(n){return new XVectorOutput(await super._call(n))}}class WavLMForAudioFrameClassification extends WavLMPreTrainedModel{async _call(n){return new TokenClassifierOutput(await super._call(n))}}class SpeechT5PreTrainedModel extends PreTrainedModel{}class SpeechT5ForSpeechToText extends SpeechT5PreTrainedModel{}class SpeechT5ForTextToSpeech extends SpeechT5PreTrainedModel{constructor(n,c,d,h){super(n,c),this.decoder_merged_session=d,this.generation_config=h,this.num_decoder_layers=this.config.decoder_layers,this.num_decoder_heads=this.config.decoder_attention_heads,this.decoder_dim_kv=this.config.hidden_size/this.num_decoder_heads,this.num_encoder_layers=this.config.encoder_layers,this.num_encoder_heads=this.config.encoder_attention_heads,this.encoder_dim_kv=this.config.hidden_size/this.num_encoder_heads}async generate_speech(n,c,{threshold:d=.5,minlenratio:h=0,maxlenratio:m=20,vocoder:p=null}={}){const w={input_ids:n},{encoder_outputs:z,encoder_attention_mask:A}=await encoderForward(this,w),y=z.dims[1]/this.config.reduction_factor,s=Math.floor(y*m),e=Math.floor(y*h),f=this.config.num_mel_bins;let g=[],R=null,q=null,H=0;for(;;){++H;const ae=boolTensor(!!q);let ne;q?ne=q.output_sequence_out:ne=new Tensor("float32",new Float32Array(f),[1,1,f]);let oe={use_cache_branch:ae,output_sequence:ne,encoder_attention_mask:A,speaker_embeddings:c,encoder_hidden_states:z};this.addPastKeyValues(oe,R),q=await sessionRun(this.decoder_merged_session,oe),R=this.getPastKeyValues(q,R);const{prob:le,spectrum:ce}=q;if(g.push(ce),H>=e&&(Array.from(le.data).filter(ue=>ue>=d).length>0||H>=s))break}const te=cat(g),{waveform:re}=await sessionRun(p.session,{spectrogram:te});return{spectrogram:te,waveform:re}}}class SpeechT5HifiGan extends PreTrainedModel{main_input_name="spectrogram"}class TrOCRPreTrainedModel extends PreTrainedModel{constructor(n,c,d){super(n,c),this.generation_config=d,this.config.pad_token_id=this.config.eos_token_id,this.num_encoder_layers=this.num_decoder_layers=this.config.decoder_layers,this.num_encoder_heads=this.num_decoder_heads=this.config.decoder_attention_heads,this.encoder_dim_kv=this.decoder_dim_kv=this.config.d_model/this.num_decoder_heads}}class TrOCRForCausalLM extends TrOCRPreTrainedModel{}class MistralPreTrainedModel extends PreTrainedModel{constructor(n,c,d){super(n,c),this.generation_config=d,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.num_key_value_heads,this.num_layers=this.config.num_hidden_layers,this.dim_kv=this.config.hidden_size/this.config.num_attention_heads}}class MistralModel extends MistralPreTrainedModel{}class MistralForCausalLM extends MistralPreTrainedModel{}class Starcoder2PreTrainedModel extends PreTrainedModel{constructor(n,c,d){super(n,c),this.generation_config=d,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.num_key_value_heads,this.num_layers=this.config.num_hidden_layers,this.dim_kv=this.config.hidden_size/this.config.num_attention_heads}}class Starcoder2Model extends Starcoder2PreTrainedModel{}class Starcoder2ForCausalLM extends Starcoder2PreTrainedModel{}class FalconPreTrainedModel extends PreTrainedModel{constructor(n,c,d){super(n,c),this.generation_config=d,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.num_attention_heads,this.num_layers=this.config.num_hidden_layers,this.dim_kv=this.config.hidden_size/this.config.num_attention_heads}}class FalconModel extends FalconPreTrainedModel{}class FalconForCausalLM extends FalconPreTrainedModel{}class ClapPreTrainedModel extends PreTrainedModel{}class ClapModel extends ClapPreTrainedModel{}class ClapTextModelWithProjection extends ClapPreTrainedModel{static async from_pretrained(n,c={}){return c.model_file_name??="text_model",super.from_pretrained(n,c)}}class ClapAudioModelWithProjection extends ClapPreTrainedModel{static async from_pretrained(n,c={}){return c.model_file_name??="audio_model",super.from_pretrained(n,c)}}class VitsPreTrainedModel extends PreTrainedModel{}class VitsModel extends VitsPreTrainedModel{async _call(n){return new VitsModelOutput(await super._call(n))}}class SegformerPreTrainedModel extends PreTrainedModel{}class SegformerForImageClassification extends SegformerPreTrainedModel{}class SegformerForSemanticSegmentation extends SegformerPreTrainedModel{}class StableLmPreTrainedModel extends PreTrainedModel{constructor(n,c,d){super(n,c),this.generation_config=d,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.num_attention_heads,this.num_layers=this.config.num_hidden_layers,this.dim_kv=this.config.hidden_size/this.num_heads}}class StableLmForCausalLM extends StableLmPreTrainedModel{}class EfficientNetPreTrainedModel extends PreTrainedModel{}class EfficientNetModel extends EfficientNetPreTrainedModel{}class EfficientNetForImageClassification extends EfficientNetPreTrainedModel{async _call(n){return new SequenceClassifierOutput(await super._call(n))}}class PretrainedMixin{static MODEL_CLASS_MAPPINGS=null;static BASE_IF_FAIL=!1;static async from_pretrained(n,{quantized:c=!0,progress_callback:d=null,config:h=null,cache_dir:m=null,local_files_only:p=!1,revision:w="main",model_file_name:z=null}={}){let A={quantized:c,progress_callback:d,config:h,cache_dir:m,local_files_only:p,revision:w,model_file_name:z};if(h=await AutoConfig.from_pretrained(n,A),A.config||(A.config=h),!this.MODEL_CLASS_MAPPINGS)throw new Error("`MODEL_CLASS_MAPPINGS` not implemented for this type of `AutoClass`: "+this.name);for(let y of this.MODEL_CLASS_MAPPINGS){const s=y.get(h.model_type);if(s)return await s[1].from_pretrained(n,A)}if(this.BASE_IF_FAIL)return console.warn(`Unknown model class "${h.model_type}", attempting to construct from base class.`),await PreTrainedModel.from_pretrained(n,A);throw Error(`Unsupported model type: ${h.model_type}`)}}const MODEL_MAPPING_NAMES_ENCODER_ONLY=new Map([["bert",["BertModel",BertModel]],["nomic_bert",["NomicBertModel",NomicBertModel]],["roformer",["RoFormerModel",RoFormerModel]],["electra",["ElectraModel",ElectraModel]],["esm",["EsmModel",EsmModel]],["convbert",["ConvBertModel",ConvBertModel]],["camembert",["CamembertModel",CamembertModel]],["deberta",["DebertaModel",DebertaModel]],["deberta-v2",["DebertaV2Model",DebertaV2Model]],["mpnet",["MPNetModel",MPNetModel]],["albert",["AlbertModel",AlbertModel]],["distilbert",["DistilBertModel",DistilBertModel]],["roberta",["RobertaModel",RobertaModel]],["xlm",["XLMModel",XLMModel]],["xlm-roberta",["XLMRobertaModel",XLMRobertaModel]],["clap",["ClapModel",ClapModel]],["clip",["CLIPModel",CLIPModel]],["clipseg",["CLIPSegModel",CLIPSegModel]],["chinese_clip",["ChineseCLIPModel",ChineseCLIPModel]],["siglip",["SiglipModel",SiglipModel]],["mobilebert",["MobileBertModel",MobileBertModel]],["squeezebert",["SqueezeBertModel",SqueezeBertModel]],["wav2vec2",["Wav2Vec2Model",Wav2Vec2Model]],["wav2vec2-bert",["Wav2Vec2BertModel",Wav2Vec2BertModel]],["unispeech",["UniSpeechModel",UniSpeechModel]],["unispeech-sat",["UniSpeechSatModel",UniSpeechSatModel]],["hubert",["HubertModel",HubertModel]],["wavlm",["WavLMModel",WavLMModel]],["audio-spectrogram-transformer",["ASTModel",ASTModel]],["vits",["VitsModel",VitsModel]],["detr",["DetrModel",DetrModel]],["table-transformer",["TableTransformerModel",TableTransformerModel]],["vit",["ViTModel",ViTModel]],["fastvit",["FastViTModel",FastViTModel]],["mobilevit",["MobileViTModel",MobileViTModel]],["mobilevitv2",["MobileViTV2Model",MobileViTV2Model]],["owlvit",["OwlViTModel",OwlViTModel]],["owlv2",["Owlv2Model",Owlv2Model]],["beit",["BeitModel",BeitModel]],["deit",["DeiTModel",DeiTModel]],["convnext",["ConvNextModel",ConvNextModel]],["convnextv2",["ConvNextV2Model",ConvNextV2Model]],["dinov2",["Dinov2Model",Dinov2Model]],["resnet",["ResNetModel",ResNetModel]],["swin",["SwinModel",SwinModel]],["swin2sr",["Swin2SRModel",Swin2SRModel]],["donut-swin",["DonutSwinModel",DonutSwinModel]],["yolos",["YolosModel",YolosModel]],["dpt",["DPTModel",DPTModel]],["glpn",["GLPNModel",GLPNModel]],["hifigan",["SpeechT5HifiGan",SpeechT5HifiGan]],["efficientnet",["EfficientNetModel",EfficientNetModel]]]),MODEL_MAPPING_NAMES_ENCODER_DECODER=new Map([["t5",["T5Model",T5Model]],["longt5",["LongT5Model",LongT5Model]],["mt5",["MT5Model",MT5Model]],["bart",["BartModel",BartModel]],["mbart",["MBartModel",MBartModel]],["marian",["MarianModel",MarianModel]],["whisper",["WhisperModel",WhisperModel]],["m2m_100",["M2M100Model",M2M100Model]],["blenderbot",["BlenderbotModel",BlenderbotModel]],["blenderbot-small",["BlenderbotSmallModel",BlenderbotSmallModel]]]),MODEL_MAPPING_NAMES_DECODER_ONLY=new Map([["bloom",["BloomModel",BloomModel]],["gpt2",["GPT2Model",GPT2Model]],["gptj",["GPTJModel",GPTJModel]],["gpt_bigcode",["GPTBigCodeModel",GPTBigCodeModel]],["gpt_neo",["GPTNeoModel",GPTNeoModel]],["gpt_neox",["GPTNeoXModel",GPTNeoXModel]],["codegen",["CodeGenModel",CodeGenModel]],["llama",["LlamaModel",LlamaModel]],["qwen2",["Qwen2Model",Qwen2Model]],["phi",["PhiModel",PhiModel]],["mpt",["MptModel",MptModel]],["opt",["OPTModel",OPTModel]],["mistral",["MistralModel",MistralModel]],["starcoder2",["Starco
1866der2Model",Starcoder2Model]],["falcon",["FalconModel",FalconModel]]]),MODEL_FOR_SPEECH_SEQ_2_SEQ_MAPPING_NAMES=new Map([["speecht5",["SpeechT5ForSpeechToText",SpeechT5ForSpeechToText]],["whisper",["WhisperForConditionalGeneration",WhisperForConditionalGeneration]]]),MODEL_FOR_TEXT_TO_SPECTROGRAM_MAPPING_NAMES=new Map([["speecht5",["SpeechT5ForTextToSpeech",SpeechT5ForTextToSpeech]]]),MODEL_FOR_TEXT_TO_WAVEFORM_MAPPING_NAMES=new Map([["vits",["VitsModel",VitsModel]]]),MODEL_FOR_SEQUENCE_CLASSIFICATION_MAPPING_NAMES=new Map([["bert",["BertForSequenceClassification",BertForSequenceClassification]],["roformer",["RoFormerForSequenceClassification",RoFormerForSequenceClassification]],["electra",["ElectraForSequenceClassification",ElectraForSequenceClassification]],["esm",["EsmForSequenceClassification",EsmForSequenceClassification]],["convbert",["ConvBertForSequenceClassification",ConvBertForSequenceClassification]],["camembert",["CamembertForSequenceClassification",CamembertForSequenceClassification]],["deberta",["DebertaForSequenceClassification",DebertaForSequenceClassification]],["deberta-v2",["DebertaV2ForSequenceClassification",DebertaV2ForSequenceClassification]],["mpnet",["MPNetForSequenceClassification",MPNetForSequenceClassification]],["albert",["AlbertForSequenceClassification",AlbertForSequenceClassification]],["distilbert",["DistilBertForSequenceClassification",DistilBertForSequenceClassification]],["roberta",["RobertaForSequenceClassification",RobertaForSequenceClassification]],["xlm",["XLMForSequenceClassification",XLMForSequenceClassification]],["xlm-roberta",["XLMRobertaForSequenceClassification",XLMRobertaForSequenceClassification]],["bart",["BartForSequenceClassification",BartForSequenceClassification]],["mbart",["MBartForSequenceClassification",MBartForSequenceClassification]],["mobilebert",["MobileBertForSequenceClassification",MobileBertForSequenceClassification]],["squeezebert",["SqueezeBertForSequenceClassification",SqueezeBertForSequenceClassification]]]),MODEL_FOR_TOKEN_CLASSIFICATION_MAPPING_NAMES=new Map([["bert",["BertForTokenClassification",BertForTokenClassification]],["roformer",["RoFormerForTokenClassification",RoFormerForTokenClassification]],["electra",["ElectraForTokenClassification",ElectraForTokenClassification]],["esm",["EsmForTokenClassification",EsmForTokenClassification]],["convbert",["ConvBertForTokenClassification",ConvBertForTokenClassification]],["camembert",["CamembertForTokenClassification",CamembertForTokenClassification]],["deberta",["DebertaForTokenClassification",DebertaForTokenClassification]],["deberta-v2",["DebertaV2ForTokenClassification",DebertaV2ForTokenClassification]],["mpnet",["MPNetForTokenClassification",MPNetForTokenClassification]],["distilbert",["DistilBertForTokenClassification",DistilBertForTokenClassification]],["roberta",["RobertaForTokenClassification",RobertaForTokenClassification]],["xlm",["XLMForTokenClassification",XLMForTokenClassification]],["xlm-roberta",["XLMRobertaForTokenClassification",XLMRobertaForTokenClassification]]]),MODEL_FOR_SEQ_TO_SEQ_CAUSAL_LM_MAPPING_NAMES=new Map([["t5",["T5ForConditionalGeneration",T5ForConditionalGeneration]],["longt5",["LongT5ForConditionalGeneration",LongT5ForConditionalGeneration]],["mt5",["MT5ForConditionalGeneration",MT5ForConditionalGeneration]],["bart",["BartForConditionalGeneration",BartForConditionalGeneration]],["mbart",["MBartForConditionalGeneration",MBartForConditionalGeneration]],["marian",["MarianMTModel",MarianMTModel]],["m2m_100",["M2M100ForConditionalGeneration",M2M100ForConditionalGeneration]],["blenderbot",["BlenderbotForConditionalGeneration",BlenderbotForConditionalGeneration]],["blenderbot-small",["BlenderbotSmallForConditionalGeneration",BlenderbotSmallForConditionalGeneration]]]),MODEL_WITH_LM_HEAD_MAPPING_NAMES=new Map([["bloom",["BloomForCausalLM",BloomForCausalLM]],["gpt2",["GPT2LMHeadModel",GPT2LMHeadModel]],["gptj",["GPTJForCausalLM",GPTJForCausalLM]],["gpt_bigcode",["GPTBigCodeForCausalLM",GPTBigCodeForCausalLM]],["gpt_neo",["GPTNeoForCausalLM",GPTNeoForCausalLM]],["gpt_neox",["GPTNeoXFor
1866CausalLM",GPTNeoXForCausalLM]],["codegen",["CodeGenForCausalLM",CodeGenForCausalLM]],["llama",["LlamaForCausalLM",LlamaForCausalLM]],["qwen2",["Qwen2ForCausalLM",Qwen2ForCausalLM]],["phi",["PhiForCausalLM",PhiForCausalLM]],["mpt",["MptForCausalLM",MptForCausalLM]],["opt",["OPTForCausalLM",OPTForCausalLM]],["mbart",["MBartForCausalLM",MBartForCausalLM]],["mistral",["MistralForCausalLM",MistralForCausalLM]],["starcoder2",["Starcoder2ForCausalLM",Starcoder2ForCausalLM]],["falcon",["FalconForCausalLM",FalconForCausalLM]],["trocr",["TrOCRForCausalLM",TrOCRForCausalLM]],["stablelm",["StableLmForCausalLM",StableLmForCausalLM]]]),MODEL_FOR_MASKED_LM_MAPPING_NAMES=new Map([["bert",["BertForMaskedLM",BertForMaskedLM]],["roformer",["RoFormerForMaskedLM",RoFormerForMaskedLM]],["electra",["ElectraForMaskedLM",ElectraForMaskedLM]],["esm",["EsmForMaskedLM",EsmForMaskedLM]],["convbert",["ConvBertForMaskedLM",ConvBertForMaskedLM]],["camembert",["CamembertForMaskedLM",CamembertForMaskedLM]],["deberta",["DebertaForMaskedLM",DebertaForMaskedLM]],["deberta-v2",["DebertaV2ForMaskedLM",DebertaV2ForMaskedLM]],["mpnet",["MPNetForMaskedLM",MPNetForMaskedLM]],["albert",["AlbertForMaskedLM",AlbertForMaskedLM]],["distilbert",["DistilBertForMaskedLM",DistilBertForMaskedLM]],["roberta",["RobertaForMaskedLM",RobertaF
1866orMaskedLM]],["xlm",["XLMWithLMHeadModel",XLMWithLMHeadModel]],["xlm-roberta",["XLMRobertaForMaskedLM",XLMRobertaForMaskedLM]],["mobilebert",["MobileBertForMaskedLM",MobileBertForMaskedLM]],["squeezebert",["SqueezeBertForMaskedLM",SqueezeBertForMaskedLM]]]),MODEL_FOR_QUESTION_ANSWERING_MAPPING_NAMES=new Map([["bert",["BertForQuestionAnswering",BertForQuestionAnswering]],["roformer",["RoFormerForQuestionAnswering",RoFormerForQuestionAnswering]],["electra",["ElectraForQuestionAnswering",ElectraForQuestionAnswering]],["convbert",["ConvBertForQuestionAnswering",ConvBertForQuestionAnswering]],["camembert",["CamembertForQuestionAnswering",CamembertForQuestionAnswering]],["deberta",["DebertaForQuestionAnswering",DebertaForQuestionAnswering]],["deberta-v2",["DebertaV2ForQuestionAnswering",DebertaV2ForQuestionAnswering]],["mpnet",["MPNetForQuestionAnswering",MPNetForQuestionAnswering]],["albert",["AlbertForQuestionAnswering",AlbertForQuestionAnswering]],["distilbert",["DistilBertForQuestionAnswering",DistilBertForQuestionAnswering]],["roberta",["RobertaForQuestionAnswering",RobertaForQuestionAnswering]],["xlm",["XLMForQuestionAnswering",XLMForQuestionAnswering]],["xlm-roberta",["XLMRobertaForQuestionAnswering",XLMRobertaForQuestionAnswering]],["mobilebert",["MobileBertForQuestionAnswering",MobileBertForQuestionAnswering]],["squeezebert",["SqueezeBertForQuestionAnswering",SqueezeBertForQuestionAnswering]]]),MODEL_FOR_VISION_2_SEQ_MAPPING_NAMES=new Map([["vision-encoder-decoder",["VisionEncoderDecoderModel",VisionEncoderDecoderModel]]]),MODEL_FOR_IMAGE_CLASSIFICATION_MAPPING_NAMES=new Map([["vit",["ViTForImageClassification",ViTForImageClassification]],["fastvit",["FastViTForImageClassification",FastViTForImageClassification]],["mobilevit",["MobileViTForImageClassification",MobileViTForImageClassification]],["mobilevitv2",["MobileViTV2ForImageClassification",MobileViTV2ForImageClassification]],["beit",["BeitForImageClassification",BeitForImageClassification]],["deit",["DeiTForImageClassification",DeiTForImageClassification]],["convnext",["ConvNextForImageClassification",ConvNextForImageClassification]],["convnextv2",["ConvNextV2ForImageClassification",ConvNextV2ForImageClassification]],["dinov2",["Dinov2ForImageClassification",Dinov2ForImageClassification]],["resnet",["ResNetForImageClassification",ResNetForImageClassification]],["swin",["SwinForImageClassification",SwinForImageClassification]],["segformer",["SegformerForImageClassification",SegformerForImageClassification]],["efficientnet",["EfficientNetForImageClassification",EfficientNetForImageClassification]]]),MODEL_FOR_OBJECT_DETECTION_MAPPING_NAMES=new Map([["detr",["DetrForObjectDetection",DetrForObjectDetection]],["table-transformer",["TableTransformerForObjectDetection",TableTransformerForObjectDetection]],["yolos",["YolosForObjectDetection",YolosForObjectDetection]]]),MODEL_FOR_ZERO_SHOT_OBJECT_DETECTION_MAPPING_NAMES=new Map([["owlvit",["OwlViTForObjectDetection",OwlViTForObjectDetection]],["owlv2",["Owlv2ForObjectDetection",Owlv2ForObjectDetection]]]),MODEL_FOR_IMAGE_SEGMENTATION_MAPPING_NAMES=new Map([["detr",["DetrForSegmentation",DetrForSegmentation]],["clipseg",["CLIPSegForImageSegmentation",CLIPSegForImageSegmentation]]]),MODEL_FOR_SEMANTIC_SEGMENTATION_MAPPING_NAMES=new Map([["segformer",["SegformerForSemanticSegmentation",SegformerForSemanticSegmentation]]]),MODEL_FOR_MASK_GENERATION_MAPPING_NAMES=new Map([["sam",["SamModel",SamModel]]]),MODEL_FOR_CTC_MAPPING_NAMES=new Map([["wav2vec2",["Wav2Vec2ForCTC",Wav2Vec2ForCTC]],["wav2vec2-bert",["Wav2Vec2BertForCTC",Wav2Vec2BertForCTC]],["unispeech",["UniSpeechForCTC",UniSpeechForCTC]],["unispeech-sat",["UniSpeechSatForCTC",UniSpeechSatForCTC]],["wavlm",["WavLMForCTC",WavLMForCTC]],["hubert",["HubertForCTC",HubertForCTC]]]),MODEL_FOR_AUDIO_CLASSIFICATION_MAPPING_NAMES=new Map([["wav2vec2",["Wav2Vec2ForSequenceClassification",Wav2Vec2ForSequenceClassification]],["wav2vec2-bert",["Wav2Vec2BertForSequenceClassification",Wav2Vec2BertForSequenceClassification]],["unispeech",["UniSpeechForSequenceClassification",UniSpeechForSequenceClassification]],["unispeech-sat",["UniSpeechSatForSequenceClassification",UniSpeechSatForSequenceClassification]],["wavlm",["WavLMForSequenceClassification",Wav
1866LMForSequenceClassification]],["hubert",["HubertForSequenceClassification",HubertForSequenceClassification]],["audio-spectrogram-transformer",["ASTForAudioClassification",ASTForAudioClassification]]]),MODEL_FOR_AUDIO_XVECTOR_MAPPING_NAMES=new Map([["wavlm",["WavLMForXVector",WavLMForXVector]]]),MODEL_FOR_AUDIO_FRAME_CLASSIFICATION_MAPPING_NAMES=new Map([["unispeech-sat",["UniSpeechSatForAudioFrameClassification",UniSpeechSatForAudioFrameClassification]],["wavlm",["WavLMForAudioFrameClassification",WavLMForAudioFrameClassification]],["wav2vec2",["Wav2Vec2ForAudioFrameClassification",Wav2Vec2ForAudioFrameClassification]]]),MODEL_FOR_IMAGE_MATTING_MAPPING_NAMES=new Map([["vitmatte",["VitMatteForImageMatting",VitMatteForImageMatting]]]),MODEL_FOR_IMAGE_TO_IMAGE_MAPPING_NAMES=new Map([["swin2sr",["Swin2SRForImageSuperResolution",Swin2SRForImageSuperResolution]]]),MODEL_FOR_DEPTH_ESTIMATION_MAPPING_NAMES=new Map([["dpt",["DPTForDepthEstimation",DPTForDepthEstimation]],["depth_anything",["DepthAnythingForDepthEstimation",DepthAnythingForDepthEstimation]],["glpn",["GLPNForDepthEstimation",GLPNForDepthEstimation]]]),MODEL_FOR_IMAGE_FEATURE_EXTRACTION_MAPPING_NAMES=new Map([["clip",["CLIPVisionModelWithProjection",CLIPVisionModelWithProjection]],["siglip",["SiglipVisionModel",SiglipVisionModel]]]),MODEL_CLASS_TYPE_MAPPING=[[MODEL_MAPPING_NAMES_ENCODER_ONLY,MODEL_TYPES.EncoderOnly],[MODEL_MAPPING_NAMES_ENCODER_DECODER,MODEL_TYPES.EncoderDecoder],[MODEL_MAPPING_NAMES_DECODER_ONLY,MODEL_TYPES.DecoderOnly],[MODEL_FOR_SEQUENCE_CLASSIFICATION_MAPPING_NAMES,MODEL_TYPES.EncoderOnly],[MODEL_FOR_TOKEN_CLASSIFICATION_MAPPING_NAMES,MODEL_TYPES.EncoderOnly],[MODEL_FOR_SEQ_TO_SEQ_CAUSAL_LM_MAPPING_NAMES,MODEL_TYPES.Seq2Seq],[MODEL_FOR_SPEECH_SEQ_2_SEQ_MAPPING_NAMES,MODEL_TYPES.Seq2Seq],[MODEL_WITH_LM_HEAD_MAPPING_NAMES,MODEL_TYPES.DecoderOnly],[MODEL_FOR_MASKED_LM_MAPPING_NAMES,MODEL_TYPES.EncoderOnly],[MODEL_FOR_QUESTION_ANSWERING_MAPPING_NAMES,MODEL_TYPES.EncoderOnly],[MODEL_FOR_VISION_2_SEQ_MAPPING_NAMES,MODEL_TYPES.Vision2Seq],[MODEL_FOR_IMAGE_CLASSIFICATION_MAPPING_NAMES,MODEL_TYPES.EncoderOnly],[MODEL_FOR_IMAGE_SEGMENTATION_MAPPING_NAMES,MODEL_TYPES.EncoderOnly],[MODEL_FOR_SEMANTIC_SEGMENTATION_MAPPING_NAMES,MODEL_TYPES.EncoderOnly],[MODEL_FOR_IMAGE_MATTING_MAPPING_NAMES,MODEL_TYPES.EncoderOnly],[MODEL_FOR_IMAGE_TO_IMAGE_MAPPING_NAMES,MODEL_TYPES.EncoderOnly],[MODEL_FOR_DEPTH_ESTIMATION_MAPPING_NAMES,MODEL_TYPES.EncoderOnly],[MODEL_FOR_OBJECT_DETECTION_MAPPING_NAMES,MODEL_TYPES.EncoderOnly],[MODEL_FOR_ZERO_SHOT_OBJECT_DETECTION_MAPPING_NAMES,MODEL_TYPES.EncoderOnly],[MODEL_FOR_MASK_GENERATION_MAPPING_NAMES,MODEL_TYPES.MaskGeneration],[MODEL_FOR_CTC_MAPPING_NAMES,MODEL_TYPES.EncoderOnly],[MODEL_FOR_AUDIO_CLASSIFICATION_MAPPING_NAMES,MODEL_TYPES.EncoderOnly],[MODEL_FOR_TEXT_TO_SPECTROGRAM_MAPPING_NAMES,MODEL_TYPES.Seq2Seq],[MODEL_FOR_TEXT_TO_WAVEFORM_MAPPING_NAMES,MODEL_TYPES.EncoderOnly],[MODEL_FOR_AUDIO_XVECTOR_MAPPING_NAMES,MODEL_TYPES.EncoderOnly],[MODEL_FOR_AUDIO_FRAME_CLASSIFICATION_MAPPING_NAMES,MODEL_TYPES.EncoderOnly],[MODEL_FOR_IMAGE_FEATURE_EXTRACTION_MAPPING_NAMES,MODEL_TYPES.EncoderOnly]];for(const[o,n]of MODEL_CLASS_TYPE_MAPPING)for(const[c,d]of o.values())MODEL_TYPE_MAPPING.set(c,n),MODEL_CLASS_TO_NAME_MAPPING.set(d,c),MODEL_NAME_TO_CLASS_MAPPING.set(c,d);const CUSTOM_MAPPING=[["CLIPTextModelWithProjection",CLIPTextModelWithProjection,MODEL_TYPES.EncoderOnly],["SiglipTextModel",SiglipTextModel,MODEL_TYPES.EncoderOnly],["ClapTextModelWithProjection",ClapTextModelWithProjection,MODEL_TYPES.EncoderOnly],["ClapAudioModelWithProjection",ClapAudioModelWithProjection,MODEL_TYPES.EncoderOnly]];for(const[o,n,c]of CUSTOM_MAPPING)MODEL_TYPE_MAPPING.set(o,c),MODEL_CLASS_TO_NAME_MAPPING.set(n,o),MODEL_NAME_TO_CLASS_MAPPING.set(o,n);class AutoModel extends PretrainedMixin{static MODEL_CLASS_MAPPINGS=MODEL_CLASS_TYPE_MAPPING.map(n=>n[0]);static BASE_IF_FAIL=!0}class Seq2SeqLMOutput extends ModelOutput{constructor({logits:n,past_key_values:c,encoder_outputs:d,decoder_attentions:h=null,cross_attentions:m=null}){super(),this.logits=n,this.past_key_values=c,this.encoder_outputs=d,this.decoder_attentions=h,this.cross_attentions=m}}class SequenceClassifierOutput extends ModelOutput{constructor({logits:n}){super(),this.logits=n}}class XVectorOutput extends ModelOutput{constructor({logits:n,embeddings:c}){super(),this.logits=n,this.embeddings=c}}class TokenClassifierOutput extends ModelOutput{constructor({logits:n}){super(),this.logits=n}}class MaskedLMOutput extends ModelOutput{constructor({logits:n}){super(),this.logits=n}}class QuestionAnsweringModelOutput extends ModelOutput{constructor({start_logits:n,end_logits:c}){super(),this.start_logits=n,this.end_logits=c}}class CausalLMOutput extends ModelOutput{constructor({logits:n}){super(),this.logits=n}}class ImageMattingOutput extends ModelOutput{constructor({alphas:n}){super(),this.alphas=n}}class VitsModelOutput extends ModelOutput{constructor({waveform:n,spectrogram:c}){super(),this.waveform=n,this.spectrogram=c}}const BROWSER_ENV=typeof self<"u";if(!BROWSER_ENV){if(!sharp)throw new Error("Unable to load image processing library.")}var levenshtein$1={exports:{}};const peq=new Uint32Array(65536),myers_32=(o,n)=>{const c=o.length,d=n.length,h=1<<c-1;let m=-1,p=0,w=c,z=c;for(;z--;)peq[o.charCodeAt(z)]|=1<<z;for(z=0;z<d;
1866z++){let A=peq[n.charCodeAt(z)];const y=A|p;A|=(A&m)+m^m,p|=~(A|m),m&=A,p&h&&w++,m&h&&w--,p=p<<1|1,m=m<<1|~(y|p),p&=y}for(z=c;z--;)peq[o.charCodeAt(z)]=0;return w},myers_x=(o,n)=>{const c=n.length,d=o.length,h=[],m=[],p=Math.ceil(c/32),w=Math.ceil(d/32);for(let g=0;g<p;g++)m[g]=-1,h[g]=0;let z=0;for(;z<w-1;z++){let g=0,R=-1;const q=z*32,H=Math.min(32,d)+q;for(let te=q;te<H;te++)peq[o.charCodeAt(te)]|=1<<te;for(let te=0;te<c;te++){const re=peq[n.charCodeAt(te)],ae=m[te/32|0]>>>te&1,ne=h[te/32|0]>>>te&1,oe=re|g,le=((re|ne)&R)+R^R|re|ne;let ce=g|~(le|R),ue=R&le;ce>>>31^ae&&(m[te/32|0]^=1<<te),ue>>>31^ne&&(h[te/32|0]^=1<<te),ce=ce<<1|ae,ue=ue<<1|ne,R=ue|~(oe|ce),g=ce&oe}for(let te=q;te<H;te++)peq[o.charCodeAt(te)]=0}let A=0,y=-1;const s=z*32,e=Math.min(32,d-s)+s;for(let g=s;g<e;g++)peq[o.charCodeAt(g)]|=1<<g;let f=d;for(let g=0;g<c;g++){const R=peq[n.charCodeAt(g)],q=m[g/32|0]>>>g&1,H=h[g/32|0]>>>g&1,te=R|A,re=((R|H)&y)+y^y|R|H;let ae=A|~(re|y),ne=y&re;f+=ae>>>d-1&1,f-=ne>>>d-1&1,ae>>>31^q&&(m[g/32|0]^=1<<g),ne>>>31^H&&(h[g/32|0]^=1<<g),ae=ae<<1|q,ne=ne<<1|H,y=ne|~(te|ae),A=ae&te}for(let g=s;g<e;g++)peq[o.charCodeAt(g)]=0;return f},distance=(o,n)=>{if(o.length<n.length){const c=n;n=o,o=c}return n.length===0?o.length:o.length<=32?myers_32(o,n):myers_x(o,n)},closest=(o,n)=>{let c=1/0,d=0;for(let h=0;h<n.length;h++){const m=distance(o,n[h]);m<c&&(c=m,d=h)}return n[d]},mod=Object.freeze(Object.defineProperty({__proto__:null,closest,distance},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(mod);var hasRequiredLevenshtein;function requireLevenshtein(){return hasRequiredLevenshtein||(hasRequiredLevenshtein=1,(function(o,n){(function(){var c;try{c=typeof Intl<"u"&&typeof Intl.Collator<"u"?Intl.Collator("generic",{sensitivity:"base"}):null}catch{console.log("Collator could not be initialized and wouldn't be used")}var d=require$$0,h=[],m=[],p={get:function(w,z,A){var y=A&&c&&A.useCollator;if(y){var s=w.length,e=z.length;if(s===0)return e;if(e===0)return s;var f,g,R,q,H;for(R=0;R<e;++R)h[R]=R,m[R]=z.charCodeAt(R);h[e]=e;var te;for(R=0;R<s;++R){for(g=R+1,q=0;q<e;++q)f=g,te=c.compare(w.charAt(R),String.fromCharCode(m[q]))===0,g=h[q]+(te?0:1),H=f+1,g>H&&(g=H),H=h[q+1]+1,g>H&&(g=H),h[q]=f;h[q]=g}return g}return d.distance(w,z)}};o!==null&&o.exports===n?o.exports=p:typeof self<"u"&&typeof self.postMessage=="function"&&typeof self.importScripts=="function"?self.Levenshtein=p:typeof window<"u"&&window!==null&&(window.Levenshtein=p)})()})(levenshtein$1,levenshtein$1.exports)),levenshtein$1.exports}requireLevenshtein();var root_2$q=from_html('<link rel="preload" as="image"/>'),root_5$h=from_html('<div class="grid h-screen place-items-center">Lädt… ein klein wenig Geduld …</div>'),root_7$b=from_html('<div class="mauer svelte-1f7qwxq"><div class="row"><!> <div class="stein m0" id="fussblock" style="height:150px;background:transparent"><!></div></div></div>'),root_15$8=from_html('<details><summary class="zuklappen"></summary> <!></details>'),root_18$9=from_html('<div class="svelte-1f7qwxq"></div>'),root_17$8=from_html("<div><!> <!></div>"),root_21$8=from_html("<div><!></div>"),root_23$6=from_html("<div><!></div>"),root_27$5=from_html("<div></div>"),root_28$4=from_html('<div class="break svelte-1f7qwxq"></div>'),root_22$7=from_html("<!> <!>",1),root_30$3=from_html("<h1></h1>"),root_31$3=from_html('<div class="archiv svelte-1f7qwxq">ARCHIV</div>'),root_32$5=from_html("<h1></h1>"),root_33$3=from_html('<h1 class="untertitel svelte-1f7qwxq"></h1>'),root_34$4=from_html('<h1 class="untertitel svelte-1f7qwxq"></h1>'),root_35$4=from_html('<h2 class="untertitel svelte-1f7qwxq"></h2>'),root_36$1=from_html('<h2 class="untertitel svelte-1f7qwxq"></h2>'),root_37$2=from_html('<h2 class="serienreferenz svelte-1f7qwxq"></h2>'),root_38$1=from_html('<h2 class="serienreferenz svelte-1f7qwxq"></h2>'),root_39$1=from_html('<h3 class="premiere svelte-1f7qwxq"></h3>'),root_40$1=from_html('<h3 class="premiere svelte-1f7qwxq"></h3>'),root_42$1=from_html('<img class="herobg svelte-1f7qwxq" decoding="sync" alt=""/>'),root_43$3=from_html('<div class="herocredit svelte-1f7qwxq"></div>'),root_29$5=from_html('<div class="hero svelte-1f7qwxq"><div class="titel_in_hero svelte-1f7qwxq"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!> <div class="hero_overlay svelte-1f7qwxq"></div></div> <!>',1),root_46$3=from_html("<h1></h1>"),root_47$2=from_html('<h2 class="untertitel svelte-1f7qwxq"></h2>'),root_45$3=from_html('<div class="kasten svelte-1f7qwxq" style="min-width:95%"><!> <!></div>'),root_49$3=from_html("<h1></h1>"),root_50$1=from_html("<h1></h1>"),root_51$1=from_html('<h1 class="untertitel svelte-1f7qwxq"></h1>'),root_52$2=from_html('<h1 class="untertitel svelte-1f7qwxq"></h1>'),root_53$2=from_html('<h2 class="untertitel svelte-1f7qwxq"></h2>'),root_54$1=from_html('<h2 class="untertitel svelte-1f7qwxq"></h2>'),root_55=from_html('<h2 class="serienreferenz svelte-1f7qwxq"></h2>'),root_56$1=from_html('<h2 class="serienreferenz svelte-1f7qwxq"></h2>'),root_57=from_html('<h3 class="premiere svelte-1f7qwxq"></h3>'),root_58$1=from_html('<h3 class="premiere svelte-1f7qwxq"></h3>'),root_48$3=from_html('<div class="kasten svelte-1f7qwxq" role="article" style="min-width:95%"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div>'),root_44$2=from_html('<div style="height:200px" class="svelte-1f7qwxq"></div> <!>',1),root_60$1=from_html('<div><div class="zeileinner svelte-1f7qwxq"></div></div>'),root_10$d=from_html("<div><!>  <!></div>"),root_6$e=from_html("<div><!></div>"),root_66$1=from_html('<div style="height:100px"></div>'),root$y=from_html("<!> <!> <!> <!> <!> <!>",1);function Seite(o,n){push(n,!0);function c(we){try{we?.destroy()}catch(Se){console.error("Fehler beim Zerstören des Y.Doc:",Se)}}const d=spielzeitJahr(),h=function(we){try{return Hjson.parse(we)}catch{return!1}},m={theoriemodul:Theoriemodul,message:Message,besetzung:Besetzung,termine:Termine,rasterblock:Rasterblock,contentnotes:ContentNotes,modalbutton:Modalbutton,besetzt:Besetzt,abomat:Abomat,abo:Abo,vrorder:VrOrder,vodorder:VodOrder,anmeldung:Anmeldung,fragbrecht:Fragbrecht,fragfleisser:Fragfleisser,fragbrecht2:Fragbrecht2,livevorder:LiveVOrder,heute:Heute,terminekasten:Terminekasten,wetter:Wetter,newsletter:Newsletter,vrcodes:Vrco
1866des,videopaywall:Videopaywall,soloorder:SoloOrder,antworten:Antworten,fragen:Fragen,seiten:Seiten,empfehlungen:Empfehlungen,test:Test,videopassword:Videopassword,mapbox:MapboxLazy,form:Form,formtheaterbus:FormTheaterbus,formtheaterbuseinzeln:FormTheaterbusEinzeln,formular:Formular,formabowechsel:Formabowechsel,formtheatercard:FormTheatercard,mem:Mem,fotoblock:Fotoblock,bildkachel:Bildkachel,suche:Suche,scrollyblock:Scrollyblock,audioplayer:AudioPlayer,video3q:Video3q},p=we=>{document.querySelectorAll(".fuellblock").forEach(Ae=>Ae.remove());const Se=window.history.state||{};if(Se.returnToY!==void 0){window.history.replaceState({...Se,returnToY:void 0},"",window.location.href),appState.menueopen=!1;return}let ye=Se.y||0;const ke=()=>window.scrollTo(0,ye);appState.doc.sorte=="mauer"||appState.doc.sorte=="pressefotos"?ImagesLoaded(we,()=>{mauerbau()&&ke()}):(console.log("keinemauer"),requestAnimationFrame(()=>requestAnimationFrame(ke))),appState.menueopen=!1};let w=null;const z=we=>{w&&(w.abort(),w=null)};let A=state(!1);user_effect(()=>{z(appState.curRoute)}),window.doc=appState.doc;const y=async we=>{appState.doc={};try{w=new AbortController;let Se=w.signal;set(A,!0);const ye=await fetch("/api/"+(appState.eingeloggt?"seite_by_uri_or_thea_link/":"seite/")+we.substr(1));set(A,!1);const ke=await ye.json();let Ae=ke.rows&&ke.rows.length?ke.rows[0].doc:{uri:appState.curRoute.substring(1)};if(Ae.thea_link&&!Ae.uri&&(Ae={...Ae,neu:!0,uri:Ae.thea_link,titel:Ae.thea_titel,untertitel:Ae.thea_langtext1+`
1867`+Ae.thea_langtext2+`
1868`+Ae.thea_langtext3+`
1869`+Ae.thea_langtext4+`
1870`+Ae.thea_langtext5+`
1871`+Ae.thea_langtext6+`
1872`+Ae.thea_langtext7,kaesten:[{breite:"40%",text:"",modul:""},{breite:"40%",modul:"",text:""},{modul:"",breite:"78%",class:"gelberstrich",style:"",text:" "},{breite:"40%",modul:"besetzung"},{breite:"40%",class:"",modul:"termine"}],sorte:"produktion"}),Ae.sorte=="umleitung"&&(/^https?:\/\//.test(Ae.umleitung)?window.location.replace(Ae.umleitung):appState.curRoute="/"+Ae.umleitung),Ae.bloecke&&Ae.bloecke.length&&!Ae.kaesten&&(Ae.kaesten=_.filter(_.flatten(_.map(Ae.bloecke,Ie=>[Ie.marginalspalte?{text:Ie.marginalspalte}:null,_.omit(Ie,["marginalspalte"])])),Ie=>!!Ie)),Ae.titelattribut&&!Ae.untertitel&&(Ae.untertitel=Ae.titelattribut),appState.doc=Ae,appState.savedDoc=_.cloneDeep(Ae),connectYjs(),appState.storedbes={},Ae.sorte=="person"){const qe=await(await fetch("/api/besetzt?name="+encodeURIComponent(Ae.name)+"&spielzeit="+encodeURIComponent(d))).json();qe&&qe.rows&&qe.rows.length&&(appState.storedbes=_.uniqBy(_.map(qe.rows,function(Ge){return Ge.value}),function(Ge){return Ge.uri}))}typeof gtag<"u"&&gtag("config","G-Y6H284TH55",{page_title:Ae.title&&get(g)=="en"?Ae.title:Ae.titel?Ae.titel:"",page_path:get(ne)})}catch(Se){console.log(Se)}},s=function(we){let Se=[],ye=[],ke=appState.doc.erstezeilestyle,Ae=appState.doc.erstezeileclass;return _.each(we,(Ie,qe,Ge)=>{Ge[qe-1]?Ie.modul=="imagesmodul"?(Se.push({bloecke:ye,style:ke,class:Ae}),ye=[Ie],Se.push({bloecke:ye,class:"bilderzeile"}),ye=[]):/neuerabsatz|vortheorie/.test(Ie.class)?(Se.push({bloecke:ye,style:ke,class:Ae}),ye=[],ke=Ie.style,Ae=/vortheorie/.test(Ie.class)?"theoriebg":Ie.class):ye.push(Ie):ye.push(Ie),!Ge[qe+1]&&ye.length&&Se.push({bloecke:ye,style:ke,class:Ae})}),console.log(Se),Se},e=function(we){if(!Array.isArray(we))return we;let Se=[],ye=0;for(;ye<we.length;){let ke=we[ye];if(ke&&/zuklappen-alt/.test(ke.class)){ye++;let Ae=we[ye]||{text:"",style:"",modul:""};ye++;let Ie=[];for(;ye<we.length&&!/zuklappen-alt/.test(we[ye].class);)Ie.push(we[ye]),ye++;Se.push({class:ke.class,text:Ae.text||"",style:Ae.style||ke.style||"",modul:Ae.modul||ke.modul||"",breite:"100%",innere:e(Ie)})}else{let Ae={...ke};Array.isArray(ke.innere)&&(Ae.innere=e(ke.innere)),Se.push(Ae),ye++}}return Se},f=function(we){return we||""};onMount(async()=>{appState.menueopen=!1,appState.token&&appState.token.cancel&&appState.token.cancel();const{hash:we}=document.location;if(we){let Se=0;const ye=()=>{const ke=document.getElementById(we.slice(1))||document.querySelector(`[name="${we.slice(1)}"]`);ke?ke.scrollIntoView({behavior:"smooth",block:"start"}):Se<10&&(Se++,setTimeout(ye,200))};setTimeout(ye,100)}}),onDestroy(()=>{document.querySelectorAll(".fuellblock").forEach(we=>we.remove()),appState.ydocProvider&&(appState.ydocProvider.destroy(),appState.ydocProvider=null),c(appState.ydoc),appState.ydoc=null});let g=user_derived(()=>appState.sprache==="en"&&appState.doc.blocks?"en":appState.sprache==="ls"&&appState.doc.kloetze?"ls":appState.sprache==="es"&&appState.doc.bausteine?"es":"de"),R=user_derived(()=>get(g)==="de"?appState.doc.kaesten:get(g)==="en"?appState.doc.blocks:get(g)==="ls"?appState.doc.kloetze:get(g)==="es"?appState.doc.bausteine:appState.doc.kaesten),q=user_derived(()=>_.filter(get(R),function(we){return we.verfall&&we.release&&we.verfall<we.release?xdatelokalisiert(new XDate(we.verfall))>xdatelokalisiert(new XDate(!0))||xdatelokalisiert(new XDate(we.release))<xdatelokalisiert(new XDate(!0)):(!we.verfall||xdatelokalisiert(new XDate(we.verfall))>xdatelokalisiert(new XDate(!0)))&&(!we.release||xdatelokalisiert(new XDate(we.release))<xdatelokalisiert(new XDate(!0)))&&!/versteckt/.test(we.class)})),H=user_derived(()=>s(e(get(q))));const te=()=>{mauerbau()};let re=null;user_effect(()=>{const we=JSON.stringify(_.map(get(R),Se=>[Se.breite,Se.class,Se.modul,Se.text,Se.img,Se.bgimg]));appState.doc?.sorte!=="mauer"&&appState.doc?.sorte!=="pressefotos"||we!==re&&(re=we,mauerbauDebounced())});let ae=state("");user_effect(()=>{const we=appState.curRoute;we!=="/"&&we!==get(ae)&&(set(ae,we,!0),y(we))}),user_effect(()=>{if(!appState.eingeloggt){appState.ydocProvider&&(appState.ydocProvider.destroy(),appState.ydocProvider=null),c(appState.ydoc),appState.ydoc=null,appState.ydocUri=null,appState.ydocLang=null;return}const Se=appState.sprache,ye=appState.doc?._key;if(!ye){appState.ydocProvider&&(appState.ydocProvider.destroy(),appState.ydocProvider=null),c(appState.ydoc),appState.ydoc=null,appState.ydocUri=null,appState.ydocLang=null;return}(!appState.ydocProvider||Se!==appState.ydocLang||ye!==appState.ydocUri)&&connectYjs()});let ne=user_derived(()=>appState.curRoute.substring(1));user_effect(()=>{get(g),mauerbau()});var oe=root$y();head("1f7qwxq",we=>{var Se=comment$1(),ye=first_child(Se);{var ke=Ae=>{var Ie=root_2$q();template_effect(()=>set_attribute(Ie,"href",appState.doc.hero)),append(Ae,Ie)};if_block(ye,Ae=>{appState.doc.hero&&Ae(ke)})}append(we,Se)});var le=first_child(oe);Sprachen(le,{});var ce=sibling(le,2);{var ue=we=>{Suche(we,{})};if_block(ce,we=>
1872{appState.eingeloggt&&appState.doc.sorte!="scrolly"&&we(ue)})}var he=sibling(ce,2);key(he,()=>appState.doc.uri,we=>{var Se=comment$1(),ye=first_child(Se);{var ke=Ie=>{var qe=root_5$h();append(Ie,qe)},Ae=Ie=>{var qe=root_6$e(),Ge=child(qe);{var Je=et=>{var mt=root_7$b(),ht=child(mt),ct=child(ht);each(ct,17,()=>get(q),index,(bt,At)=>{Block(bt,{get block(){return get(At)},get module(){return m}})});var Ue=sibling(ct,2),ot=child(Ue);Fuss(ot),action(mt,bt=>te?.()),event("load",mt,bt=>{appState.loadeditems++}),append(et,mt)},Te=et=>{{let mt=user_derived(()=>appState.doc.sections||[]);Scrolly(et,{get sections(){return get(mt)}})}},ve=et=>{var mt=root_10$d();{const At=(ft,be=noop,Et=noop,St=noop,Jt,Bt)=>{let Vt=derived_safe_equal(()=>fallback(Jt?.(),!1)),Tt=derived_safe_equal(()=>fallback(Bt?.(),""));var Be=comment$1(),Xe=first_child(Be);{var Ke=Ot=>{var Dt=comment$1(),Gt=first_child(Dt);each(Gt,17,be,index,(Ft,Pt,qt)=>{At(Ft,()=>get(Pt),Et,()=>qt,()=>!1,()=>"nested")}),append(Ot,Dt)},nt=user_derived(()=>Array.isArray(be())),xt=Ot=>{var Dt=comment$1(),Gt=first_child(Dt);{var Ft=on=>{var He=root_15$8(),Ve=child(He);html(Ve,()=>markdownitinline(be().text),!0);var pt=sibling(Ve,2);each(pt,17,()=>be().innere,index,(wt,nn,Wt)=>{At(wt,()=>get(nn),Et,()=>Wt,()=>!1,()=>"")}),template_effect((wt,nn)=>{set_class(He,1,`kasten nested-container zuklappen ${wt??""}`,"svelte-1f7qwxq"),set_style(He,`${nn??""} min-width:${(be().breite?be().breite:"40%")??""}`)},[()=>f(be().class),()=>f(be().style)]),append(on,He)},Pt=user_derived(()=>/zuklappen/.test(be().class)||be().modul=="zuklappen"),qt=on=>{var He=root_17$8(),Ve=child(He);{var pt=nn=>{var Wt=root_18$9();html(Wt,()=>markdownit(be().text),!0),append(nn,Wt)};if_block(Ve,nn=>{be().text&&nn(pt)})}var wt=sibling(Ve,2);each(wt,17,()=>be().innere,index,(nn,Wt,ln)=>{At(nn,()=>get(Wt),Et,()=>ln,()=>!1,()=>"nested")}),template_effect((nn,Wt)=>{set_class(He,1,`kasten nested-container ${nn??""}`,"svelte-1f7qwxq"),set_style(He,`${Wt??""} min-width:${(be().breite?be().breite:"40%")??""}`)},[()=>f(be().class),()=>f(be().style)]),append(on,He)};if_block(Gt,on=>{get(Pt)?on(Ft):on(qt,-1)})}append(Ot,Dt)},Mt=user_derived(()=>Array.isArray(be().innere)),Ye=Ot=>{const Dt=user_derived(()=>h(be().text));Galerie(Ot,{get images(){return get(Dt).images},get dir(){return get(Dt).dir},get credits(){return get(Dt).credits},get headline(){return get(Dt).headline},get id(){return`gal${Et()??""}`}})},at=user_derived(()=>be().modul=="imagesmodul"&&!!h(be().text)),st=Ot=>{var Dt=root_21$8(),Gt=child(Dt);{let Ft=user_derived(()=>h(be().text).fragen);Fragen(Gt,{get fragen(){return get(Ft)}})}template_effect((Ft,Pt,qt)=>{set_class(Dt,1,`kasten ${Ft??""} ${Pt??""}`,"svelte-1f7qwxq"),set_style(Dt,`${qt??""} min-width:${(be().breite?be().breite:"40%")??""}`)},[()=>f(be().class),()=>f(get(Tt)),()=>f(be().style)]),append(Ot,Dt)},vt=user_derived(()=>be().modul=="fragen"&&!!h(be().text)),gt=Ot=>{var Dt=root_22$7(),Gt=first_child(Dt);{var Ft=He=>{const Ve=user_derived(()=>h(be().text));var pt=root_23$6(),wt=child(pt);{var nn=_n=>{var xn=comment$1(),rn=first_child(xn);key(rn,()=>appState.mapboxReload,vn=>{{let Yn=user_derived(()=>get(Ve).iconAnchor||"bottom"),Nn=user_derived(()=>be().ratio||get(Ve).ratio);MapboxLazy(vn,{get zoom(){return get(Ve).zoom},get marker(){return get(Ve).marker},get lng(){return get(Ve).lng},get lat(){return get(Ve).lat},get layers(){return get(Ve).layers},get sources(){return get(Ve).sources},get icons(){return get(Ve).icons},get iconAnchor(){return get(Yn)},get ratio(){return get(Nn)}})}}),append(_n,xn)},Wt=user_derived(()=>be().modul=="mapbox"&&!!h(be().text)),ln=_n=>{var xn=comment$1(),rn=first_child(xn);component(rn,()=>m[be().modul],(vn,Yn)=>{Yn(vn,spread_props({get text(){return be().text}},be))}),append(_n,xn)};if_block(wt,_n=>{get(Wt)?_n(nn):_n(ln,-1)})}template_effect((_n,xn,rn)=>{set_class(pt,1,`kasten ${_n??""} ${xn??""}`,"svelte-1f7qwxq"),set_style(pt,`${rn??""} min-width:${(be().breite?be().breite:"40%")??""}`)},[()=>f(be().class),()=>f(get(Tt)),()=>f(be().style)]),append(He,pt)},Pt=He=>{var Ve=root_27$5();html(Ve,()=>markdownit(be().text),!0),template_effect((pt,wt,nn)=>{set_class(Ve,1,`kasten ${pt??""} ${wt??""}`,"svelte-1f7qwxq"),set_style(Ve,`${nn??""} min-width:${(be().breite?be().breite:"40%")??""}`)},[()=>f(be().class),()=>f(get(Tt)),()=>f(be().style)]),append(He,Ve)};if_block(Gt,He=>{be().modul?He(Ft):be().text&&(!get(Vt)||St()>0)&&He(Pt,1)})}var qt=sibling(Gt,2);{var on=He=>{var Ve=root_28$4();append(He,Ve)};if_block(qt,He=>{be().class=="break"&&He(on)})}append(Ot,Dt)};if_block(Xe,Ot=>{get(nt)?Ot(Ke):get(Mt)?Ot(xt,1):get(at)?Ot(Ye,2):get(vt)?Ot(st,3):Ot(gt,-1)})}append(ft,Be)};var ht=child(mt);{var ct=ft=>{var be=root_29$5(),Et=first_child(be),St=child(Et),Jt=child(St);{var Bt=rn=>
1872{var vn=root_30$3();html(vn,()=>markdownitinline(appState.doc.title),!0),append(rn,vn)};if_block(Jt,rn=>{appState.doc.title&&get(g)=="en"&&rn(Bt)})}var Vt=sibling(Jt,2);{var Tt=rn=>{var vn=root_31$3();append(rn,vn)};if_block(Vt,rn=>{appState.eingeloggt&&appState.doc.thea_inaktiv&&appState.doc.thea_inaktiv==="1"&&appState.doc.spielzeit!=d&&rn(Tt)})}var Be=sibling(Vt,2);{var Xe=rn=>{var vn=root_32$5();html(vn,()=>markdownitinline(appState.doc.titel),!0),append(rn,vn)},Ke=user_derived(()=>!!appState.doc.titel&&_.includes(["de","ls","es"],appState.sprache)||appState.sprache=="en"&&!appState.doc.title);if_block(Be,rn=>{get(Ke)&&rn(Xe)})}var nt=sibling(Be,2);{var xt=rn=>{var vn=root_33$3();html(vn,()=>markdownitinline(appState.doc.titleaddon),!0),append(rn,vn)};if_block(nt,rn=>{appState.doc.titleaddon&&get(g)=="en"&&rn(xt)})}var Mt=sibling(nt,2);{var Ye=rn=>{var vn=root_34$4();html(vn,()=>markdownitinline(appState.doc.titelzusatz),!0),append(rn,vn)},at=user_derived(()=>!!appState.doc.titelzusatz&&_.includes(["de","ls","es"],appState.sprache)||appState.sprache=="en"&&!appState.doc.titleaddon);if_block(Mt,rn=>{get(at)&&rn(Ye)})}var st=sibling(Mt,2);{var vt=rn=>{var vn=root_35$4();html(vn,()=>markdownitinline(appState.doc.subtitle),!0),append(rn,vn)};if_block(st,rn=>{appState.doc.subtitle&&get(g)=="en"&&rn(vt)})}var gt=sibling(st,2);{var Ot=rn=>{var vn=root_36$1();html(vn,()=>markdownitinline(appState.doc.untertitel),!0),append(rn,vn)},Dt=user_derived(()=>!!appState.doc.untertitel&&_.includes(["de","ls","es"],appState.sprache));if_block(gt,rn=>{get(Dt)&&rn(Ot)})}var Gt=sibling(gt,2);{var Ft=rn=>{var vn=root_37$2();html(vn,()=>markdownitinline(appState.doc.serialreference),!0),append(rn,vn)};if_block(Gt,rn=>{appState.doc.serialreference&&get(g)=="en"&&rn(Ft)})}var Pt=sibling(Gt,2);{var qt=rn=>{var vn=root_38$1();html(vn,()=>markdownitinline(appState.doc.reihenverweis),!0),append(rn,vn)};if_block(Pt,rn=>{appState.doc.reihenverweis&&get(g)=="de"&&rn(qt)})}var on=sibling(Pt,2);{var He=rn=>{var vn=root_39$1();html(vn,()=>markdownitinline(appState.doc.opening),!0),append(rn,vn)};if_block(on,rn=>{appState.doc.opening&&get(g)=="en"&&rn(He)})}var Ve=sibling(on,2);{var pt=rn=>{var vn=root_40$1();html(vn,()=>markdownitinline(appState.doc.premiere),!0),append(rn,vn)},wt=user_derived(()=>!!appState.doc.premiere&&_.includes(["de","ls","es"],appState.sprache)||appState.sprache=="en"&&!appState.doc.opening);if_block(Ve,rn=>{get(wt)&&rn(pt)})}var nn=sibling(St,2);{var Wt=rn=>{Video3q(rn,{get playoutId(){return appState.doc.herovideo},controls:!1,autoplay:!0,muted:!0,loop:!0,class:"herobg"})},ln=rn=>{var vn=root_42$1();template_effect(()=>set_attribute(vn,"src",appState.doc.hero)),append(rn,vn)};if_block(nn,rn=>{appState.doc.herovideo?rn(Wt):rn(ln,-1)})}var _n=sibling(Et,2);{var xn=rn=>{var vn=root_43$3();html(vn,()=>markdownitinline(appState.doc.herocredit),!0),append(rn,vn)};if_block(_n,rn=>{appState.doc.herocredit&&rn(xn)})}template_effect(()=>set_style(St,`transform: translate3d(0, ${appState.ypsilon/2}px,0);`)),append(ft,be)},Ue=ft=>{var be=root_44$2(),Et=sibling(first_child(be),2);{var St=Bt=>{var Vt=root_45$3(),Tt=child(Vt);{var Be=nt=>{var xt=root_46$3();html(xt,()=>markdownitinline(appState.doc.name),!0),append(nt,xt)};if_block(Tt,nt=>{appState.doc.name&&nt(Be)})}var Xe=sibling(Tt,2);{var Ke=nt=>{var xt=root_47$2();html(xt,()=>markdownitinline(appState.doc.funktion),!0),append(nt,xt)};if_block(Xe,nt=>{appState.doc.funktion&&nt(Ke)})}append(Bt,Vt)},Jt=Bt=>{var Vt=root_48$3(),Tt=child(Vt);{var Be=Wt=>{var ln=root_49$3();html(ln,()=>markdownitinline(appState.doc.title),!0),append(Wt,ln)};if_block(Tt,Wt=>{appState.doc.title&&get(g)=="en"&&Wt(Be)})}var Xe=sibling(Tt,2);{var Ke=Wt=>{var ln=root_50$1();html(ln,()=>markdownitinline(appState.doc.titel),!0),append(Wt,ln)},nt=user_derived(()=>!!appState.doc.titel&&_.includes(["de","ls","es"],appState.sprache)||appState.sprache=="en"&&!appState.doc.title);if_block(Xe,Wt=>{get(nt)&&Wt(Ke)})}var xt=sibling(Xe,2);{var Mt=Wt=>{var ln=root_51$1();html(ln,()=>markdownitinline(appState.doc.titleaddon),!0),append(Wt,ln)};if_block(xt,Wt=>{appState.doc.titleaddon&&get(g)=="en"&&Wt(Mt)})}var Ye=sibling(xt,2);{var at=Wt=>{var ln=root_52$2();html(ln,()=>markdownitinline(appState.doc.titelzusatz),!0),append(Wt,ln)},st=user_derived(()=>!!appState.doc.titelzusatz&&_.includes(["de","ls","es"],appState.sprache)||appState.sprache=="en"&&!
1872appState.doc.titleaddon);if_block(Ye,Wt=>{get(st)&&Wt(at)})}var vt=sibling(Ye,2);{var gt=Wt=>{var ln=root_53$2();html(ln,()=>markdownitinline(appState.doc.subtitle),!0),append(Wt,ln)};if_block(vt,Wt=>{appState.doc.subtitle&&get(g)=="en"&&Wt(gt)})}var Ot=sibling(vt,2);{var Dt=Wt=>{var ln=root_54$1();html(ln,()=>markdownitinline(appState.doc.untertitel),!0),append(Wt,ln)},Gt=user_derived(()=>!!appState.doc.untertitel&&_.includes(["de","ls","es"],appState.sprache));if_block(Ot,Wt=>{get(Gt)&&Wt(Dt)})}var Ft=sibling(Ot,2);{var Pt=Wt=>{var ln=root_55();html(ln,()=>markdownitinline(appState.doc.serialreference),!0),append(Wt,ln)};if_block(Ft,Wt=>{appState.doc.serialreference&&get(g)=="en"&&Wt(Pt)})}var qt=sibling(Ft,2);{var on=Wt=>{var ln=root_56$1();html(ln,()=>markdownitinline(appState.doc.reihenverweis),!0),append(Wt,ln)};if_block(qt,Wt=>{appState.doc.reihenverweis&&get(g)=="de"&&Wt(on)})}var He=sibling(qt,2);{var Ve=Wt=>{var ln=root_57();html(ln,()=>markdownitinline(appState.doc.opening),!0),append(Wt,ln)};if_block(He,Wt=>{appState.doc.opening&&get(g)=="en"&&Wt(Ve)})}var pt=sibling(He,2);{var wt=Wt=>{var ln=root_58$1();html(ln,()=>markdownitinline(appState.doc.premiere),!0),append(Wt,ln)},nn=user_derived(()=>!!appState.doc.premiere&&_.includes(["de","ls","es"],appState.sprache)||appState.sprache=="en"&&!appState.doc.opening);if_block(pt,Wt=>{get(nn)&&Wt(wt)})}append(Bt,Vt)};if_block(Et,Bt=>{appState.doc.sorte=="person"?Bt(St):Bt(Jt,-1)})}append(ft,be)};if_block(ht,ft=>{appState.doc.hero?ft(ct):ft(Ue,-1)})}var ot=sibling(ht,2);{var bt=ft=>{var be=comment$1(),Et=first_child(be);each(Et,17,()=>get(H),index,(St,Jt,Bt)=>{var Vt=root_60$1(),Tt=child(Vt);each(Tt,21,()=>get(Jt).bloecke,index,(Be,Xe,Ke)=>{At(Be,()=>get(Xe),()=>Bt,()=>Ke)}),template_effect(()=>{set_class(Vt,1,`zeile ${(get(Jt).class||"")??""}`,"svelte-1f7qwxq"),set_style(Vt,get(Jt).style)}),append(St,Vt)}),append(ft,be)};if_block(ot,ft=>{get(H)&&get(H).length&&ft(bt)})}}template_effect(()=>set_class(mt,1,`seite ${appState.doc.url??""} ${appState.doc.spielzeit??""}`,"svelte-1f7qwxq")),append(et,mt)};if_block(Ge,et=>{doc&&(appState.doc.sorte=="mauer"||appState.doc.sorte=="pressefotos")&&get(q)&&get(q).length?et(Je):doc&&appState.doc.sorte=="scrolly"?et(Te,1):et(ve,-1)})}action(qe,et=>p?.(et)),template_effect(()=>{set_class(qe,1,clsx(get(g)),"svelte-1f7qwxq"),set_style(qe,appState.doc.neu?"opacity:.5":"")}),append(Ie,qe)};if_block(ye,Ie=>{get(A)?Ie(ke):Ie(Ae,-1)})}append(we,Se)});var ge=sibling(he,2);{var Oe=we=>{Grossegalerie(we,{})};if_block(ge,we=>{appState.galeriestatus.grossegalerieoffen&&we(Oe)})}var $e=sibling(ge,2);{var Pe=we=>{var Se=comment$1(),ye=first_child(Se);await_block(ye,()=>__vitePreload(()=>import("./Pflege-D5Q2VTYH.js"),__vite__mapDeps([2,3,4])),null,(ke,Ae)=>{var Ie=user_derived(()=>{var{default:ve}=get(Ae);return{Pflege:ve}}),qe=user_derived(()=>get(Ie).Pflege),Ge=comment$1(),Je=first_child(Ge);{var Te=ve=>{var et=comment$1(),mt=first_child(et);component(mt,()=>get(qe),(ht,ct)=>{ct(ht,{})}),append(ve,et)};if_block(Je,ve=>{appState.bearbeitungssicht&&ve(Te)})}append(ke,Ge)}),append(we,Se)};if_block($e,we=>{appState.eingeloggt&&we(Pe)})}var Le=sibling($e,2);{var me=we=>{var Se=root_66$1();append(we,Se)};if_block(Le,we=>{appState.doc.sorte!="scrolly"&&we(me)})}append(o,oe),pop()}var root_1$n=from_html('<meta name="description" content="Hier finden Sie den Spielplan des Staatstheater Augsburg mit den künftig stattfindenden Aufführungen der aktuellen Spielzeit."/>'),root_2$p=from_html('<li class="svelte-11syd1a"><span class="monatssprunglinksklein svelte-11syd1a"> </span><span class="monatssprunglinksgross svelte-11syd1a"> </span></li>'),root_5$g=from_html('<div class="tag svelte-11syd1a"><div class="monat svelte-11syd1a"></div></div>'),root_9$7=from_html('&nbsp;<img src="/img/trash.svg" style="width:12px"/>',1),root_10$c=from_html('<p style="margin-bottom:.7rem;margin-left: .6rem;text-align:left"> </p>'),root_11$9=from_html('<p style="margin-bottom:.7rem;margin-left: .6rem;text-align:left"> </p>'),root_12$a=from_html('&emsp; <select style="display:inline; width: 16rem"><option>Wetter: Automatik</option><option>Wetter: VA fällt aus</option><option>Wetter: VA findet statt</option></select>
1872',1),root_13$6=from_html('<div class="tablerow svelte-11syd1a"><div class="tablecell tablehead svelte-11syd1a">Einführungen</div> <div class="tablecell svelte-11syd1a"></div></div>'),root_8$3=from_html('<div class="tedit svelte-11syd1a"><button>speichern</button> <span style="font-family:museosans"><a target="_blank" rel="noreferrer"> </a> </span><!> <!> <!> <br/><select style="display:inline; width: 16rem"><option>Kartenbutton normal</option><option>kein Kartenbutton</option><option>Karten!</option><option>Restkarten</option><option>Ausverkauft</option></select> <!> <textarea style="display: inline; vertical-align: -1.4rem; width: 21rem;" placeholder="Kartenlinkverfall" title="Kartenlinkverfall"></textarea> <textarea style="display: inline; vertical-align: -1.4rem; width: 21rem;" placeholder="Kartenlink" title="Kartenlink"></textarea> <textarea style="display: inline; vertical-align: -1.4rem; width: 21rem;" placeholder="Kartenzusatz" title="Kartenzusatz"></textarea> <!> Preise verbergen <div class="table kbbdaten svelte-11syd1a"><div class="tablerow svelte-11syd1a"><div class="tablecell tablehead svelte-11syd1a">Titel</div> <div class="tablecell svelte-11syd1a"> </div></div> <div class="tablerow svelte-11syd1a"><div class="tablecell tablehead svelte-11syd1a">VA-titel</div> <div class="tablecell svelte-11syd1a"> </div></div> <div class="tablerow svelte-11syd1a"><div class="tablecell tablehead svelte-11syd1a">Untertitel Zeile 1</div> <div class="tablecell svelte-11syd1a"> </div></div> <div class="tablerow svelte-11syd1a"><div class="tablecell tablehead svelte-11syd1a">VA-untertitel Zeile 1</div> <div class="tablecell svelte-11syd1a"> </div></div> <div class="tablerow svelte-11syd1a"><div class="tablecell tablehead svelte-11syd1a">Untertitel Zeile 2</div> <div class="tablecell svelte-11syd1a"> </div></div> <div class="tablerow svelte-11syd1a"><div class="tablecell tablehead svelte-11syd1a">VA-untertitel Zeile 2</div> <div class="tablecell svelte-11syd1a"> </div></div> <div class="tablerow svelte-11syd1a"><div class="tablecell tablehead svelte-11syd1a">Untertitel Zeile 3</div> <div class="tablecell svelte-11syd1a"> </div></div> <div class="tablerow svelte-11syd1a"><div class="tablecell tablehead svelte-11syd1a">VA-untertitel Zeile 3</div> <div class="tablecell svelte-11syd1a"> </div></div> <div class="tablerow svelte-11syd1a"><div class="tablecell tablehead svelte-11syd1a">Untertitel Zeile 4</div> <div class="tablecell svelte-11syd1a"> </div></div> <div class="tablerow svelte-11syd1a"><div class="tablecell tablehead svelte-11syd1a">VA-untertitel Zeile 4</div> <div class="tablecell svelte-11syd1a"> </div></div> <div class="tablerow svelte-11syd1a"><div class="tablecell tablehead svelte-11syd1a">Sparte</div> <div class="tablecell svelte-11syd1a"> </div></div> <div class="tablerow svelte-11syd1a"><div class="tablecell tablehead svelte-11syd1a">Werkart</div> <div class="tablecell svelte-11syd1a"> </div></div> <div class="tablerow svelte-11syd1a"><div class="tablecell tablehead svelte-11syd1a">Veranstaltungs-Kategorie</div> <div class="tablecell svelte-11syd1a"> </div></div> <div class="tablerow svelte-11syd1a"><div class="tablecell tablehead svelte-11syd1a">Ort</div> <div class="tablecell svelte-11syd1a"> </div></div> <div class="tablerow svelte-11syd1a"><div class="tablecell tablehead svelte-11syd1a">generierter Link</div> <div class="tablecell svelte-11syd1a"> </div></div> <!></div> <br/> <textarea placeholder="Link" title="Link"></textarea> <textarea placeholder="Titel" title="Titel"></textarea> <textarea placeholder="abweichender Titel für Stückseite" title="abweichender Titel für Stückseite"></textarea> <textarea placeholder="Untertitel Zeile 1" title="Untertitel"></textarea> <textarea placeholder="Untertitel Zeile 2" title="Untertitel"></textarea> <textarea placeholder="Untertitel Zeile 3" title="Untertitel"></textarea> <textarea placeholder="Untertitel Zeile 4" title="Untertitel"></textarea> <textarea placeholder="Attribute" title="Attribute"></textarea> <textarea placeholder="Zusatzgrafik" title="Zusatzgrafik"></textarea> <textarea placeholder="Zusatzgrafiklink" title="Zusatzgrafiklink"></textarea> <textarea placeholder="Alternative Blase" title="Alternative Blase"></textarea> <textarea placeholder="Genres" title="Genres"></textarea> <textarea placeholder="Seitenzuordnungen" title="Seitenzuordnungen"></textarea> <textarea placeholder="Ort" title="Ort"></textarea></div>'),root_17$7=from_html('<p><span class="durchgestrichen"> </span> entfällt</p>'),root_19$5=from_html('<a href="/kinderbetreuung" style="background:none;color:#dc1d72"> </a>'),root_18$8=from_html("<p><!></p>"),root_15$7=from_html('<div class="einfuehrungen svelte-11syd1a"></div>'),root_23$5=from_html('<span class="badge svelte-11syd1a">VR vor Ort</span>'),root_24$5=from_html('<span class="badge svelte-11syd1a">zu Gast</span>'),root_25$4=from_html('<div class="badge svelte-11syd1a">Gastspiel:</div>'),root_22$6=from_html('<p class="stuecklinkabsatz svelte-11syd1a"><span class="durchgestrichen"><!><!><!><a></a></span> <span class="entfaellt">entfällt</span></p>'),root_27$4=from_html('<span class="badge svelte-11syd1a">VR vor Ort</span>'),root_28$3=from_html('<span class="badge svelte-11syd1a">zu Gast</span>'),root_29$4=from_html('<span class="badge svelte-11syd1a">Gastspiel</span>
1872'),root_26$6=from_html('<p><!><!><!> <a class="stuecklink svelte-11syd1a"></a></p>'),root_31$2=from_html('<p class="stuecklinkabsatz svelte-11syd1a"><a></a></p>'),root_33$2=from_html('<span class="badge svelte-11syd1a">VR vor Ort</span>'),root_34$3=from_html('<span class="badge svelte-11syd1a">zu Gast</span>'),root_35$3=from_html('<span class="badge svelte-11syd1a">Gastspiel</span>'),root_32$4=from_html('<p class="stuecklinkabsatz svelte-11syd1a"><span class="durchgestrichen"><!><!><!><span class="keinlink"></span></span> <span class="entfaellt">entfällt</span></p>'),root_37$1=from_html('<span class="durchgestrichen"></span>'),root_36=from_html('<p class="ut svelte-11syd1a"><!></p>'),root_40=from_html('<span class="durchgestrichen"></span>'),root_39=from_html('<p class="ut svelte-11syd1a"><!></p>'),root_43$2=from_html('<span class="durchgestrichen"></span>'),root_42=from_html('<p class="ut svelte-11syd1a"><!></p>'),root_46$2=from_html('<span class="durchgestrichen"></span>'),root_45$2=from_html('<p class="ut svelte-11syd1a"><!></p>'),root_48$2=from_html('<p class="ut svelte-11syd1a"></p>'),root_51=from_html('<p class="einfuehrung svelte-11syd1a"><span class="durchgestrichen"> </span> entfällt</p>'),root_52$1=from_html('<p class="einfuehrung svelte-11syd1a"> </p>'),root_49$2=from_html('<div style="margin-top:.5rem"></div>'),root_53$1=from_html('<div class="attribute svelte-11syd1a"></div>'),root_56=from_html('<a class="nolink zusatzgrafik svelte-11syd1a"></a>'),root_58=from_html('<img src="https://staatstheater-augsburg.de/img/blase_premiere.svg" alt="Premiere" class="svelte-11syd1a"/>'),root_59=from_html('<img src="https://staatstheater-augsburg.de/img/blase_wieder_da.svg" alt="wieder da" class="svelte-11syd1a"/>'),root_60=from_html('<img src="https://staatstheater-augsburg.de/img/blase_vr_release.svg" alt="vr release" class="svelte-11syd1a"/>'),root_61=from_html('<img src="https://staatstheater-augsburg.de/img/blase_zum_letzten_mal.svg" alt="zum letzten Mal" class="svelte-11syd1a"/>'),root_63=from_html('<p class="kartenzusatz vvk_ab svelte-11syd1a">Vorverkauf<br/>ab 6.7.2026</p>'),root_66=from_html('<span class="kartenspezialbutton">Karten an der Abendkasse</span>'),root_68=from_html('<span class="kartenspezialbutton"> </span>'),root_69=from_html('<a target="_blank" rel="noopener"><!></a>'),root_75=from_html('<span class="kartenspezialbutton"></span>'),root_77=from_html('<p class="kartenzusatz svelte-11syd1a"></p>'),root_64=from_html("<!> <!>",1),root_79=from_html('(<a style="font-weight:normal" href="/eintrittspreise"> </a>)',1),root_78=from_html('<p class="preise svelte-11syd1a"><!> <!></p>'),root_80=from_html('<p class="abonames svelte-11syd1a"></p>'),root_82=from_html('<img src="/bus.svg" style="width:22px" alt="Bustouren"/> ',1),root_83=from_html('<div class="inline-block text-xs me-2 px-1.5 py-0.2 rounded"><span class="text-[rgba(0,0,0,.3)]"> </span> </div><br/>',1),root_6$d=from_html('<div class="tagestermin svelte-11syd1a"><div class="terminzeitundort svelte-11syd1a"><p class="termindatum svelte-11syd1a"><span class="terminwochentag svelte-11syd1a"> </span> </p> <p class="terminzeit svelte-11syd1a"> </p> <!> <p class="terminort svelte-11syd1a"> </p></div> <!> <div class="termintitel svelte-11syd1a"><div class="termintitelinner svelte-11syd1a"><!> <!> <!> <!> <!> <!> <!> <!> <!></div></div> <div class="zusaetze svelte-11syd1a"><!></div> <div class="blasen svelte-11syd1a"><!></div> <div class="abospalte svelte-11syd1a"><div><!> <!> <!> <!> <!></div></div></div>'),root_4$p=from_html('<!> <div class="tag svelte-11syd1a"><div class="tagdatum svelte-11syd1a"><div class="tagdatuminner svelte-11syd1a"><p class="wochentag svelte-11syd1a"> </p> <p class="taginziffern svelte-11syd1a"> </p> <p class="kurzmonat svelte-11syd1a"> </p></div></div> <div class="tagestermine svelte-11syd1a"></div></div>',1),root$x=from_html('<div><div class="hamburger-box"><div class="hamburger-inner"></div></div></div> <div class="monatssprung svelte-11syd1a"><ul class="svelte-11syd1a"></ul></div> <div><div class="spielplancontainer svelte-11syd1a" style="min-width: 83%;width: calc((1200px - 100%) * 900);max-width: 90%;margin:250px auto 0 auto;"></div></div>',1);
1872function Spielplan(o,n){push(n,!0),XDate.locales.de={monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthNamesShort:["Jan.","Feb.","Mär.","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],dayNames:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],dayNamesShort:["So","Mo","Di","Mi","Do","Fr","Sa"]},XDate.defaultLocale="de";function c(Le){var me=Le.split(" "),we=me[0].split("."),Se=me[1]?me[1].split(":"):0;if(we.length==3)return new XDate(parseInt(we[2],10),parseInt(we[1]?we[1]-1:0,10),parseInt(we[0],10),parseInt(Se[0],10),parseInt(Se[1]?Se[1]:0,10),0)}function d(Le){var me=Le.split(".");if(me.length==3)return new XDate(parseInt(me[2],10),parseInt(me[1]?me[1]-1:0,10),parseInt(me[0],10))}XDate.parsers.push(d),XDate.parsers.push(c);function h(Le){var me=new XDate(Le,!0),we=me.getFullYear(),Se=new XDate(we,2,31-(Math.floor(5*we/4)+4)%7,1,!0)<=me&&me<new XDate(we,9,31-(Math.floor(5*we/4)+1)%7,1,!0)?2:1;return me.addHours(Se)}function m(){appState.menueopen=!appState.menueopen}function p(){window.history.state&&window.history.state.y&&window.history.state.path==="/spielplan"&&window.scrollTo(0,window.history.state.y)}let w=state(void 0),z=state(void 0);onMount(async()=>{set(z,h(new XDate(!0)).toISOString(),!0),appState.menueopen=!1,appState.doc={},appState.ypsilon=0,window.scrollTo(0,0),appState.eingeloggt&&set(w,await fetch("/api/theaaktualitaet"),!0)});let A=state(void 0),y=state(!1),s=state(void 0),e=state(proxy([])),f=state(proxy([{begriff:"Musiktheater",on:!0},{begriff:"Schauspiel",on:!0},{begriff:"Ballett",on:!0},{begriff:"Konzert",on:!0},{begriff:"Plan A",on:!0},{begriff:"Theorie & Praxis",on:!0},{begriff:"Theater & Schule",on:!0},{begriff:"Digitaltheater",on:!0},{begriff:"zu Gast",on:!0}])),g=user_derived(()=>_.map([{begriff:"Alle"},...get(f)],Le=>Le.begriff));const R=Le=>_.findIndex(appState.spielplan,me=>me._id==Le);let q=user_derived(()=>_.filter(appState.spielplan,Le=>(appState.eingeloggt&&!appState.bearbeitungssicht?Le.thea_freigabe=="1":!0)&&(get(f)[0].on&&(Le.thea_branch==get(f)[0].begriff||new RegExp(get(f)[0].begriff).test(Le.genres))||get(f)[1].on&&(Le.thea_branch==get(f)[1].begriff||new RegExp(get(f)[1].begriff).test(Le.genres))||get(f)[2].on&&(Le.thea_branch==get(f)[2].begriff||new RegExp(get(f)[2].begriff).test(Le.genres))||get(f)[3].on&&(Le.thea_branch==get(f)[3].begriff||new RegExp(get(f)[3].begriff).test(Le.genres))||get(f)[4].on&&(Le.thea_branch==get(f)[4].begriff||new RegExp(get(f)[4].begriff).test(Le.genres))||get(f)[5].on&&(Le.thea_branch==get(f)[5].begriff||new RegExp(get(f)[5].begriff).test(Le.genres))||get(f)[6].on&&(Le.thea_branch==get(f)[6].begriff||new RegExp(get(f)[6].begriff).test(Le.genres))||get(f)[7].on&&(Le.thea_branch==get(f)[7].begriff||new RegExp(get(f)[7].begriff).test(Le.genres))||get(f)[8].on&&Le.thea_veranstaltungs_kategorie_id=="179"))),H=user_derived(()=>spielplanmonateweise(get(q)));const te=async(Le,me,we)=>{if(appState.eingeloggt)if(get(s)==get(H)[Le][me][we]._id)set(s,null),appState.spielplan[R(get(H)[get(e)[0]][get(e)[1]][get(e)[2]]._id)]=_.cloneDeep(get(A)),set(A,{},!0),set(e,[],!0);else{get(e).length&&(appState.spielplan[R(get(H)[get(e)[0]][get(e)[1]][get(e)[2]]._id)]=_.cloneDeep(get(A)));const Se=await fetch("/api/getdoc/"+get(H)[Le][me][we]._id);set(A,await Se.json(),!0),appState.spielplan[R(get(H)[Le][me][we]._id)]=_.cloneDeep(get(A)),set(s,get(A)._id,!0),set(e,[Le,me,we],!0)}};function re(Le){Le.style.height="1px",Le.style.height=Le.scrollHeight+"px"}async function ae(Le,me,we){let ye=await(await fetch("/api/pflege_staux",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(get(H)[Le][me][we])})).json();ye.ok&&(appState.spielplan[R(get(H)[Le][me][we]._id)]._rev=ye.rev,set(s,null),set(e,[],!0))}async function ne(Le,me,we){let Se;if(Se=confirm("Echt?"),Se===null)return;get(H)[Le][me][we]._deleted=!0;let ke=await(await fetch("/api/pflege_staux",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(get(H)[Le][me][we])})).json();ke.ok&&(_.remove(appState.spielplan,Ae=>Ae._id==ke.id),set(s,null),set(e,[],!0))}function oe(Le){const me=Le.getBoundingClientRect(),we=window.pageYOffset||document.documentElement.scrollTop;return me.top+we}function le(Le){window.scroll({top:oe(getel("#monat"+Le)),behavior:"smooth"})}let ce=state(null);user_effect(()=>{!get(ce)&&get(g).length>0&&set(ce,get(g)[0],!0)});var ue=root$x();head("11syd1a",Le=>{var me=root_1$n();append(Le,me)});var he=first_child(ue),ge=sibling(he,2),Oe=child(ge);each(Oe,21,()=>get(H),index,(Le,me)=>{var we=root_2$p(),Se=child(we),ye=child(Se),ke=sibling(Se),Ae=child(ke);template_effect((Ie,qe)=>{set_text(ye,Ie),set_text(Ae,qe)},[()=>h(get(me)[0][0].beginn).toString("MMM").substr(0,1),()=>h(get(me)[0][0].beginn).toString("MMM")]),delegated("click",we,Ie=>{le(h(get(me)[0][0].beginn).toString("MMyy"))}),append(Le,we)});var $e=sibling(ge,2),Pe=child($e);each(Pe,21,()=>get(H),index,(Le,me,we)=>{var Se=comment$1(),ye=first_child(Se);each(ye,17,()=>get(me),index,(ke,Ae,Ie)=>{var qe=root_4$p(),Ge=first_child(qe);{var Je=ft=>{var be=root_5$g(),Et=child(be);html(Et,()=>h(get(me)[0][0].beginn).toString(`MMMM '<span style="font-weight:300">'yyyy'</span>'`),!0),template_effect(St=>set_attribute(Et,"id",`monat${St??""}`),[()=>h(get(me)[0][0].beginn).toString("MMyy")]),delegated("dblclick",Et,()=>{appState.eingeloggt&&set(y,!get(y))}),append(ft,be)};if_block(Ge,ft=>{Ie==0&&ft(Je)})}var Te=sibling(Ge,2),ve=child(Te),et=child(ve),mt=child(et),ht=child(mt),ct=sibling(mt,2),Ue=child(ct),ot=sibling(ct,2),bt=child(ot),At=sibling(ve,2);each(At,21,()=>get(Ae),index,(ft,be,Et)=>{var St=root_6$d(),Jt=child(St),Bt=child(Jt),Vt=child(Bt),Tt=child(Vt),Be=sibling(Vt),Xe=sibling(Bt,2),Ke=child(Xe),nt=sibling(Xe,2);if_block(nt,Re=>{});var xt=sibling(nt,2),Mt=child(xt),Ye=sibling(Jt,2);{var at=Re=>{var Me=root_8$3(),rt=child(Me),ut=sibling(rt,2),We=child(ut),Lt=child(We),Nt=sibling(We),Ut=sibling(ut);{var Xt=Kt=>{var gr=root_9$7(),Jr=sibling(first_child(gr));delegated("click",Jr,()=>{ne(we,Ie,Et)}),append(Kt,gr)},tn=user_derived(()=>appState.roles&&!!_.find(appState.roles,Kt=>Kt==="termine_loeschen"));if_block(Ut,Kt=>{get(tn)&&Kt(Xt)})}var hn=sibling(Ut,2);{var wn=Kt=>{var gr=root_10$c(),Jr=child(gr);template_effect(()=>set_text(Jr,`Automatisch zugewiesener Kartenlink: ${get(be).bilettix_link??""}`)),append(Kt,gr)};if_block(hn,Kt=>{get(be).bilettix_link&&Kt(wn)})}var yn=sibling(hn,2);{var Pn=Kt=>{var gr=root_11$9(),Jr=child(gr);template_effect(()=>set_text(Jr,`Bilettix-Id: ${get(be).bilettix_id??""}`)),append(Kt,gr)};if_block(yn,Kt=>
1872{get(be).bilettix_id&&Kt(Pn)})}var Fn=sibling(yn,3),zn=child(Fn);zn.value=zn.__value="";var cn=sibling(zn);cn.value=cn.__value="kein";var $n=sibling(cn);$n.value=$n.__value="karten";var En=sibling($n);En.value=En.__value="restkarten";var On=sibling(En);On.value=On.__value="ausverkauft";var xr=sibling(Fn,2);{var Vr=Kt=>{var gr=root_12$a(),Jr=sibling(first_child(gr)),Qr=child(Jr);Qr.value=Qr.__value="";var Ci=sibling(Qr);Ci.value=Ci.__value="findetnichtstatt";var si=sibling(Ci);si.value=si.__value="findetstatt",bind_select_value(Jr,()=>get(be).wetterstatus,Ji=>get(be).wetterstatus=Ji),append(Kt,gr)},Kr=user_derived(()=>appState.roles&&!!_.find(appState.roles,Kt=>Kt==="wetter"));if_block(xr,Kt=>{get(Kr)&&Kt(Vr)})}var Mr=sibling(xr,2);action(Mr,Kt=>re?.(Kt));var kr=sibling(Mr,2);action(kr,Kt=>re?.(Kt));var Fr=sibling(kr,2);action(Fr,Kt=>re?.(Kt));var wi=sibling(Fr,2),Gn=()=>get(be).preiseverbergen??!1,jr=Kt=>get(be).preiseverbergen=Kt;Switch(wi,{get checked(){return Gn()},set checked(Kt){jr(Kt)}});var cr=sibling(wi,2),Pi=child(cr),Or=sibling(child(Pi),2),Rr=child(Or),zi=sibling(Pi,2),_e=sibling(child(zi),2),Fe=child(_e),je=sibling(zi,2),it=sibling(child(je),2),kt=child(it),$t=sibling(je,2),pn=sibling(child($t),2),Cn=child(pn),Kn=sibling($t,2),Jn=sibling(child(Kn),2),wr=child(Jn),Hr=sibling(Kn,2),qn=sibling(child(Hr),2),Yt=child(qn),An=sibling(Hr,2),dr=sibling(child(An),2),Ir=child(dr),fi=sibling(An,2),Na=sibling(child(fi),2),ni=child(Na),rs=sibling(fi,2),js=sibling(child(rs),2),Gs=child(js),Ra=sibling(rs,2),qs=sibling(child(Ra),2),ai=child(qs),Wr=sibling(Ra,2),Us=sibling(child(Wr),2),Ar=child(Us),ks=sibling(Wr,2),Ss=sibling(child(ks),2),hi=child(Ss),$a=sibling(ks,2),as=sibling(child($a),2),br=child(as),Ti=sibling($a,2),Es=sibling(child(Ti),2),As=child(Es),ss=sibling(Ti,2),Vs=sibling(child(ss),2),Hs=child(Vs),os=sibling(ss,2);{var Mi=Kt=>{var gr=root_13$6(),Jr=sibling(child(gr),2);each(Jr,21,()=>get(be).thea_zusaetze,index,(Qr,Ci)=>{var si=text$1();template_effect(Ji=>set_text(si,`${Ji??""} ${get(Ci).titel??""}  `),[()=>h(get(Ci).beginn).toString("HH:mm")]),append(Qr,si)}),append(Kt,gr)};if_block(os,Kt=>{get(be).thea_zusaetze&&Kt(Mi)})}var Ni=sibling(cr,4);action(Ni,Kt=>re?.(Kt));var Xr=sibling(Ni,2);action(Xr,Kt=>re?.(Kt));var Gr=sibling(Xr,2);action(Gr,Kt=>re?.(Kt));var Zi=sibling(Gr,2);action(Zi,Kt=>re?.(Kt));var Yi=sibling(Zi,2);action(Yi,Kt=>re?.(Kt));var Ki=sibling(Yi,2);action(Ki,Kt=>re?.(Kt));var Oi=sibling(Ki,2);action(Oi,Kt=>re?.(Kt));var Ri=sibling(Oi,2);action(Ri,Kt=>re?.(Kt));var ls=sibling(Ri,2);action(ls,Kt=>re?.(Kt));var Xi=sibling(ls,2);action(Xi,Kt=>re?.(Kt));var $i=sibling(Xi,2);action($i,Kt=>re?.(Kt));var us=sibling($i,2);action(us,Kt=>re?.(Kt));var qr=sibling(us,2);action(qr,Kt=>re?.(Kt));var Pr=sibling(qr,2);action(Pr,Kt=>re?.(Kt)),template_effect((Kt,gr,Jr,Qr,Ci,si,Ji,cs,lo,ei,ds,uo,Ua,Ws,$r,fs,Qi)=>{set_attribute(We,"href",`http://127.0.0.1:5990/_utils/#database/theater-augsburg/${get(be)._id??""}`),set_text(Lt,get(be)._id),set_text(Nt,` | ${get(be).thea_veranstaltungs_id??""}`),set_value(Mr,Kt),set_value(kr,gr),set_value(Fr,Jr),set_text(Rr,get(be).thea_titel),set_text(Fe,get(be).thea_pressetitel),set_text(kt,get(be).thea_kurztext1),set_text(Cn,get(be).thea_pressekurztext1),set_text(wr,get(be).thea_kurztext2),set_text(Yt,get(be).thea_pressekurztext2),set_text(Ir,get(be).thea_kurztext3),set_text(ni,get(be).thea_pressekurztext3),set_text(Gs,get(be).thea_kurztext4),set_text(ai,get(be).thea_pressekurztext4),set_text(Ar,get(be).thea_branch),set_text(hi,get(be).thea_genre),set_text(br,get(be).thea_veranstaltungs_kategorie),set_text(As,get(be).thea_ort),set_text(Hs,get(be).thea_link),set_value(Ni,Qr),set_value(Xr,Ci),set_value(Gr,si),set_value(Zi,Ji),set_value(Yi,cs),set_value(Ki,lo),set_value(Oi,ei),set_value(Ri,ds),set_value(ls,uo),set_value(Xi,Ua),set_value($i,Ws),set_value(us,$r),set_value(qr,fs),set_value(Pr,Qi)},[()=>oderleer(get(be).kartenlinkverfall),()=>oderleer(get(be).kartenlink),()=>oderleer(get(be).kartenzusatz),()=>oderleer(get(be).link),()=>oderleer(get(be).titel),()=>oderleer(get(be).alttitel),()=>oderleer(get(be).kurztext1),()=>oderleer(get(be).kurztext2),()=>oderleer(get(be).kurztext3),()=>oderleer(get(be).kurztext4),()=>oderleer(get(be).attribute),()=>oderleer(get(be).zusatzgrafik),()=>oderleer(get(be).zusatzgrafiklink),()=>oderleer(get(be).altblase),()=>oderleer(get(be).genres),()=>oderleer(get(be).seitenzuordnungen),()=>oderleer(get(be).ort)]),delegated("click",rt,()=>{ae(we,Ie,Et)}),bind_select_value(Fn,()=>get(be).kartenstatus,Kt=>get(be).kartenstatus=Kt),delegated("input",Mr,Kt=>{get(be).kartenlinkverfall=Kt.target.value,Kt.target.style.height=Kt.target.scrollHeight+"px"}),delegated("input",kr,Kt=>{get(be).kartenlink=Kt.target.value,Kt.target.style.height=Kt.target.scrollHeight+"px"}),delegated("input",Fr,Kt=>{get(be).kartenzusatz=Kt.target.value,Kt.target.style.height=Kt.target.scrollHeight+"px"}),delegated("input",Ni,Kt=>{get(be).link=Kt.target.value,Kt.target.style.height=Kt.target.scrollHeight+"px"}),delegated("input",Xr,Kt=>{get(be).titel=Kt.target.value,Kt.target.style.height=Kt.target.scrollHeight+"px"}),delegated("input",Gr,Kt=>{get(be).alttitel=Kt.target.value,Kt.target.style.height=Kt.target.scrollHeight+"px"}),delegated("input",Zi,Kt=>{get(be).kurztext1=Kt.target.value,Kt.target.style.height=Kt.target.scrollHeight+"px"}),delegated("input",Yi,Kt=>{get(be).kurztext2=Kt.target.value,Kt.target.style.height=Kt.target.scrollHeight+"px"}),delegated("input",Ki,Kt=>{get(be).kurztext3=Kt.target.value,Kt.target.style.height=Kt.target.scrollHeight+"px"}),delegated("input",Oi,Kt=>{get(be).kurztext4=Kt.target.value,Kt.target.style.height=Kt.target.scrollHeight+"px"}),delegated("input",Ri,Kt=>{get(be).attribute=Kt.target.value,Kt.target.style.height=Kt.target.scrollHeight+"px"}),delegated("input",ls,Kt=>{get(be).zusatzgrafik=Kt.target.value,Kt.target.style.height=Kt.target.scrollHeight+"px"}),delegated("input",Xi,Kt=>{get(be).zusatzgrafiklink=Kt.target.value,Kt.target.style.height=Kt.target.scrollHeight+"px"}),delegated("input",$i,Kt=>{get(be).altblase=Kt.target.value,Kt.target.style.height=Kt.target.scrollHeight+"px"}),delegated("input",us,Kt=>{get(be).genres=Kt.target.value,Kt.target.style.height=Kt.target.scrollHeight+"px"}),delegated("input",qr,Kt=>{get(be).seitenzuordnungen=Kt.target.value,Kt.target.style.height=Kt.target.scrollHeight+"px"}),delegated("input",Pr,Kt=>{get(be).ort=Kt.target.value,Kt.target.style.height=Kt.target.scrollHeight+"px"}),append(Re,Me)};if_block(Ye,Re=>{appState.eingeloggt&&get(s)===get(be)._id&&Re(at)})}var st=sibling(Ye,2),vt=child(st),gt=child(vt);{var Ot=Re=>{var Me=root_15$7();each(Me,21,()=>_.filter(get(be).thea_zusaetze,rt=>rt.beginn<get(be).beginn),index,(rt,ut)=>{var We=comment$1(),Lt=first_child(We);{var Nt=tn=>{var hn=root_17$7(),wn=child(hn),yn=child(wn);template_effect(Pn=>{set_class(hn,1,`einfuehrung ${get(ut).titel=="Kinderbetreuung"?"kinderbetreuung":""}`,"svelte-11syd1a"),set_text(yn,`${Pn??""}
1872 ${(get(ut).titel=="Semesterabo"?"Seminar »Semesterabo« Universität Augsburg":get(ut).titel=="Blick in die musikalische Werk"?"Blick in die musikalische Werkstatt":get(ut).titel)??""}`)},[()=>h(get(ut).beginn).toString("HH:mm")]),append(tn,hn)},Ut=user_derived(()=>["-1","-3"].indexOf(get(ut).status)!=-1),Xt=tn=>{var hn=root_18$8(),wn=child(hn);{var yn=Fn=>{var zn=root_19$5(),cn=child(zn);template_effect($n=>set_text(cn,`${$n??""} Kinderbetreuung`),[()=>h(get(ut).beginn).toString("HH:mm")]),append(Fn,zn)},Pn=Fn=>{var zn=text$1();template_effect(cn=>set_text(zn,`${cn??""} ${(get(ut).titel=="Semesterabo"?"Seminar »Semesterabo« Universität Augsburg":get(ut).titel=="Blick in die musikalische Werk"?"Blick in die musikalische Werkstatt":get(ut).titel)??""}`),[()=>h(get(ut).beginn).toString("HH:mm")]),append(Fn,zn)};if_block(wn,Fn=>{get(ut).titel=="Kinderbetreuung"?Fn(yn):Fn(Pn,-1)})}template_effect(()=>set_class(hn,1,`einfuehrung ${get(ut).titel=="Kinderbetreuung"?"kinderbetreuung":""}`,"svelte-11syd1a")),append(tn,hn)};if_block(Lt,tn=>{get(Ut)?tn(Nt):tn(Xt,-1)})}append(rt,We)}),append(Re,Me)},Dt=user_derived(()=>get(be).thea_zusaetze&&_.filter(get(be).thea_zusaetze,Re=>Re.beginn<get(be).beginn).length&&["-1","-3"].indexOf(get(be).thea_status)==-1);if_block(gt,Re=>{get(Dt)&&Re(Ot)})}var Gt=sibling(gt,2);{var Ft=Re=>{const Me=user_derived(()=>get(be).link||get(be).thea_link);var rt=comment$1(),ut=first_child(rt);{var We=Ut=>{var Xt=root_22$6(),tn=child(Xt),hn=child(tn);{var wn=$n=>{var En=root_23$5();append($n,En)};if_block(hn,$n=>{get(be).thea_veranstaltungs_kategorie=="VR vor Ort"&&$n(wn)})}var yn=sibling(hn);{var Pn=$n=>{var En=root_24$5();append($n,En)};if_block(yn,$n=>{get(be).thea_veranstaltungs_kategorie=="zu Gast"&&$n(Pn)})}var Fn=sibling(yn);{var zn=$n=>{var En=root_25$4();append($n,En)};if_block(Fn,$n=>{get(be).thea_veranstaltungs_kategorie=="Gastspiel"&&$n(zn)})}var cn=sibling(Fn);html(cn,()=>get(be).titel||get(be).thea_titel,!0),template_effect(($n,En)=>{set_attribute(cn,"href",`${$n??""}${get(Me)??""}`),set_class(cn,1,`stuecklink ${En??""}`,"svelte-11syd1a")},[()=>/^http/.test(get(Me))?"":"/",()=>/^http/.test(get(Me))?"external-link":""]),append(Ut,Xt)},Lt=user_derived(()=>["-1","-3"].indexOf(get(be).thea_status)!=-1&&!get(be).titel),Nt=Ut=>{var Xt=root_26$6(),tn=child(Xt);{var hn=cn=>{var $n=root_27$4();append(cn,$n)};if_block(tn,cn=>{get(be).thea_veranstaltungs_kategorie=="VR vor Ort"&&cn(hn)})}var wn=sibling(tn);{var yn=cn=>{var $n=root_28$3();append(cn,$n)};if_block(wn,cn=>{get(be).thea_veranstaltungs_kategorie=="zu Gast"&&cn(yn)})}var Pn=sibling(wn);{var Fn=cn=>{var $n=root_29$4();append(cn,$n)};if_block(Pn,cn=>{get(be).thea_veranstaltungs_kategorie=="Gastspiel"&&cn(Fn)})}var zn=sibling(Pn,2);html(zn,()=>get(be).titel||get(be).thea_pressetitel||get(be).thea_titel,!0),template_effect((cn,$n,En)=>{set_class(Xt,1,`stuecklinkabsatz ${cn??""}`,"svelte-11syd1a"),set_attribute(zn,"href",`${$n??""}${get(Me)??""}`),set_attribute(zn,"target",En)},[()=>/^http/.test(get(Me))?"external-link":"",()=>/^http/.test(get(Me))?"":"/",()=>/^http/.test(get(Me))?"_blank":"_self"]),append(Ut,Xt)};if_block(ut,Ut=>{get(Lt)?Ut(We):Ut(Nt,-1)})}append(Re,rt)},Pt=Re=>{var Me=comment$1(),rt=first_child(Me);{var ut=Nt=>{var Ut=root_31$2(),Xt=child(Ut);set_attribute(Xt,"href",`${/^http/.test(link)?"":"/"}${link??""}`),set_class(Xt,1,`stuecklink ${/^http/.test(link)?"external-link":""}`,"svelte-11syd1a"),html(Xt,()=>get(be).titel||get(be).thea_pressetitel||get(be).thea_titel,!0),append(Nt,Ut)},We=user_derived(()=>["-1","-3"].indexOf(get(be).thea_status)==-1),Lt=Nt=>{var Ut=root_32$4(),Xt=child(Ut),tn=child(Xt);{var hn=cn=>{var $n=root_33$2();append(cn,$n)};if_block(tn,cn=>{get(be).thea_veranstaltungs_kategorie=="VR vor Ort"&&cn(hn)})}var wn=sibling(tn);{var yn=cn=>{var $n=root_34$3();append(cn,$n)};if_block(wn,cn=>{cn(yn)})}var Pn=sibling(wn);{var Fn=cn=>{var $n=root_35$3();append(cn,$n)};if_block(Pn,cn=>{get(be).thea_veranstaltungs_kategorie=="Gastspiel"&&cn(Fn)})}var zn=sibling(Pn);html(zn,()=>get(be).titel||get(be).thea_pressetitel||get(be).thea_titel,!0),append(Nt,Ut)};if_block(rt,Nt=>{get(We)?Nt(ut):Nt(Lt,-1)})}append(Re,Me)};if_block(Gt,Re=>{get(be).link||get(be).thea_link?Re(Ft):Re(Pt,-1)})}var qt=sibling(Gt,2);{var on=Re=>{var Me=root_36(),rt=child(Me);{var ut=Nt=>{var Ut=root_37$1();html(Ut,()=>get(be).kurztext||get(be).thea_pressekurztext1||get(be).thea_kurztext1,!0),append(Nt,Ut)},We=user_derived(()=>["-1","-3"].indexOf(get(be).thea_status)!=-1),Lt=Nt=>{var Ut=comment$1(),Xt=first_child(Ut);html(Xt,()=>get(be).kurztext1||get(be).thea_pressekurztext1||get(be).thea_kurztext1),append(Nt,Ut)};if_block(rt,Nt=>{get(We)?Nt(ut):Nt(Lt,-1)})}append(Re,Me)};if_block(qt,Re=>{(get(be).kurztext1||get(be).thea_pressekurztext1||get(be).thea_kurztext1)&&Re(on)})}
1872var He=sibling(qt,2);{var Ve=Re=>{var Me=root_39(),rt=child(Me);{var ut=Nt=>{var Ut=root_40();html(Ut,()=>get(be).kurztext2||get(be).thea_pressekurztext2||get(be).thea_kurztext2,!0),append(Nt,Ut)},We=user_derived(()=>["-1","-3"].indexOf(get(be).thea_status)!=-1),Lt=Nt=>{var Ut=comment$1(),Xt=first_child(Ut);html(Xt,()=>get(be).kurztext2||get(be).thea_pressekurztext2||get(be).thea_kurztext2),append(Nt,Ut)};if_block(rt,Nt=>{get(We)?Nt(ut):Nt(Lt,-1)})}append(Re,Me)};if_block(He,Re=>{(get(be).kurztext2||get(be).thea_pressekurztext2||get(be).thea_kurztext2)&&Re(Ve)})}var pt=sibling(He,2);{var wt=Re=>{var Me=root_42(),rt=child(Me);{var ut=Nt=>{var Ut=root_43$2();html(Ut,()=>get(be).kurztext3||get(be).thea_pressekurztext3||get(be).thea_kurztext3,!0),append(Nt,Ut)},We=user_derived(()=>["-1","-3"].indexOf(get(be).thea_status)!=-1),Lt=Nt=>{var Ut=comment$1(),Xt=first_child(Ut);html(Xt,()=>get(be).kurztext3||get(be).thea_pressekurztext3||get(be).thea_kurztext3),append(Nt,Ut)};if_block(rt,Nt=>{get(We)?Nt(ut):Nt(Lt,-1)})}append(Re,Me)};if_block(pt,Re=>{(get(be).kurztext3||get(be).thea_pressekurztext2||get(be).thea_kurztext3)&&Re(wt)})}var nn=sibling(pt,2);{var Wt=Re=>{var Me=root_45$2(),rt=child(Me);{var ut=Nt=>{var Ut=root_46$2();html(Ut,()=>get(be).kurztext4||get(be).thea_pressekurztext4||get(be).thea_kurztext4,!0),append(Nt,Ut)},We=user_derived(()=>["-1","-3"].indexOf(get(be).thea_status)!=-1),Lt=Nt=>{var Ut=comment$1(),Xt=first_child(Ut);html(Xt,()=>get(be).kurztext4||get(be).thea_kurztext4),append(Nt,Ut)};if_block(rt,Nt=>{get(We)?Nt(ut):Nt(Lt,-1)})}append(Re,Me)};if_block(nn,Re=>{(get(be).kurztext4||get(be).thea_pressekurztext4||get(be).thea_kurztext4)&&Re(Wt)})}var ln=sibling(nn,2);{var _n=Re=>{var Me=root_48$2();html(Me,()=>get(be).einfuehrung,!0),append(Re,Me)},xn=user_derived(()=>get(be).einfuehrung&&["-1","-3"].indexOf(get(be).thea_status)==-1);if_block(ln,Re=>{get(xn)&&Re(_n)})}var rn=sibling(ln,2);{var vn=Re=>{var Me=root_49$2();each(Me,21,()=>_.filter(get(be).thea_zusaetze,rt=>rt.beginn>get(be).beginn),index,(rt,ut)=>{var We=comment$1(),Lt=first_child(We);{var Nt=tn=>{var hn=root_51(),wn=child(hn),yn=child(wn);template_effect(Pn=>set_text(yn,`${Pn??""} ${get(ut).titel??""}`),[()=>h(get(ut).beginn).toString("HH:mm")]),append(tn,hn)},Ut=user_derived(()=>["-1","-3"].indexOf(get(ut).status)!=-1),Xt=tn=>{var hn=root_52$1(),wn=child(hn);template_effect(yn=>set_text(wn,`${yn??""} ${get(ut).titel??""}`),[()=>h(get(ut).beginn).toString("HH:mm")]),append(tn,hn)};if_block(Lt,tn=>{get(Ut)?tn(Nt):tn(Xt,-1)})}append(rt,We)}),append(Re,Me)},Yn=user_derived(()=>get(be).thea_zusaetze&&_.filter(get(be).thea_zusaetze,Re=>Re.beginn>get(be).beginn).length&&["-1","-3"].indexOf(get(be).thea_status)==-1);if_block(rn,Re=>{get(Yn)&&Re(vn)})}var Nn=sibling(rn,2);{var gn=Re=>{var Me=root_53$1();html(Me,()=>markdownit(get(be).attribute),!0),append(Re,Me)};if_block(Nn,Re=>{get(be).attribute&&Re(gn)})}var pr=sibling(st,2),Ln=child(pr);{var Xn=Re=>{var Me=comment$1(),rt=first_child(Me);{var ut=Lt=>{var Nt=comment$1(),Ut=first_child(Nt);html(Ut,()=>markdownitinline(get(be).zusatzgrafik)),append(Lt,Nt)},We=Lt=>{var Nt=root_56();html(Nt,()=>markdownitinline(get(be).zusatzgrafik),!0),template_effect(()=>set_attribute(Nt,"href",get(be).zusatzgrafiklink)),append(Lt,Nt)};if_block(rt,Lt=>{get(be).zusatzgrafiklink?Lt(We,-1):Lt(ut)})}append(Re,Me)};if_block(Ln,Re=>{get(be).zusatzgrafik&&Re(Xn)})}var Tr=sibling(pr,2),De=child(Tr);{var Ze=Re=>{var Me=comment$1(),rt=first_child(Me);html(rt,()=>get(be).altblase),append(Re,Me)},_t=Re=>{var Me=root_58();append(Re,Me)},dt=user_derived(()=>/premiere/gi.test(get(be).thea_veranstaltungs_kategorie)),lt=Re=>{var Me=root_59();append(Re,Me)},Ct=user_derived(()=>/wiederaufnahme/gi.test(get(be).thea_veranstaltungs_kategorie)),en=Re=>{var Me=root_60();append(Re,Me)},mn=user_derived(()=>/release/gi.test(get(be).thea_veranstaltungs_kategorie)),fn=Re=>{var Me=root_61();append(Re,Me)};if_block(De,Re=>{get(be).altblase?Re(Ze):get(dt)?Re(_t,1):get(Ct)?Re(lt,2):get(mn)?Re(en,3):get(be).thea_veranstaltungs_kategorie==="z.l.M."&&Re(fn,4)})}var In=sibling(Tr,2),Mn=child(In),nr=child(Mn);{var sr=Re=>{var Me=comment$1(),rt=first_child(Me);{var ut=Lt=>{var Nt=root_63();append(Lt,Nt)},We=Lt=>{var Nt=root_64(),Ut=first_child(Nt);{var Xt=Pn=>{var Fn=comment$1(),zn=first_child(Fn);{var cn=On=>{var xr=root_66();append(On,xr)},$n=user_derived(()=>wiebald(get(be).beginn)<2&&!1),En=On=>{var xr=comment$1(),Vr=first_child(xr);{var Kr=kr=>{var Fr=root_68(),wi=child(Fr);template_effect(()=>set_text(wi,get(be).kartenspezialbutton)),append(kr,Fr)},Mr=kr=>{var Fr=root_69(),wi=child(Fr);{var Gn=Or=>{var Rr=text$1("Ausverkauft");append(Or,Rr)},jr=Or=>{var Rr=text$1("Restkarten");append(Or,Rr)},cr=Or=>{var Rr=text$1("Karten");append(Or,Rr)},Pi=Or=>{var Rr=text$1("Karten");append(Or,Rr)};if_block(wi,Or=>{appState.status&&appState.status[get(be).bilettix_id]&&appState.status[get(be).bilettix_id][0].status==0&&get(be).kartenstatus!="restkarten"||get(be).kartenstatus=="ausverkauft"?Or(Gn):appState.status&&appState.status[get(be).bilettix_id]&&appState.status[get(be).bilettix_id][0].status==1||get(be).kartenstatus=="restkarten"?Or(jr,1):get(be).kartenstatus=="karten"?Or(cr,2):Or(Pi,-1)})}template_effect(()=>{set_class(Fr,1,`button karten ${(get(be).kartenstatus=="ausverkauft"||get(be).kartenstatus=="restkarten"||get(be).kartenstatus=="karten")&&appState.eingeloggt?"selbstgesetzt":appState.status&&appState.status[get(be).bilettix_id]&&appState.status[get(be).bilettix_id][0].status==1||get(be).kartenstatus=="restkarten"?"restkarten":appState.status&&appState.status[get(be).bilettix_id]&&appState.status[get(be).bilettix_id][0].status==0||get(be).kartenstatus=="ausverkauft"?"ausverkauft":""}`,"svelte-11syd1a"),set_attribute(Fr,"href",get(be).kartenlink?get(be).kartenlink:get(be).bilettix_id?"https://webshop-tickets.staatstheater-augsburg.de/de/veranstaltung/a707d36b-76e7-47f0-a10a-33033a333c21/"+get(be).bilettix_id:"")}),append(kr,Fr)};if_block(Vr,kr=>{get(be).kartenspezialbutton?kr(Kr):get(be).kartenstatus!="kein"&&(get(be).kartenlink||get(be).bilettix_id)&&!(get(be).kartenlinkverfall&&get(z)>get(be).kartenlinkverfall)&&kr(Mr,1)})}append(On,xr)};if_block(zn,On=>{get($n)?On(cn):On(En,-1)})}append(Pn,Fn)},tn=user_derived(()=>wiebald(get(be).beginn)>=1||!!get(be).kartenspezialbutton);if_block(Ut,Pn=>{get(tn)&&Pn(Xt)})}var hn=sibling(Ut,2);{var wn=Pn=>{var Fn=comment$1(),zn=first_child(Fn);{var cn=On=>{var xr=root_75();append(On,xr)},$n=user_derived(()=>!get(be).kartenspezialbutton&&wiebald(get(be).beginn)<2),En=On=>{var xr=comment$1(),Vr=first_child(xr);{var Kr=Mr=>{var kr=root_77();html(kr,()=>markdownitinline(get(be).kartenzusatz),!0),append(Mr,kr)};if_block(Vr,Mr=>{get(be).kartenzusatz&&get(be).kartenzusatz!=" "&&Mr(Kr)})}append(On,xr)};if_block(zn,On=>{get($n)?On(cn):On(En,-1)})}append(Pn,Fn)},yn=user_derived(()=>wiebald(get(be).beginn)>1);if_block(hn,Pn=>{get(yn)&&Pn(wn)})}append(Lt,Nt)};if_block(rt,Lt=>{get(z)<"2026-07-06T00:00:00Z"&&get(be).beginn>"2026-09-01"&&!get(be).kartenzusatz?Lt(ut):Lt(We,-1)})}append(Re,Me)},Rt=user_derived(()=>["-1","-3"].indexOf(get(be).thea_status)==-1);if_block(nr,Re=>{get(Rt)&&Re(sr)})}var bn=sibling(nr,2);{var Rn=Re=>{var Me=root_78(),rt=child(Me);html(rt,()=>markdownitinline(get(be).thea_preisgruppe.replace(/^\|\s/,"").replace(/\s/g,"&thinsp;")));var ut=sibling(rt,2);{var We=Nt=>{var Ut=root_79(),Xt=sibling(first_child(Ut)),tn=child(Xt);template_effect(()=>set_text(tn,`Preis ${get(be).thea_preiscode??""}`)),append(Nt,Ut)},Lt=user_derived(()=>!/\((.*)\)/.test(get(be).thea_preiscode));if_block(ut,Nt=>{get(Lt)&&Nt(We)})}append(Re,Me)},ir=user_derived(()=>get(be).thea_preiscode&&["-1","-3"].indexOf(get(be).thea_status)==-1&&!get(be).preiseverbergen);if_block(bn,Re=>{get(ir)&&Re(Rn)})}var Hn=sibling(bn,2);{var lr=Re=>{var Me=root_80();each(Me,21,()=>get(be).abo,index,(rt,ut,We,Lt)=>{var Nt=text$1();template_effect(()=>set_text(Nt,`${get(ut)??""}${We<get(be).abo.length-1?", ":""}`)),append(rt,Nt)}),append(Re,Me)};if_block(Hn,Re=>{get(be).abo&&Re(lr)})}var ii=sibling(Hn,2);{var di=Re=>{var Me=root_82(),rt=sibling(first_child(Me));template_effect(()=>set_text(rt,` ${get(be).bustouren??""}`)),append(Re,Me)};if_block(ii,Re=>{get(be).bustouren&&Re(di)})}var Bn=sibling(ii,2);{var Ce=Re=>{var Me=root_83(),rt=first_child(Me),ut=child(rt),We=child(ut),Lt=sibling(ut);template_effect((Nt,Ut)=>
1872{set_style(rt,`background:${Nt??""}`),set_text(We,`${appState.zahlen[get(be).bilettix_id][0].verkauft??""} / ${appState.zahlen[get(be).bilettix_id][0].plaetze??""} =`),set_text(Lt,` ${Ut??""}%`)},[()=>perc2color(Math.round(100*appState.zahlen[get(be).bilettix_id][0].verkauft/appState.zahlen[get(be).bilettix_id][0].plaetze)),()=>Math.round(100*appState.zahlen[get(be).bilettix_id][0].verkauft/appState.zahlen[get(be).bilettix_id][0].plaetze)]),append(Re,Me)};if_block(Bn,Re=>{appState.eingeloggt&&appState.bearbeitungssicht&&appState.zahlen&&appState.zahlen[get(be).bilettix_id]&&Re(Ce)})}template_effect((Re,Me,rt)=>{set_style(St,appState.eingeloggt&&get(be).thea_freigabe!="1"?"color: rgba(0,65,34,.4);":""),set_text(Tt,`${Re??""},`),set_text(Be,` ${Me??""}`),set_text(Ke,rt),set_text(Mt,get(be).thea_ort=="wo?"&&!get(be).ort?"":get(be).ort||get(be).thea_ort)},[()=>h(get(Ae)[0].beginn).toString("dddd"),()=>h(get(be).beginn).toString("d. MMMM"),()=>h(get(be).beginn).toString("H:mm")]),delegated("dblclick",St,()=>te(we,Ie,Et)),append(ft,St)}),template_effect((ft,be,Et)=>{set_text(ht,ft),set_text(Ue,be),set_text(bt,Et)},[()=>h(get(Ae)[0].beginn).toString("dddd"),()=>h(get(Ae)[0].beginn).toString("d"),()=>h(get(Ae)[0].beginn).toString("MMMM")]),append(ke,qe)}),append(Le,Se)}),action($e,Le=>p?.()),template_effect(()=>set_class(he,1,`hamburger hamburger--spring ${appState.menueopen?"is-active":""}`)),delegated("click",he,m),append(o,ue),pop()}delegate(["click","dblclick","input"]);var root_1$m=from_html('<p class="svelte-5jci06"></p>'),root_4$o=from_html('<del class="svelte-5jci06"><div style="font-family:cooper;font-size:1rem;line-height:1.1;margin-bottom:.2rem;" class="svelte-5jci06"> </div></del>'),root_3$k=from_html('<!><del class="svelte-5jci06"><!> <strong class="svelte-5jci06"></strong> <!></del>',1),root_6$c=from_html('<div style="font-family:cooper;font-size:1rem;line-height:1.1;margin-bottom:.2rem;" class="svelte-5jci06"> </div>'),root_7$a=from_html("<!> |",1),root_5$f=from_html('<!><!> <strong class="svelte-5jci06"><!>,</strong> <!>',1),root_8$2=from_html('<del class="svelte-5jci06"></del>'),root_10$b=from_html('<p class="kartenzusatz svelte-5jci06" style="opacity:.5">Vorverkauf<br class="svelte-5jci06"/>ab 6.7.2026</p>'),root_12$9=from_html('<a target="_blank" rel="noopener"><!></a>'),root_17$6=from_html('<p class="kartenzusatz svelte-5jci06"></p>'),root_19$4=from_html('(<a style="font-weight:normal" href="/eintrittspreise" class="svelte-5jci06"> </a>)',1),root_18$7=from_html('<p class="preise svelte-5jci06"><!> <!></p>'),root_20$8=from_html('<p class="abonames svelte-5jci06"></p>'),root_22$5=from_html('<div class="attribute svelte-5jci06"></div>'),root_24$4=from_html('<div class="button tagesbesetzungsbutton svelte-5jci06">Tagesbesetzung</div>'),root_31$1=from_html('<b class="svelte-5jci06"><a class="museo svelte-5jci06"> </a></b>'),root_32$3=from_html('<b class="museo svelte-5jci06"> </b>'),root_29$3=from_html("<!><!>",1),root_28$2=from_html('<li class="castitem svelte-5jci06"> <!></li>'),root_26$5=from_html('<p class="mehrteilertitel svelte-5jci06"> </p> <ul class="svelte-5jci06"></ul>',1),root_25$3=from_html('<div class="tagesbesetzung bubble svelte-5jci06"><div class="svelte-5jci06"></div></div>'),root_23$4=from_html("<!> <!>",1),root_33$1=from_html('<div style="margin: -4px 0 4px 0" class="svelte-5jci06"><div class="inline-block text-xs me-2 px-1.5 py-0.2 rounded svelte-5jci06"><span class="text-[rgba(0,0,0,.3)] svelte-5jci06"> </span> </div></div>'),root_37=from_html('<div class="button w-[133px] karten ausverkauft svelte-5jci06">Ausverkauft</div>'),root_38=from_html("<a>Karten</a>"),root_35$2=from_html('<li class="m-0 mb-1 svelte-5jci06"><span class="align-[-7px] mr-2 svelte-5jci06"></span> <!></li>'),root_34$2=from_html('<ul class="list-none m-0 mt-1 svelte-5jci06"></ul>'),root_2$o=from_html('<div><div class="datumundort svelte-5jci06"><div class="datum svelte-5jci06"><!> <!></div></div> <div class="kartenundpreise svelte-5jci06"><div class="karten w-[133px] svelte-5jci06"><!></div> <div class="preise svelte-5jci06"><!> <!> <!></div></div> <!> <div class="besetzung svelte-5jci06"><!></div> <!> <!></div>'),root$w=from_html('<div class="tale svelte-5jci06"><!> <!></div>');function Termine(o,n){push(n,!0);const c=xdatelokalisiert(new XDate(!0)).toISOString();let d=user_derived(()=>_.filter(appState.spielplan,s=>appState.doc.uri&&appState.doc.uri.length>1&&(!appState.bearbeitungssicht&&s.thea_freigabe=="1"||appState.bearbeitungssicht)&&(s.link==appState.doc.uri||s.thea_link==appState.doc.uri)));function h(s){const e=appState.doc.tagesbesetzungen?.[s];return e?Object.values(e).some(f=>Array.isArray(f)&&f.length>0):!1}let m=state(void 0),p=user_derived(()=>[{cast:appState.doc.thea_cast}].concat(appState.doc.thea_mehrteiler_cast));var w=root$w(),z=child(w);{var A=s=>{var e=root_1$m();html(e,()=>markdownitinline(n.dauer),!0),append(s,e)};if_block(z,s=>{n.dauer&&s(A)})}var y=sibling(z,2);each(y,17,()=>get(d),index,(s,e)=>{var f=root_2$o(),g=child(f),R=child(g),q=child(R);{var H=ct=>{var Ue=root_3$k(),ot=first_child(Ue);{var bt=St=>{var Jt=root_4$o(),Bt=child(Jt),Vt=child(Bt);template_effect(()=>set_text(Vt,get(e).thea_pressetitel||get(e).alttitel)),append(St,Jt)};if_block(ot,St=>
1872{(get(e).alttitel||get(e).thea_pressetitel)&&St(bt)})}var At=sibling(ot),ft=child(At);html(ft,()=>xdatelokalisiert(get(e).beginn).toString("ddd"));var be=sibling(ft,2);html(be,()=>xdatelokalisiert(get(e).beginn).toString("d.M.yyyy"),!0);var Et=sibling(be,2);html(Et,()=>xdatelokalisiert(get(e).beginn).toString("HH:mm")),append(ct,Ue)},te=user_derived(()=>get(e).entfaellt||["-1","-3"].indexOf(get(e).thea_status)!=-1),re=ct=>{var Ue=root_5$f(),ot=first_child(Ue);{var bt=Jt=>{var Bt=root_6$c(),Vt=child(Bt);template_effect(()=>set_text(Vt,get(e).thea_pressetitel||get(e).alttitel)),append(Jt,Bt)};if_block(ot,Jt=>{(get(e).alttitel||get(e).thea_pressetitel)&&Jt(bt)})}var At=sibling(ot);html(At,()=>xdatelokalisiert(get(e).beginn).toString("ddd"));var ft=sibling(At,2),be=child(ft);html(be,()=>xdatelokalisiert(get(e).beginn).toString("d.M.yyyy"));var Et=sibling(ft,2);{var St=Jt=>{var Bt=root_7$a(),Vt=first_child(Bt);html(Vt,()=>xdatelokalisiert(get(e).beginn).toString("HH:mm")),append(Jt,Bt)};if_block(Et,Jt=>{get(e).thea_slots?.length||Jt(St)})}append(ct,Ue)};if_block(q,ct=>{get(te)?ct(H):ct(re,-1)})}var ae=sibling(q,2);{var ne=ct=>{var Ue=root_8$2();html(Ue,()=>markdownitinline(get(e).thea_ort=="wo?"&&!get(e).ort?"":get(e).ort||get(e).thea_ort),!0),append(ct,Ue)},oe=user_derived(()=>get(e).entfaellt||["-1","-3"].indexOf(get(e).thea_status)!=-1),le=ct=>{var Ue=comment$1(),ot=first_child(Ue);html(ot,()=>markdownitinline(get(e).thea_ort=="wo?"&&!get(e).ort?"":get(e).ort||get(e).thea_ort)),append(ct,Ue)};if_block(ae,ct=>{get(oe)?ct(ne):ct(le,-1)})}var ce=sibling(g,2),ue=child(ce),he=child(ue);{var ge=ct=>{var Ue=root_10$b();append(ct,Ue)},Oe=user_derived(()=>c<"2026-07-06T00:00:00Z"&&get(e).beginn>"2026-09-01"&&["-1","-3"].indexOf(get(e).thea_status)==-1&&!get(e).kartenzusatz),$e=ct=>{var Ue=comment$1(),ot=first_child(Ue);{var bt=ft=>{var be=root_12$9(),Et=child(be);{var St=Tt=>{var Be=text$1("Ausverkauft");append(Tt,Be)},Jt=Tt=>{var Be=text$1("Restkarten");append(Tt,Be)},Bt=Tt=>{var Be=text$1("Karten");append(Tt,Be)},Vt=Tt=>{var Be=text$1("Karten");append(Tt,Be)};if_block(Et,Tt=>{appState.status&&appState.status[get(e).bilettix_id]&&appState.status[get(e).bilettix_id][0].status==0&&get(e).kartenstatus!="restkarten"||get(e).kartenstatus=="ausverkauft"?Tt(St):appState.status&&appState.status[get(e).bilettix_id]&&appState.status[get(e).bilettix_id][0].status==1||get(e).kartenstatus=="restkarten"?Tt(Jt,1):get(e).kartenstatus=="karten"?Tt(Bt,2):Tt(Vt,-1)})}template_effect(()=>{set_class(be,1,`button w-[133px] karten ${(get(e).kartenstatus=="ausverkauft"||get(e).kartenstatus=="restkarten"||get(e).kartenstatus=="karten")&&appState.eingeloggt?"selbstgesetzt":appState.status&&appState.status[get(e).bilettix_id]&&appState.status[get(e).bilettix_id][0].status==1||get(e).kartenstatus=="restkarten"?"restkarten":appState.status&&appState.status[get(e).bilettix_id]&&appState.status[get(e).bilettix_id][0].status==0||get(e).kartenstatus=="ausverkauft"?"ausverkauft":""}`,"svelte-5jci06"),set_attribute(be,"href",get(e).kartenlink?get(e).kartenlink:get(e).bilettix_id?"https://webshop-tickets.staatstheater-augsburg.de/de/veranstaltung/a707d36b-76e7-47f0-a10a-33033a333c21/"+get(e).bilettix_id:"")}),append(ft,be)},At=user_derived(()=>(!!get(e).bilettix_link||!!get(e).kartenlink)&&get(e).kartenstatus!="kein"&&["-1","-3"].indexOf(get(e).thea_status)==-1&&!(get(e).kartenlinkverfall&&xdatelokalisiert(new XDate(!0)).toISOString()>get(e).kartenlinkverfall));if_block(ot,ft=>{get(At)&&ft(bt)})}append(ct,Ue)};if_block(he,ct=>{get(Oe)?ct(ge):ct($e,-1)})}var Pe=sibling(ue,2),Le=child(Pe);{var me=ct=>{var Ue=root_17$6();html(Ue,()=>markdownitinline(get(e).kartenzusatz),!0),append(ct,Ue)};if_block(Le,ct=>{get(e).kartenzusatz&&get(e).kartenzusatz!=" "&&ct(me)})}var we=sibling(Le,2);{var Se=ct=>{var Ue=root_18$7(),ot=child(Ue);html(ot,()=>markdownitinline(get(e).thea_preisgruppe.replace(/^\|\s/,"").replace(/\s/g,"&thinsp;")));var bt=sibling(ot,2);{var At=be=>{var Et=root_19$4(),St=sibling(first_child(Et)),Jt=child(St);template_effect(()=>set_text(Jt,`Preis ${get(e).thea_preiscode??""}`)),append(be,Et)},ft=user_derived(()=>!/\((.*)\)/.test(get(e).thea_preiscode));if_block(bt,be=>{get(ft)&&be(At)})}append(ct,Ue)},ye=user_derived(()=>
1872get(e).thea_preiscode&&["-1","-3"].indexOf(get(e).thea_status)==-1&&!get(e).preiseverbergen);if_block(we,ct=>{get(ye)&&ct(Se)})}var ke=sibling(we,2);{var Ae=ct=>{var Ue=root_20$8();each(Ue,21,()=>get(e).abo,index,(ot,bt,At)=>{var ft=text$1();template_effect(()=>set_text(ft,`${get(bt)??""}${At<get(e).abo.length-1?", ":""}`)),append(ot,ft)}),append(ct,Ue)};if_block(ke,ct=>{get(e).abo&&ct(Ae)})}var Ie=sibling(ce,2);{var qe=ct=>{var Ue=root_22$5();html(Ue,()=>markdownit(get(e).attribute),!0),append(ct,Ue)};if_block(Ie,ct=>{get(e).attribute&&ct(qe)})}var Ge=sibling(Ie,2),Je=child(Ge);{var Te=ct=>{var Ue=root_23$4(),ot=first_child(Ue);{var bt=Et=>{var St=root_24$4();delegated("click",St,function(){set(m,get(m)==get(e).beginn?null:get(e).beginn,!0)}),append(Et,St)},At=user_derived(()=>appState.doc.thea_besetzungfrei=="1"&&h(get(e).beginn)&&["-1","-3"].indexOf(get(e).thea_status)==-1);if_block(ot,Et=>{get(At)&&Et(bt)})}var ft=sibling(ot,2);{var be=Et=>{var St=root_25$3(),Jt=child(St);each(Jt,21,()=>get(p),index,(Bt,Vt)=>{var Tt=root_26$5(),Be=first_child(Tt),Xe=child(Be),Ke=sibling(Be,2);each(Ke,21,()=>_.filter(get(Vt).cast,nt=>nt&&nt.besetzung&&(Number(nt.sortierung)>=100||nt.rolle=="Musikalische Leitung")),index,(nt,xt)=>{var Mt=comment$1(),Ye=first_child(Mt);{var at=st=>{var vt=root_28$2(),gt=child(vt),Ot=sibling(gt);each(Ot,17,()=>appState.doc.tagesbesetzungen[get(m)][get(xt).roleid],index,(Dt,Gt,Ft)=>{var Pt=root_29$3(),qt=first_child(Pt);{var on=wt=>{var nn=text$1();nn.nodeValue=", ",append(wt,nn)};if_block(qt,wt=>{Ft!=0&&wt(on)})}var He=sibling(qt);{var Ve=wt=>{var nn=root_31$1(),Wt=child(nn),ln=child(Wt);template_effect(()=>{set_attribute(Wt,"href",`/${appState.personenseiten[get(Gt).name]??""}`),set_text(ln,get(Gt).name)}),append(wt,nn)},pt=wt=>{var nn=root_32$3(),Wt=child(nn);template_effect(()=>set_text(Wt,get(Gt).name)),append(wt,nn)};if_block(He,wt=>{appState.personenseiten[get(Gt).name]?wt(Ve):wt(pt,-1)})}append(Dt,Pt)}),template_effect(Dt=>set_text(gt,`${Dt??""} `),[()=>["Chor","Orchester","Ballett","Statisterie"].indexOf(get(xt).rolle)==-1?get(xt).rolle:""]),append(st,vt)};if_block(Ye,st=>{appState.doc.tagesbesetzungen&&appState.doc.tagesbesetzungen[get(m)]&&appState.doc.tagesbesetzungen[get(m)][get(xt).roleid]&&appState.doc.tagesbesetzungen[get(m)][get(xt).roleid].length&&st(at)})}append(nt,Mt)}),template_effect(()=>set_text(Xe,get(Vt).titel)),append(Bt,Tt)}),append(Et,St)};if_block(ft,Et=>{get(m)==get(e).beginn&&Et(be)})}append(ct,Ue)};if_block(Je,ct=>{get(e).entfaellt||ct(Te)})}var ve=sibling(Ge,2);{var et=ct=>{var Ue=root_33$1(),ot=child(Ue),bt=child(ot),At=child(bt),ft=sibling(bt);template_effect((be,Et)=>{set_style(ot,`background:${be??""}`),set_text(At,`${appState.zahlen[get(e).bilettix_id][0].verkauft??""} / ${appState.zahlen[get(e).bilettix_id][0].plaetze??""} =`),set_text(ft,` ${Et??""}%`)},[()=>perc2color(Math.round(100*appState.zahlen[get(e).bilettix_id][0].verkauft/appState.zahlen[get(e).bilettix_id][0].plaetze)),()=>Math.round(100*appState.zahlen[get(e).bilettix_id][0].verkauft/appState.zahlen[get(e).bilettix_id][0].plaetze)]),append(ct,Ue)};if_block(ve,ct=>{appState.eingeloggt&&appState.bearbeitungssicht&&appState.zahlen&&appState.zahlen[get(e).bilettix_id]&&ct(et)})}var mt=sibling(ve,2);{var ht=ct=>{const Ue=user_derived(()=>get(e).slots||get(e).thea_slots);var ot=root_34$2();each(ot,21,()=>get(Ue),index,(bt,At)=>{var ft=root_35$2(),be=child(ft);html(be,()=>xdatelokalisiert(get(At).beginn).toString("HH:mm"),!0);var Et=sibling(be,2);{var St=Jt=>{var Bt=comment$1(),Vt=first_child(Bt);{var Tt=Xe=>{var Ke=root_37();append(Xe,Ke)},Be=Xe=>{var Ke=root_38();template_effect(()=>{set_class(Ke,1,`button w-[133px] karten ${appState.status&&appState.status[get(At).bid]&&appState.status[get(At).bid][0].status==1?"restkarten":""}`,"svelte-5jci06"),set_attribute(Ke,"href",get(At).bl)}),append(Xe,Ke)};if_block(Vt,Xe=>{appState.status&&appState.status[get(At).bid]&&appState.status[get(At).bid][0].status==0||get(e).kartenstatus=="ausverkauft"?Xe(Tt):Xe(Be,-1)})}append(Jt,Bt)};if_block(Et,Jt=>{get(At).bl&&Jt(St)})}append(bt,ft)}),append(ct,ot)};if_block(mt,ct=>
1872{(get(e).slots?.length||get(e).thea_slots?.length)&&ct(ht)})}template_effect(()=>set_class(f,1,`zeile ${get(e).thea_freigabe=="1"?"":"grau"}`,"svelte-5jci06")),append(s,f)}),append(o,w),pop()}delegate(["click"]);function Theoriemodul(o){}var root_3$j=from_html("<li></li>"),root_1$l=from_html('<div><ul class="svelte-yqsc1w"></ul></div>');function Sprachen(o,n){push(n,!0);let c=user_derived(()=>!!appState.isNavOpen),d=user_derived(()=>get(c)||appState.doc.blocks&&appState.doc.blocks.length&&_.find(appState.doc.blocks,e=>!!e.text)?"English":""),h=user_derived(()=>get(c)?"":appState.doc.kloetze&&appState.doc.kloetze.length&&_.find(appState.doc.kloetze,e=>!!e.text)?"Leichte Sprache":""),m=user_derived(()=>get(c)?"":appState.doc.bausteine&&appState.doc.bausteine.length&&_.find(appState.doc.bausteine,e=>!!e.text)?"einfache Sprache":""),p=user_derived(()=>get(c)?{de:"Deutsch",en:"English"}:{de:"Deutsch",en:get(d),ls:get(h),es:get(m)}),w=user_derived(()=>Object.keys(get(p))),z=user_derived(()=>_.filter(_.values(get(p)),e=>!!e).length>1);var A=comment$1(),y=first_child(A);{var s=e=>{var f=root_1$l(),g=child(f);each(g,21,()=>get(w),index,(R,q)=>{var H=comment$1(),te=first_child(H);{var re=ae=>{var ne=root_3$j();html(ne,()=>get(p)[get(q)],!0),template_effect(()=>{set_class(ne,1,appState.sprache===get(q)?"aktiv":"","svelte-yqsc1w"),set_style(ne,`color:${get(c)||appState.ypsilon>740||!appState.doc.hero?"#004122":"#fff"}`)}),delegated("click",ne,()=>{appState.sprache=get(q)}),append(ae,ne)};if_block(te,ae=>{get(p)[get(q)]&&ae(re)})}append(R,H)}),template_effect(()=>set_class(f,1,`sprachen ${get(c)?"sprachen-nav-open":""}`,"svelte-yqsc1w")),append(e,f)};if_block(y,e=>{get(z)&&e(s)})}append(o,A),pop()}delegate(["click"]);function Message(o,n){push(n,!0);let c=state(void 0);onMount(async()=>{set(c,window.msg&&window.msg!="{{ msg }}"?window.msg:"",!0),console.log("Msg",get(c))});var d=comment$1(),h=first_child(d);html(h,()=>markdownit(get(c))),append(o,d),pop()}var root$v=from_html('<div role="button" style="overflow:hidden"><img/></div> <div class="raster svelte-fd34wo"></div> <div class="rastertypo svelte-fd34wo"><div class="content"><h2 class="text svelte-fd34wo"></h2> <h3 class="subtext svelte-fd34wo"></h3></div></div>',1);function Rasterblock(o,n){push(n,!0);var c=root$v(),d=first_child(c),h=child(d),m=sibling(d,4),p=child(m),w=child(p);html(w,()=>markdownitinline(n.text),!0);var z=sibling(w,2);html(z,()=>markdownitinline(n.subtext),!0),template_effect(()=>{set_style(h,`display:block;${n.breite?"max-width:"+n.breite+"%":""};${n.oben?"margin-top:-"+n.oben+"%":""};${n.links?"margin-left:-"+n.links+"%":""};`),set_attribute(h,"src",n.bgimg),set_attribute(h,"alt",`Szenenfoto aus ${n.text??""}`)}),append(o,c),pop()}var leafletSrc$1={exports:{}};var leafletSrc=leafletSrc$1.exports,hasRequiredLeafletSrc;function requireLeafletSrc(){return hasRequiredLeafletSrc||(hasRequiredLeafletSrc=1,(function(o,n){(function(c,d){d(n)})(leafletSrc,(function(c){var d="1.9.4";function h(b){var W,ie,de,pe;for(ie=1,de=arguments.length;ie<de;ie++){pe=arguments[ie];for(W in pe)b[W]=pe[W]}return b}var m=Object.create||(function(){function b(){}return function(W){return b.prototype=W,new b}})();function p(b,W){var ie=Array.prototype.slice;if(b.bind)return b.bind.apply(b,ie.call(arguments,1));var de=ie.call(arguments,2);return function(){return b.apply(W,de.length?de.concat(ie.call(arguments)):arguments)}}var w=0;function z(b){return"_leaflet_id"in b||(b._leaflet_id=++w),b._leaflet_id}function A(b,W,ie){var de,pe,Ee,Qe;return Qe=function(){de=!1,pe&&(Ee.apply(ie,pe),pe=!1)},Ee=function(){de?pe=arguments:(b.apply(ie,arguments),setTimeout(Qe,W),de=!0)},Ee}function y(b,W,ie){var de=W[1],pe=W[0],Ee=de-pe;return b===de&&ie?b:((b-pe)%Ee+Ee)%Ee+pe}function s(){return!1}function e(b,W){if(W===!1)return b;var ie=Math.pow(10,W===void 0?6:W);return Math.round(b*ie)/ie}function f(b){return b.trim?b.trim():b.replace(/^\s+|\s+$/g,"")}function g(b){return f(b).split(/\s+/)}function R(b,W){Object.prototype.hasOwnProperty.call(b,"options")||(b.options=b.options?m(b.options):{});for(var ie in W)b.options[ie]=W[ie];return b.options}function q(b,W,ie){var de=[];for(var pe in b)de.push(encodeURIComponent(ie?pe.toUpperCase():pe)+"="+encodeURIComponent(b[pe]));return(!W||W.indexOf("?")===-1?"?":"&")+de.join("&")}var H=/\{ *([\w_ -]+) *\}/g;function te(b,W){return b.replace(H,function(ie,de){var pe=W[de];if(pe===void 0)throw new Error("No value provided for variable "+ie);
1872return typeof pe=="function"&&(pe=pe(W)),pe})}var re=Array.isArray||function(b){return Object.prototype.toString.call(b)==="[object Array]"};function ae(b,W){for(var ie=0;ie<b.length;ie++)if(b[ie]===W)return ie;return-1}var ne="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function oe(b){return window["webkit"+b]||window["moz"+b]||window["ms"+b]}var le=0;function ce(b){var W=+new Date,ie=Math.max(0,16-(W-le));return le=W+ie,window.setTimeout(b,ie)}var ue=window.requestAnimationFrame||oe("RequestAnimationFrame")||ce,he=window.cancelAnimationFrame||oe("CancelAnimationFrame")||oe("CancelRequestAnimationFrame")||function(b){window.clearTimeout(b)};function ge(b,W,ie){if(ie&&ue===ce)b.call(W);else return ue.call(window,p(b,W))}function Oe(b){b&&he.call(window,b)}var $e={__proto__:null,extend:h,create:m,bind:p,get lastId(){return w},stamp:z,throttle:A,wrapNum:y,falseFn:s,formatNum:e,trim:f,splitWords:g,setOptions:R,getParamString:q,template:te,isArray:re,indexOf:ae,emptyImageUrl:ne,requestFn:ue,cancelFn:he,requestAnimFrame:ge,cancelAnimFrame:Oe};function Pe(){}Pe.extend=function(b){var W=function(){R(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},ie=W.__super__=this.prototype,de=m(ie);de.constructor=W,W.prototype=de;for(var pe in this)Object.prototype.hasOwnProperty.call(this,pe)&&pe!=="prototype"&&pe!=="__super__"&&(W[pe]=this[pe]);return b.statics&&h(W,b.statics),b.includes&&(Le(b.includes),h.apply(null,[de].concat(b.includes))),h(de,b),delete de.statics,delete de.includes,de.options&&(de.options=ie.options?m(ie.options):{},h(de.options,b.options)),de._initHooks=[],de.callInitHooks=function(){if(!this._initHooksCalled){ie.callInitHooks&&ie.callInitHooks.call(this),this._initHooksCalled=!0;for(var Ee=0,Qe=de._initHooks.length;Ee<Qe;Ee++)de._initHooks[Ee].call(this)}},W},Pe.include=function(b){var W=this.prototype.options;return h(this.prototype,b),b.options&&(this.prototype.options=W,this.mergeOptions(b.options)),this},Pe.mergeOptions=function(b){return h(this.prototype.options,b),this},Pe.addInitHook=function(b){var W=Array.prototype.slice.call(arguments,1),ie=typeof b=="function"?b:function(){this[b].apply(this,W)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(ie),this};function Le(b){if(!(typeof L>"u"||!L||!L.Mixin)){b=re(b)?b:[b];for(var W=0;W<b.length;
1872W++)b[W]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var me={on:function(b,W,ie){if(typeof b=="object")for(var de in b)this._on(de,b[de],W);else{b=g(b);for(var pe=0,Ee=b.length;pe<Ee;pe++)this._on(b[pe],W,ie)}return this},off:function(b,W,ie){if(!arguments.length)delete this._events;else if(typeof b=="object")for(var de in b)this._off(de,b[de],W);else{b=g(b);for(var pe=arguments.length===1,Ee=0,Qe=b.length;Ee<Qe;Ee++)pe?this._off(b[Ee]):this._off(b[Ee],W,ie)}return this},_on:function(b,W,ie,de){if(typeof W!="function"){console.warn("wrong listener type: "+typeof W);return}if(this._listens(b,W,ie)===!1){ie===this&&(ie=void 0);var pe={fn:W,ctx:ie};de&&(pe.once=!0),this._events=this._events||{},this._events[b]=this._events[b]||[],this._events[b].push(pe)}},_off:function(b,W,ie){var de,pe,Ee;if(this._events&&(de=this._events[b],!!de)){if(arguments.length===1){if(this._firingCount)for(pe=0,Ee=de.length;pe<Ee;pe++)de[pe].fn=s;delete this._events[b];return}if(typeof W!="function"){console.warn("wrong listener type: "+typeof W);return}var Qe=this._listens(b,W,ie);if(Qe!==!1){var jt=de[Qe];this._firingCount&&(jt.fn=s,this._events[b]=de=de.slice()),de.splice(Qe,1)}}},fire:function(b,W,ie){if(!this.listens(b,ie))return this;var de=h({},W,{type:b,target:this,sourceTarget:W&&W.sourceTarget||this});if(this._events){var pe=this._events[b];if(pe){this._firingCount=this._firingCount+1||1;for(var Ee=0,Qe=pe.length;Ee<Qe;Ee++){var jt=pe[Ee],Zt=jt.fn;jt.once&&this.off(b,Zt,jt.ctx),Zt.call(jt.ctx||this,de)}this._firingCount--}}return ie&&this._propagateEvent(de),this},listens:function(b,W,ie,de){typeof b!="string"&&console.warn('"string" type argument expected');var pe=W;typeof W!="function"&&(de=!!W,pe=void 0,ie=void 0);var Ee=this._events&&this._events[b];if(Ee&&Ee.length&&this._listens(b,pe,ie)!==!1)return!0;if(de){for(var Qe in this._eventParents)if(this._eventParents[Qe].listens(b,W,ie,de))return!0}return!1},_listens:function(b,W,ie){if(!this._events)return!1;var de=this._events[b]||[];if(!W)return!!de.length;ie===this&&(ie=void 0);for(var pe=0,Ee=de.length;pe<Ee;pe++)if(de[pe].fn===W&&de[pe].ctx===ie)return pe;return!1},once:function(b,W,ie){if(typeof b=="object")for(var de in b)this._on(de,b[de],W,!0);else{b=g(b);for(var pe=0,Ee=b.length;pe<Ee;pe++)this._on(b[pe],W,ie,!0)}return this},addEventParent:function(b){return this._eventParents=this._eventParents||{},this._eventParents[z(b)]=b,this},removeEventParent:function(b){return this._eventParents&&delete this._eventParents[z(b)],this},_propagateEvent:function(b){for(var W in this._eventParents)this._eventParents[W].fire(b.type,h({layer:b.target,propagatedFrom:b.target},b),!0)}};me.addEventListener=me.on,me.removeEventListener=me.clearAllEventListeners=me.off,me.addOneTimeEventListener=me.once,me.fireEvent=me.fire,me.hasEventListeners=me.listens;var we=Pe.extend(me);function Se(b,W,ie){this.x=ie?Math.round(b):b,this.y=ie?Math.round(W):W}var ye=Math.trunc||function(b){return b>0?Math.floor(b):Math.ceil(b)};Se.prototype={clone:function(){return new Se(this.x,this.y)},add:function(b){return this.clone()._add(ke(b))},_add:function(b){return this.x+=b.x,this.y+=b.y,this},subtract:function(b){return this.clone()._subtract(ke(b))},_subtract:function(b){return this.x-=b.x,this.y-=b.y,this},divideBy:function(b){return this.clone()._divideBy(b)},_divideBy:function(b){return this.x/=b,this.y/=b,this},multiplyBy:function(b){return this.clone()._multiplyBy(b)},_multiplyBy:function(b){return this.x*=b,this.y*=b,this},scaleBy:function(b){return new Se(this.x*b.x,this.y*b.y)},unscaleBy:function(b){return new Se(this.x/b.x,this.y/b.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=ye(this.x),this.y=ye(this.y),this},distanceTo:function(b){b=ke(b);var W=b.x-this.x,ie=b.y-this.y;return Math.sqrt(W*W+ie*ie)},equals:function(b){return b=ke(b),b.x===this.x&&b.y===this.y},contains:function(b){return b=ke(b),Math.abs(b.x)<=Math.abs(this.x)&&Math.abs(b.y)<=Math.abs(this.y)},toString:function(){return"Point("+e(this.x)+", "+e(this.y)+")"}};function ke(b,W,ie){return b instanceof Se?b:re(b)?new Se(b[0],b[1]):b==null?b:typeof b=="object"&&"x"in b&&"y"in b?new Se(b.x,b.y):new Se(b,W,ie)}function Ae(b,W){if(b)for(var ie=W?[b,W]:b,de=0,pe=ie.length;de<pe;de++)this.extend(ie[de])}Ae.prototype={extend:function(b){var W,ie;if(!b)return this;if(b instanceof Se||typeof b[0]=="number"||"x"in b)W=ie=ke(b);else if(b=Ie(b),W=b.min,ie=b.max,!W||!ie)return this;return!this.min&&!this.max?(this.min=W.clone(),this.max=ie.clone()):(this.min.x=Math.min(W.x,this.min.x),this.max.x=Math.max(ie.x,this.max.x),this.min.y=Math.min(W.y,this.min.y),this.max.y=Math.max(ie.y,this.max.y)),this},getCenter:function(b){return ke((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,b)},getBottomLeft:function(){return ke(this.min.x,this.max.y)},getTopRight:function(){return ke(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(b){var W,ie;return typeof b[0]=="number"||b instanceof Se?b=ke(b):b=Ie(b),b instanceof Ae?(W=b.min,ie=b.max):W=ie=b,W.x>=this.min.x&&ie.x<=this.max.x&&W.y>=this.min.y&&ie.y<=this.max.y},intersects:function(b){b=Ie(b);var W=this.min,ie=this.max,de=b.min,pe=b.max,Ee=pe.x>=W.x&&de.x<=ie.x,Qe=pe.y>=W.y&&de.y<=ie.y;return Ee&&Qe},overlaps:function(b){b=Ie(b);var W=this.min,ie=this.max,de=b.min,pe=b.max,Ee=pe.x>W.x&&de.x<ie.x,Qe=pe.y>W.y&&de.y<ie.y;return Ee&&Qe},isValid:function(){return!!(this.min&&this.max)},pad:function(b){var W=this.min,ie=this.max,de=Math.abs(W.x-ie.x)*b,pe=Math.abs(W.y-ie.
1872y)*b;return Ie(ke(W.x-de,W.y-pe),ke(ie.x+de,ie.y+pe))},equals:function(b){return b?(b=Ie(b),this.min.equals(b.getTopLeft())&&this.max.equals(b.getBottomRight())):!1}};function Ie(b,W){return!b||b instanceof Ae?b:new Ae(b,W)}function qe(b,W){if(b)for(var ie=W?[b,W]:b,de=0,pe=ie.length;de<pe;de++)this.extend(ie[de])}qe.prototype={extend:function(b){var W=this._southWest,ie=this._northEast,de,pe;if(b instanceof Je)de=b,pe=b;else if(b instanceof qe){if(de=b._southWest,pe=b._northEast,!de||!pe)return this}else return b?this.extend(Te(b)||Ge(b)):this;return!W&&!ie?(this._southWest=new Je(de.lat,de.lng),this._northEast=new Je(pe.lat,pe.lng)):(W.lat=Math.min(de.lat,W.lat),W.lng=Math.min(de.lng,W.lng),ie.lat=Math.max(pe.lat,ie.lat),ie.lng=Math.max(pe.lng,ie.lng)),this},pad:function(b){var W=this._southWest,ie=this._northEast,de=Math.abs(W.lat-ie.lat)*b,pe=Math.abs(W.lng-ie.lng)*b;return new qe(new Je(W.lat-de,W.lng-pe),new Je(ie.lat+de,ie.lng+pe))},getCenter:function(){return new Je((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new Je(this.getNorth(),this.getWest())},getSouthEast:function(){return new Je(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(b){typeof b[0]=="number"||b instanceof Je||"lat"in b?b=Te(b):b=Ge(b);var W=this._southWest,ie=this._northEast,de,pe;
1872return b instanceof qe?(de=b.getSouthWest(),pe=b.getNorthEast()):de=pe=b,de.lat>=W.lat&&pe.lat<=ie.lat&&de.lng>=W.lng&&pe.lng<=ie.lng},intersects:function(b){b=Ge(b);var W=this._southWest,ie=this._northEast,de=b.getSouthWest(),pe=b.getNorthEast(),Ee=pe.lat>=W.lat&&de.lat<=ie.lat,Qe=pe.lng>=W.lng&&de.lng<=ie.lng;return Ee&&Qe},overlaps:function(b){b=Ge(b);var W=this._southWest,ie=this._northEast,de=b.getSouthWest(),pe=b.getNorthEast(),Ee=pe.lat>W.lat&&de.lat<ie.lat,Qe=pe.lng>W.lng&&de.lng<ie.lng;return Ee&&Qe},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(b,W){return b?(b=Ge(b),this._southWest.equals(b.getSouthWest(),W)&&this._northEast.equals(b.getNorthEast(),W)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function Ge(b,W){return b instanceof qe?b:new qe(b,W)}function Je(b,W,ie){if(isNaN(b)||isNaN(W))throw new Error("Invalid LatLng object: ("+b+", "+W+")");this.lat=+b,this.lng=+W,ie!==void 0&&(this.alt=+ie)}Je.prototype={equals:function(b,W){if(!b)return!1;b=Te(b);var ie=Math.max(Math.abs(this.lat-b.lat),Math.abs(this.lng-b.lng));return ie<=(W===void 0?1e-9:W)},toString:function(b){return"LatLng("+e(this.lat,b)+", "+e(this.lng,b)+")"},distanceTo:function(b){return et.distance(this,Te(b))},wrap:function(){return et.wrapLatLng(this)},toBounds:function(b){var W=180*b/40075017,ie=W/Math.cos(Math.PI/180*this.lat);return Ge([this.lat-W,this.lng-ie],[this.lat+W,this.lng+ie])},clone:function(){return new Je(this.lat,this.lng,this.alt)}};function Te(b,W,ie){return b instanceof Je?b:re(b)&&typeof b[0]!="object"?b.length===3?new Je(b[0],b[1],b[2]):b.length===2?new Je(b[0],b[1]):null:b==null?b:typeof b=="object"&&"lat"in b?new Je(b.lat,"lng"in b?b.lng:b.lon,b.alt):W===void 0?null:new Je(b,W,ie)}var ve={latLngToPoint:function(b,W){var ie=this.projection.project(b),de=this.scale(W);return this.transformation._transform(ie,de)},pointToLatLng:function(b,W){var ie=this.scale(W),de=this.transformation.untransform(b,ie);return this.projection.unproject(de)},project:function(b){return this.projection.project(b)},unproject:function(b){return this.projection.unproject(b)},scale:function(b){return 256*Math.pow(2,b)},zoom:function(b){return Math.log(b/256)/Math.LN2},getProjectedBounds:function(b){if(this.infinite)return null;var W=this.projection.bounds,ie=this.scale(b),de=this.transformation.transform(W.min,ie),pe=this.transformation.transform(W.max,ie);return new Ae(de,pe)},infinite:!1,wrapLatLng:function(b){var W=this.wrapLng?y(b.lng,this.wrapLng,!0):b.lng,ie=this.wrapLat?y(b.lat,this.wrapLat,!0):b.lat,de=b.alt;return new Je(ie,W,de)},wrapLatLngBounds:function(b){var W=b.getCenter(),ie=this.wrapLatLng(W),de=W.lat-ie.lat,pe=W.lng-ie.lng;if(de===0&&pe===0)return b;
1872var Ee=b.getSouthWest(),Qe=b.getNorthEast(),jt=new Je(Ee.lat-de,Ee.lng-pe),Zt=new Je(Qe.lat-de,Qe.lng-pe);return new qe(jt,Zt)}},et=h({},ve,{wrapLng:[-180,180],R:6371e3,distance:function(b,W){var ie=Math.PI/180,de=b.lat*ie,pe=W.lat*ie,Ee=Math.sin((W.lat-b.lat)*ie/2),Qe=Math.sin((W.lng-b.lng)*ie/2),jt=Ee*Ee+Math.cos(de)*Math.cos(pe)*Qe*Qe,Zt=2*Math.atan2(Math.sqrt(jt),Math.sqrt(1-jt));return this.R*Zt}}),mt=6378137,ht={R:mt,MAX_LATITUDE:85.0511287798,project:function(b){var W=Math.PI/180,ie=this.MAX_LATITUDE,de=Math.max(Math.min(ie,b.lat),-ie),pe=Math.sin(de*W);return new Se(this.R*b.lng*W,this.R*Math.log((1+pe)/(1-pe))/2)},unproject:function(b){var W=180/Math.PI;return new Je((2*Math.atan(Math.exp(b.y/this.R))-Math.PI/2)*W,b.x*W/this.R)},bounds:(function(){var b=mt*Math.PI;return new Ae([-b,-b],[b,b])})()};function ct(b,W,ie,de){if(re(b)){this._a=b[0],this._b=b[1],this._c=b[2],this._d=b[3];return}this._a=b,this._b=W,this._c=ie,this._d=de}ct.prototype={transform:function(b,W){return this._transform(b.clone(),W)},_transform:function(b,W){return W=W||1,b.x=W*(this._a*b.x+this._b),b.y=W*(this._c*b.y+this._d),b},untransform:function(b,W){return W=W||1,new Se((b.x/W-this._b)/this._a,(b.y/W-this._d)/this._c)}};function Ue(b,W,ie,de){return new ct(b,W,ie,de)}var ot=h({},et,{code:"EPSG:3857",projection:ht,transformation:(function(){var b=.5/(Math.PI*ht.R);return Ue(b,.5,-b,.5)})()}),bt=h({},ot,{code:"EPSG:900913"});function At(b){return document.createElementNS("http://www.w3.org/2000/svg",b)}function ft(b,W){var ie="",de,pe,Ee,Qe,jt,Zt;for(de=0,Ee=b.length;de<Ee;de++){for(jt=b[de],pe=0,Qe=jt.length;pe<Qe;pe++)Zt=jt[pe],ie+=(pe?"L":"M")+Zt.x+" "+Zt.y;ie+=W?gn.svg?"z":"x":""}return ie||"M0 0"}var be=document.documentElement.style,Et="ActiveXObject"in window,St=Et&&!document.addEventListener,Jt="msLaunchUri"in navigator&&!("documentMode"in document),Bt=Nn("webkit"),Vt=Nn("android"),Tt=Nn("android 2")||Nn("android 3"),Be=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),Xe=Vt&&Nn("Google")&&Be<537&&!("AudioNode"in window),Ke=!!window.opera,nt=!Jt&&Nn("chrome"),xt=Nn("gecko")&&!Bt&&!Ke&&!Et,Mt=!nt&&Nn("safari"),Ye=Nn("phantom"),at="OTransition"in be,st=navigator.platform.indexOf("Win")===0,vt=Et&&"transition"in be,gt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!Tt,Ot="MozPerspective"in be,Dt=!window.L_DISABLE_3D&&(vt||gt||Ot)&&!at&&!Ye,Gt=typeof orientation<"u"||Nn("mobile"),Ft=Gt&&Bt,Pt=Gt&&gt,qt=!window.PointerEvent&&window.MSPointerEvent,on=!!(window.PointerEvent||qt),He="ontouchstart"in window||!!window.TouchEvent,Ve=!window.L_NO_TOUCH&&(He||on),pt=Gt&&Ke,wt=Gt&&xt,nn=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Wt=(function(){var b=!1;try{var W=Object.defineProperty({},"passive",{get:function(){b=!0}});window.addEventListener("testPassiveEventSupport",s,W),window.removeEventListener("testPassiveEventSupport",s,W)}catch{}return b})(),ln=(function(){return!!document.createElement("canvas").getContext})(),_n=!!(document.createElementNS&&At("svg").createSVGRect),xn=!!_n&&(function(){var b=document.createElement("div");return b.innerHTML="<svg/>",(b.firstChild&&b.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"})(),rn=!_n&&(function(){try{var b=document.createElement("div");b.innerHTML='<v:shape adj="1"/>';var W=b.firstChild;return W.style.behavior="url(#default#VML)",W&&typeof W.adj=="object"}catch{return!1}})(),vn=navigator.platform.indexOf("Mac")===0,Yn=navigator.platform.indexOf("Linux")===0;function Nn(b){return navigator.userAgent.toLowerCase().indexOf(b)>=0}var gn={ie:Et,ielt9:St,edge:Jt,webkit:Bt,android:Vt,android23:Tt,androidStock:Xe,opera:Ke,chrome:nt,gecko:xt,safari:Mt,phantom:Ye,opera12:at,win:st,ie3d:vt,webkit3d:gt,gecko3d:Ot,any3d:Dt,mobile:Gt,mobileWebkit:Ft,mobileWebkit3d:Pt,msPointer:qt,pointer:on,touch:Ve,touchNative:He,mobileOpera:pt,mobileGecko:wt,retina:nn,passiveEvents:Wt,canvas:ln,svg:_n,vml:rn,inlineSvg:xn,mac:vn,linux:Yn},pr=gn.msPointer?"MSPointerDown":"pointerdown",Ln=gn.msPointer?"MSPointerMove":"pointermove",Xn=gn.msPointer?"MSPointerUp":"pointerup",Tr=gn.msPointer?"MSPointerCancel":"pointercancel",De={touchstart:pr,touchmove:Ln,touchend:Xn,touchcancel:Tr},Ze={touchstart:nr,touchmove:Mn,touchend:Mn,touchcancel:Mn}
1872,_t={},dt=!1;function lt(b,W,ie){return W==="touchstart"&&In(),Ze[W]?(ie=Ze[W].bind(this,ie),b.addEventListener(De[W],ie,!1),ie):(console.warn("wrong event specified:",W),s)}function Ct(b,W,ie){if(!De[W]){console.warn("wrong event specified:",W);return}b.removeEventListener(De[W],ie,!1)}function en(b){_t[b.pointerId]=b}function mn(b){_t[b.pointerId]&&(_t[b.pointerId]=b)}function fn(b){delete _t[b.pointerId]}function In(){dt||(document.addEventListener(pr,en,!0),document.addEventListener(Ln,mn,!0),document.addEventListener(Xn,fn,!0),document.addEventListener(Tr,fn,!0),dt=!0)}function Mn(b,W){if(W.pointerType!==(W.MSPOINTER_TYPE_MOUSE||"mouse")){W.touches=[];for(var ie in _t)W.touches.push(_t[ie]);W.changedTouches=[W],b(W)}}function nr(b,W){W.MSPOINTER_TYPE_TOUCH&&W.pointerType===W.MSPOINTER_TYPE_TOUCH&&it(W),Mn(b,W)}function sr(b){var W={},ie,de;for(de in b)ie=b[de],W[de]=ie&&ie.bind?ie.bind(b):ie;return b=W,W.type="dblclick",W.detail=2,W.isTrusted=!1,W._simulated=!0,W}var Rt=200;function bn(b,W){b.addEventListener("dblclick",W);var ie=0,de;function pe(Ee){if(Ee.detail!==1){de=Ee.detail;return}if(!(Ee.pointerType==="mouse"||Ee.sourceCapabilities&&!Ee.sourceCapabilities.firesTouchEvents)){var Qe=$t(Ee);if(!(Qe.some(function(Zt){return Zt instanceof HTMLLabelElement&&Zt.attributes.for})&&!Qe.some(function(Zt){return Zt instanceof HTMLInputElement||Zt instanceof HTMLSelectElement}))){var jt=Date.now();jt-ie<=Rt?(de++,de===2&&W(sr(Ee))):de=1,ie=jt}}}return b.addEventListener("click",pe),{dblclick:W,simDblclick:pe}}function Rn(b,W){b.removeEventListener("dblclick",W.dblclick),b.removeEventListener("click",W.simDblclick)}var ir=hn(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Hn=hn(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),lr=Hn==="webkitTransition"||Hn==="OTransition"?Hn+"End":"transitionend";function ii(b){return typeof b=="string"?document.getElementById(b):b}function di(b,W){var ie=b.style[W]||b.currentStyle&&b.currentStyle[W];if((!ie||ie==="auto")&&document.defaultView){var de=document.defaultView.getComputedStyle(b,null);ie=de?de[W]:null}return ie==="auto"?null:ie}function Bn(b,W,ie){var de=document.createElement(b);return de.className=W||"",ie&&ie.appendChild(de),de}function Ce(b){var W=b.parentNode;W&&W.removeChild(b)}function Re(b){for(;b.firstChild;)b.removeChild(b.firstChild)}function Me(b){var W=b.parentNode;W&&W.lastChild!==b&&W.appendChild(b)}function rt(b){var W=b.parentNode;W&&W.firstChild!==b&&W.insertBefore(b,W.firstChild)}function ut(b,W){if(b.classList!==void 0)return b.classList.contains(W);var ie=Ut(b);return ie.length>0&&new RegExp("(^|\\s)"+W+"(\\s|$)").test(ie)}function We(b,W){if(b.classList!==void 0)for(var ie=g(W),de=0,pe=ie.length;de<pe;de++)b.classList.add(ie[de]);else if(!ut(b,W)){var Ee=Ut(b);Nt(b,(Ee?Ee+" ":"")+W)}}function Lt(b,W){b.classList!==void 0?b.classList.remove(W):Nt(b,f((" "+Ut(b)+" ").replace(" "+W+" "," ")))}function Nt(b,W){b.className.baseVal===void 0?b.className=W:b.className.baseVal=W}function Ut(b){return b.correspondingElement&&(b=b.correspondingElement),b.className.baseVal===void 0?b.className:b.className.baseVal}function Xt(b,W){"opacity"in b.style?b.style.opacity=W:"filter"in b.style&&tn(b,W)}function tn(b,W){var ie=!1,de="DXImageTransform.Microsoft.Alpha";try{ie=b.filters.item(de)}catch{if(W===1)return}W=Math.round(W*100),ie?(ie.Enabled=W!==100,ie.Opacity=W):b.style.filter+=" progid:"+de+"(opacity="+W+")"}function hn(b){for(var W=document.documentElement.style,ie=0;ie<b.length;ie++)if(b[ie]in W)return b[ie];return!1}function wn(b,W,ie){var de=W||new Se(0,0);b.style[ir]=(gn.ie3d?"translate("+de.x+"px,"+de.y+"px)":"translate3d("+de.x+"px,"+de.y+"px,0)")+(ie?" scale("+ie+")":"")}function yn(b,W){b._leaflet_pos=W,gn.any3d?wn(b,W):(b.style.left=W.x+"px",b.style.top=W.y+"px")}function Pn(b){return b._leaflet_pos||new Se(0,0)}var Fn,zn,cn;if("onselectstart"in document)Fn=function(){Gn(window,"selectstart",it)},zn=function(){cr(window,"selectstart",it)};else{var $n=hn(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Fn=function(){if($n){var b=document.documentElement.style;cn=b[$n],b[$n]="none"}}
1872,zn=function(){$n&&(document.documentElement.style[$n]=cn,cn=void 0)}}function En(){Gn(window,"dragstart",it)}function On(){cr(window,"dragstart",it)}var xr,Vr;function Kr(b){for(;b.tabIndex===-1;)b=b.parentNode;b.style&&(Mr(),xr=b,Vr=b.style.outlineStyle,b.style.outlineStyle="none",Gn(window,"keydown",Mr))}function Mr(){xr&&(xr.style.outlineStyle=Vr,xr=void 0,Vr=void 0,cr(window,"keydown",Mr))}function kr(b){do b=b.parentNode;while((!b.offsetWidth||!b.offsetHeight)&&b!==document.body);return b}function Fr(b){var W=b.getBoundingClientRect();return{x:W.width/b.offsetWidth||1,y:W.height/b.offsetHeight||1,boundingClientRect:W}}var wi={__proto__:null,TRANSFORM:ir,TRANSITION:Hn,TRANSITION_END:lr,get:ii,getStyle:di,create:Bn,remove:Ce,empty:Re,toFront:Me,toBack:rt,hasClass:ut,addClass:We,removeClass:Lt,setClass:Nt,getClass:Ut,setOpacity:Xt,testProp:hn,setTransform:wn,setPosition:yn,getPosition:Pn,get disableTextSelection(){return Fn},get enableTextSelection(){return zn},disableImageDrag:En,enableImageDrag:On,preventOutline:Kr,restoreOutline:Mr,getSizedParentNode:kr,getScale:Fr};function Gn(b,W,ie,de){if(W&&typeof W=="object")for(var pe in W)Rr(b,pe,W[pe],ie);else{W=g(W);for(var Ee=0,Qe=W.length;Ee<Qe;Ee++)Rr(b,W[Ee],ie,de)}return this}var jr="_leaflet_events";function cr(b,W,ie,de){if(arguments.length===1)Pi(b),delete b[jr];else if(W&&typeof W=="object")for(var pe in W)zi(b,pe,W[pe],ie);else if(W=g(W),arguments.length===2)Pi(b,function(jt){return ae(W,jt)!==-1});else for(var Ee=0,Qe=W.length;Ee<Qe;Ee++)zi(b,W[Ee],ie,de);return this}function Pi(b,W){for(var ie in b[jr]){var de=ie.split(/\d/)[0];(!W||W(de))&&zi(b,de,null,null,ie)}}
1872var Or={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Rr(b,W,ie,de){var pe=W+z(ie)+(de?"_"+z(de):"");if(b[jr]&&b[jr][pe])return this;var Ee=function(jt){return ie.call(de||b,jt||window.event)},Qe=Ee;!gn.touchNative&&gn.pointer&&W.indexOf("touch")===0?Ee=lt(b,W,Ee):gn.touch&&W==="dblclick"?Ee=bn(b,Ee):"addEventListener"in b?W==="touchstart"||W==="touchmove"||W==="wheel"||W==="mousewheel"?b.addEventListener(Or[W]||W,Ee,gn.passiveEvents?{passive:!1}:!1):W==="mouseenter"||W==="mouseleave"?(Ee=function(jt){jt=jt||window.event,Jn(b,jt)&&Qe(jt)},b.addEventListener(Or[W],Ee,!1)):b.addEventListener(W,Qe,!1):b.attachEvent("on"+W,Ee),b[jr]=b[jr]||{},b[jr][pe]=Ee}function zi(b,W,ie,de,pe){pe=pe||W+z(ie)+(de?"_"+z(de):"");var Ee=b[jr]&&b[jr][pe];if(!Ee)return this;!gn.touchNative&&gn.pointer&&W.indexOf("touch")===0?Ct(b,W,Ee):gn.touch&&W==="dblclick"?Rn(b,Ee):"removeEventListener"in b?b.removeEventListener(Or[W]||W,Ee,!1):b.detachEvent("on"+W,Ee),b[jr][pe]=null}function _e(b){return b.stopPropagation?b.stopPropagation():b.originalEvent?b.originalEvent._stopped=!0:b.cancelBubble=!0,this}function Fe(b){return Rr(b,"wheel",_e),this}function je(b){return Gn(b,"mousedown touchstart dblclick contextmenu",_e),b._leaflet_disable_click=!0,this}function it(b){return b.preventDefault?b.preventDefault():b.returnValue=!1,this}function kt(b){return it(b),_e(b),this}function $t(b){if(b.composedPath)return b.composedPath();for(var W=[],ie=b.target;ie;)W.push(ie),ie=ie.parentNode;return W}function pn(b,W){if(!W)return new Se(b.clientX,b.clientY);var ie=Fr(W),de=ie.boundingClientRect;return new Se((b.clientX-de.left)/ie.x-W.clientLeft,(b.clientY-de.top)/ie.y-W.clientTop)}var Cn=gn.linux&&gn.chrome?window.devicePixelRatio:gn.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function Kn(b){return gn.edge?b.wheelDeltaY/2:b.deltaY&&b.deltaMode===0?-b.deltaY/Cn:b.deltaY&&b.deltaMode===1?-b.deltaY*20:b.deltaY&&b.deltaMode===2?-b.deltaY*60:b.deltaX||b.deltaZ?0:b.wheelDelta?(b.wheelDeltaY||b.wheelDelta)/2:b.detail&&Math.abs(b.detail)<32765?-b.detail*20:b.detail?b.detail/-32765*60:0}function Jn(b,W){var ie=W.relatedTarget;if(!ie)return!0;try{for(;ie&&ie!==b;)ie=ie.parentNode}catch{return!1}return ie!==b}var wr={__proto__:null,on:Gn,off:cr,stopPropagation:_e,disableScrollPropagation:Fe,disableClickPropagation:je,preventDefault:it,stop:kt,getPropagationPath:$t,getMousePosition:pn,getWheelDelta:Kn,isExternalTarget:Jn,addListener:Gn,removeListener:cr},Hr=we.extend({run:function(b,W,ie,de){this.stop(),this._el=b,this._inProgress=!0,this._duration=ie||.25,this._easeOutPower=1/Math.max(de||.5,.2),this._startPos=Pn(b),this._offset=W.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=ge(this._animate,this),this._step()},_step:function(b){var W=+new Date-this._startTime,ie=this._duration*1e3;W<ie?this._runFrame(this._easeOut(W/ie),b):(this._runFrame(1),this._complete())},_runFrame:function(b,W){var ie=this._startPos.add(this._offset.multiplyBy(b));W&&ie._round(),yn(this._el,ie),this.fire("step")},_complete:function(){Oe(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(b){return 1-Math.pow(1-b,this._easeOutPower)}}),qn=we.extend({options:{crs:ot,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(b,W){W=R(this,W),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(b),this._initLayout(),this._onResize=p(this._onResize,this),this._initEvents(),W.maxBounds&&this.setMaxBounds(W.maxBounds),W.zoom!==void 0&&(this._zoom=this._limitZoom(W.zoom)),W.center&&W.zoom!==void 0&&this.setView(Te(W.center),W.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=Hn&&gn.any3d&&!gn.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Gn(this._proxy,lr,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)}
1872,setView:function(b,W,ie){if(W=W===void 0?this._zoom:this._limitZoom(W),b=this._limitCenter(Te(b),W,this.options.maxBounds),ie=ie||{},this._stop(),this._loaded&&!ie.reset&&ie!==!0){ie.animate!==void 0&&(ie.zoom=h({animate:ie.animate},ie.zoom),ie.pan=h({animate:ie.animate,duration:ie.duration},ie.pan));var de=this._zoom!==W?this._tryAnimatedZoom&&this._tryAnimatedZoom(b,W,ie.zoom):this._tryAnimatedPan(b,ie.pan);if(de)return clearTimeout(this._sizeTimer),this}return this._resetView(b,W,ie.pan&&ie.pan.noMoveStart),this},setZoom:function(b,W){return this._loaded?this.setView(this.getCenter(),b,{zoom:W}):(this._zoom=b,this)},zoomIn:function(b,W){return b=b||(gn.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+b,W)},zoomOut:function(b,W){return b=b||(gn.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-b,W)},setZoomAround:function(b,W,ie){var de=this.getZoomScale(W),pe=this.getSize().divideBy(2),Ee=b instanceof Se?b:this.latLngToContainerPoint(b),Qe=Ee.subtract(pe).multiplyBy(1-1/de),jt=this.containerPointToLatLng(pe.add(Qe));return this.setView(jt,W,{zoom:ie})},_getBoundsCenterZoom:function(b,W){W=W||{},b=b.getBounds?b.getBounds():Ge(b);var ie=ke(W.paddingTopLeft||W.padding||[0,0]),de=ke(W.paddingBottomRight||W.padding||[0,0]),pe=this.getBoundsZoom(b,!1,ie.add(de));
1872if(pe=typeof W.maxZoom=="number"?Math.min(W.maxZoom,pe):pe,pe===1/0)return{center:b.getCenter(),zoom:pe};var Ee=de.subtract(ie).divideBy(2),Qe=this.project(b.getSouthWest(),pe),jt=this.project(b.getNorthEast(),pe),Zt=this.unproject(Qe.add(jt).divideBy(2).add(Ee),pe);return{center:Zt,zoom:pe}},fitBounds:function(b,W){if(b=Ge(b),!b.isValid())throw new Error("Bounds are not valid.");var ie=this._getBoundsCenterZoom(b,W);return this.setView(ie.center,ie.zoom,W)},fitWorld:function(b){return this.fitBounds([[-90,-180],[90,180]],b)},panTo:function(b,W){return this.setView(b,this._zoom,{pan:W})},panBy:function(b,W){if(b=ke(b).round(),W=W||{},!b.x&&!b.y)return this.fire("moveend");if(W.animate!==!0&&!this.getSize().contains(b))return this._resetView(this.unproject(this.project(this.getCenter()).add(b)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new Hr,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),W.noMoveStart||this.fire("movestart"),W.animate!==!1){We(this._mapPane,"leaflet-pan-anim");var ie=this._getMapPanePos().subtract(b).round();this._panAnim.run(this._mapPane,ie,W.duration||.25,W.easeLinearity)}else this._rawPanBy(b),this.fire("move").fire("moveend");return this},flyTo:function(b,W,ie){if(ie=ie||{},ie.animate===!1||!gn.any3d)return this.setView(b,W,ie);this._stop();var de=this.project(this.getCenter()),pe=this.project(b),Ee=this.getSize(),Qe=this._zoom;b=Te(b),W=W===void 0?Qe:W;var jt=Math.max(Ee.x,Ee.y),Zt=jt*this.getZoomScale(Qe,W),un=pe.distanceTo(de)||1,kn=1.42,jn=kn*kn;function Qn(Er){var Pa=Er?-1:1,Oo=Er?Zt:jt,ze=Zt*Zt-jt*jt+Pa*jn*jn*un*un,ms=2*Oo*jn*un,vs=ze/ms,oi=Math.sqrt(vs*vs+1)-vs,or=oi<1e-9?-18:Math.log(oi);return or}function Ur(Er){return(Math.exp(Er)-Math.exp(-Er))/2}function Sr(Er){return(Math.exp(Er)+Math.exp(-Er))/2}function Zr(Er){return Ur(Er)/Sr(Er)}var Br=Qn(0);function qi(Er){return jt*(Sr(Br)/Sr(Br+kn*Er))}function gs(Er){return jt*(Sr(Br)*Zr(Br+kn*Er)-Ur(Br))/jn}function nl(Er){return 1-Math.pow(1-Er,1.5)}var rl=Date.now(),Po=(Qn(1)-Br)/kn,il=ie.duration?1e3*ie.duration:1e3*Po*.8;function Mo(){var Er=(Date.now()-rl)/il,Pa=nl(Er)*Po;Er<=1?(this._flyToFrame=ge(Mo,this),this._move(this.unproject(de.add(pe.subtract(de).multiplyBy(gs(Pa)/un)),Qe),this.getScaleZoom(jt/qi(Pa),Qe),{flyTo:!0})):this._move(b,W)._moveEnd(!0)}return this._moveStart(!0,ie.noMoveStart),Mo.call(this),this},flyToBounds:function(b,W){var ie=this._getBoundsCenterZoom(b,W);return this.flyTo(ie.center,ie.zoom,W)},setMaxBounds:function(b){return b=Ge(b),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),b.isValid()?(this.options.maxBounds=b,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(b){var W=this.options.minZoom;return this.options.minZoom=b,this._loaded&&W!==b&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(b):this},setMaxZoom:function(b){var W=this.options.maxZoom;return this.options.maxZoom=b,this._loaded&&W!==b&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(b):this},panInsideBounds:function(b,W){this._enforcingBounds=!0;var ie=this.getCenter(),de=this._limitCenter(ie,this._zoom,Ge(b));return ie.equals(de)||this.panTo(de,W),this._enforcingBounds=!1,this},panInside:function(b,W){W=W||{};var ie=ke(W.paddingTopLeft||W.padding||[0,0]),de=ke(W.paddingBottomRight||W.padding||[0,0]),pe=this.project(this.getCenter()),Ee=this.project(b),Qe=this.getPixelBounds(),jt=Ie([Qe.min.add(ie),Qe.max.subtract(de)]),Zt=jt.getSize();if(!jt.contains(Ee)){this._enforcingBounds=!0;var un=Ee.subtract(jt.getCenter()),kn=jt.extend(Ee).getSize().subtract(Zt);pe.x+=un.x<0?-kn.x:kn.x,pe.y+=un.y<0?-kn.y:kn.y,this.panTo(this.unproject(pe),W),this._enforcingBounds=!1}return this},invalidateSize:function(b){if(!this._loaded)return this;b=h({animate:!1,pan:!0},b===!0?{animate:!0}:b);var W=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var ie=this.getSize(),de=W.divideBy(2).round(),pe=ie.divideBy(2).round(),Ee=de.subtract(pe);return!Ee.x&&!Ee.y?this:(b.animate&&b.pan?this.panBy(Ee):(b.pan&&this._rawPanBy(Ee),this.fire("move"),b.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(p(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:W,newSize:ie}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(b){if(b=this._locateOptions=h({timeout:1e4,watch:!1},b),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var W=p(this._handleGeolocationResponse,this),ie=p(this._handleGeolocationError,this);return b.watch?this._locationWatchId=navigator.geolocation.watchPosition(W,ie,b):navigator.geolocation.getCurrentPosition(W,ie,b),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(b){if(this._container._leaflet_id){var W=b.code,ie=b.message||(W===1?"permission denied":W===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:W,message:"Geolocation error: "+ie+"."})}},_handleGeolocationResponse:function(b){if(this._container._leaflet_id){var W=b.coords.latitude,ie=b.coords.longitude,de=new Je(W,ie),pe=de.toBounds(b.coords.accuracy*2),Ee=this._locateOptions;if(Ee.setView){var Qe=this.getBoundsZoom(pe);this.setView(de,Ee.maxZoom?Math.min(Qe,Ee.maxZoom):Qe)}var jt={latlng:de,bounds:pe,timestamp:b.timestamp};for(var Zt in b.coords)typeof b.coords[Zt]=="number"&&(jt[Zt]=b.coords[Zt]);this.fire("locationfound",jt)}},addHandler:function(b,W){if(!W)return this;var ie=this[b]=new W(this);return this._handlers.push(ie),this.options[b]&&ie.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),Ce(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(Oe(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var b;for(b in this._layers)this._layers[b].remove();for(b in this._panes)Ce(this._panes[b]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(b,W){var ie="leaflet-pane"+(b?" leaflet-"+b.replace("Pane","")+"-pane":""),de=Bn("div",ie,W||this._mapPane);return b&&(this._panes[b]=de),de},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var b=this.getPixelBounds(),W=this.unproject(b.getBottomLeft()),ie=this.unproject(b.getTopRight());return new qe(W,ie)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZo
1872om===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(b,W,ie){b=Ge(b),ie=ke(ie||[0,0]);var de=this.getZoom()||0,pe=this.getMinZoom(),Ee=this.getMaxZoom(),Qe=b.getNorthWest(),jt=b.getSouthEast(),Zt=this.getSize().subtract(ie),un=Ie(this.project(jt,de),this.project(Qe,de)).getSize(),kn=gn.any3d?this.options.zoomSnap:1,jn=Zt.x/un.x,Qn=Zt.y/un.y,Ur=W?Math.max(jn,Qn):Math.min(jn,Qn);return de=this.getScaleZoom(Ur,de),kn&&(de=Math.round(de/(kn/100))*(kn/100),de=W?Math.ceil(de/kn)*kn:Math.floor(de/kn)*kn),Math.max(pe,Math.min(Ee,de))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new Se(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(b,W){var ie=this._getTopLeftPoint(b,W);return new Ae(ie,ie.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(b){return this.options.crs.getProjectedBounds(b===void 0?this.getZoom():b)},getPane:function(b){return typeof b=="string"?this._panes[b]:b},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(b,W){var ie=this.options.crs;return W=W===void 0?this._zoom:W,ie.scale(b)/ie.scale(W)},getScaleZoom:function(b,W){var ie=this.options.crs;W=W===void 0?this._zoom:W;var de=ie.zoom(b*ie.scale(W));return isNaN(de)?1/0:de},project:function(b,W){return W=W===void 0?this._zoom:W,this.options.crs.latLngToPoint(Te(b),W)},unproject:function(b,W){return W=W===void 0?this._zoom:W,this.options.crs.pointToLatLng(ke(b),W)},layerPointToLatLng:function(b){var W=ke(b).add(this.getPixelOrigin());return this.unproject(W)},latLngToLayerPoint:function(b){var W=this.project(Te(b))._round();return W._subtract(this.getPixelOrigin())},wrapLatLng:function(b){return this.options.crs.wrapLatLng(Te(b))},wrapLatLngBounds:function(b){return this.options.crs.wrapLatLngBounds(Ge(b))},distance:function(b,W){return this.options.crs.distance(Te(b),Te(W))},containerPointToLayerPoint:function(b){return ke(b).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(b){return ke(b).add(this._getMapPanePos())},containerPointToLatLng:function(b){var W=this.containerPointToLayerPoint(ke(b));return this.layerPointToLatLng(W)},latLngToContainerPoint:function(b){return this.layerPointToContainerPoint(this.latLngToLayerPoint(Te(b)))},mouseEventToContainerPoint:function(b){return pn(b,this._container)},mouseEventToLayerPoint:function(b){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(b))},mouseEventToLatLng:function(b){return this.layerPointToLatLng(this.mouseEventToLayerPoint(b))},_initContainer:function(b){var W=this._container=ii(b);if(W){if(W._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");Gn(W,"scroll",this._onScroll,this),this._containerId=z(W)},_initLayout:function(){var b=this._container;this._fadeAnimated=this.options.fadeAnimation&&gn.any3d,We(b,"leaflet-container"+(gn.touch?" leaflet-touch":"")+(gn.retina?" leaflet-retina":"")+(gn.ielt9?" leaflet-oldie":"")+(gn.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var W=di(b,"position");W!=="absolute"&&W!=="relative"&&W!=="fixed"&&W!=="sticky"&&(b.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var b=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),yn(this._mapPane,new Se(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(We(b.markerPane,"leaflet-zoom-hide"),We(b.shadowPane,"leaflet-zoom-hide"))},_resetView:function(b,W,ie){yn(this._mapPane,new Se(0,0));var de=!this._loaded;this._loaded=!0,W=this._limitZoom(W),this.fire("viewprereset");var pe=this._zoom!==W;this._moveStart(pe,ie)._move(b,W)._moveEnd(pe),this.fire("viewreset"),de&&this.fire("load")},_moveStart:function(b,W){return b&&this.fire("zoomstart"),W||this.fire("movestart"),this},_move:function(b,W,ie,de){W===void 0&&(W=this._zoom);var pe=this._zoom!==W;return this._zoom=W,this._lastCenter=b,this._pixelOrigin=this._getNewPixelOrigin(b),de?ie&&ie.pinch&&this.fire("zoom",ie):((pe||ie&&ie.pinch)&&this.fire("zoom",ie),this.fire("move",ie)),this},_moveEnd:function(b){return b&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return Oe(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(b){yn(this._mapPane,this._getMapPanePos().subtract(b))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(b){this._targets={},this._targets[z(this._container)]=this;var W=b?cr:Gn;W(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&W(window,"resize",this._onResize,this),gn.any3d&&this.options.transform3DLimit&&(b?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){Oe(this._resizeRequest),this._resizeRequest=ge(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var b=this._getMapPanePos();Math.max(Math.abs(b.x),Math.abs(b.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(b,W){for(var ie=[],de,pe=W==="mouseout"||W==="mouseover",Ee=b.target||b.srcElement,Qe=!1;Ee;){if(de=this._targets[z(Ee)],de&&(W==="click"||W==="preclick")&&this._draggableMoved(de)){Qe=!0;break}if(de&&de.listens(W,!0)&&(pe&&!Jn(Ee,b)||(ie.push(de),pe))||Ee===this._container)break;Ee=Ee.parentNode}return!ie.length&&!Qe&&!pe&&this.listens(W,!0)&&(ie=[this]),ie}
1872,_isClickDisabled:function(b){for(;b&&b!==this._container;){if(b._leaflet_disable_click)return!0;b=b.parentNode}},_handleDOMEvent:function(b){var W=b.target||b.srcElement;if(!(!this._loaded||W._leaflet_disable_events||b.type==="click"&&this._isClickDisabled(W))){var ie=b.type;ie==="mousedown"&&Kr(W),this._fireDOMEvent(b,ie)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(b,W,ie){if(b.type==="click"){var de=h({},b);de.type="preclick",this._fireDOMEvent(de,de.type,ie)}var pe=this._findEventTargets(b,W);if(ie){for(var Ee=[],Qe=0;Qe<ie.length;Qe++)ie[Qe].listens(W,!0)&&Ee.push(ie[Qe]);pe=Ee.concat(pe)}if(pe.length){W==="contextmenu"&&it(b);var jt=pe[0],Zt={originalEvent:b};if(b.type!=="keypress"&&b.type!=="keydown"&&b.type!=="keyup"){var un=jt.getLatLng&&(!jt._radius||jt._radius<=10);Zt.containerPoint=un?this.latLngToContainerPoint(jt.getLatLng()):this.mouseEventToContainerPoint(b),Zt.layerPoint=this.containerPointToLayerPoint(Zt.containerPoint),Zt.latlng=un?jt.getLatLng():this.layerPointToLatLng(Zt.layerPoint)}for(Qe=0;Qe<pe.length;Qe++)if(pe[Qe].fire(W,Zt,!0),Zt.originalEvent._stopped||pe[Qe].options.bubblingMouseEvents===!1&&ae(this._mouseEvents,W)!==-1)return}},_draggableMoved:function(b){return b=b.dragging&&b.dragging.enabled()?b:this,b.dragging&&b.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var b=0,W=this._handlers.length;b<W;b++)this._handlers[b].disable()},whenReady:function(b,W){return this._loaded?b.call(W||this,{target:this}):this.on("load",b,W),this},_getMapPanePos:function(){return Pn(this._mapPane)||new Se(0,0)},_moved:function(){var b=this._getMapPanePos();return b&&!b.equals([0,0])},_getTopLeftPoint:function(b,W){var ie=b&&W!==void 0?this._getNewPixelOrigin(b,W):this.getPixelOrigin();return ie.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(b,W){var ie=this.getSize()._divideBy(2);return this.project(b,W)._subtract(ie)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(b,W,ie){var de=this._getNewPixelOrigin(ie,W);return this.project(b,W)._subtract(de)},_latLngBoundsToNewLayerBounds:function(b,W,ie){var de=this._getNewPixelOrigin(ie,W);
vendor: 13,615 bytes, line 1872
1872return Ie([this.project(b.getSouthWest(),W)._subtract(de),this.project(b.getNorthWest(),W)._subtract(de),this.project(b.getSouthEast(),W)._subtract(de),this.project(b.getNorthEast(),W)._subtract(de)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(b){return this.latLngToLayerPoint(b).subtract(this._getCenterLayerPoint())},_limitCenter:function(b,W,ie){if(!ie)return b;var de=this.project(b,W),pe=this.getSize().divideBy(2),Ee=new Ae(de.subtract(pe),de.add(pe)),Qe=this._getBoundsOffset(Ee,ie,W);return Math.abs(Qe.x)<=1&&Math.abs(Qe.y)<=1?b:this.unproject(de.add(Qe),W)},_limitOffset:function(b,W){if(!W)return b;var ie=this.getPixelBounds(),de=new Ae(ie.min.add(b),ie.max.add(b));return b.add(this._getBoundsOffset(de,W))},_getBoundsOffset:function(b,W,ie){var de=Ie(this.project(W.getNorthEast(),ie),this.project(W.getSouthWest(),ie)),pe=de.min.subtract(b.min),Ee=de.max.subtract(b.max),Qe=this._rebound(pe.x,-Ee.x),jt=this._rebound(pe.y,-Ee.y);return new Se(Qe,jt)},_rebound:function(b,W){return b+W>0?Math.round(b-W)/2:Math.max(0,Math.ceil(b))-Math.max(0,Math.floor(W))},_limitZoom:function(b){var W=this.getMinZoom(),ie=this.getMaxZoom(),de=gn.any3d?this.options.zoomSnap:1;return de&&(b=Math.round(b/de)*de),Math.max(W,Math.min(ie,b))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Lt(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(b,W){var ie=this._getCenterOffset(b)._trunc();return(W&&W.animate)!==!0&&!this.getSize().contains(ie)?!1:(this.panBy(ie,W),!0)},_createAnimProxy:function(){var b=this._proxy=Bn("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(b),this.on("zoomanim",function(W){var ie=ir,de=this._proxy.style[ie];wn(this._proxy,this.project(W.center,W.zoom),this.getZoomScale(W.zoom,1)),de===this._proxy.style[ie]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Ce(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var b=this.getCenter(),W=this.getZoom();wn(this._proxy,this.project(b,W),this.getZoomScale(W,1))},_catchTransitionEnd:function(b){this._animatingZoom&&b.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(b,W,ie){if(this._animatingZoom)return!0;if(ie=ie||{},!this._zoomAnimated||ie.animate===!1||this._nothingToAnimate()||Math.abs(W-this._zoom)>this.options.zoomAnimationThreshold)return!1;var de=this.getZoomScale(W),pe=this._getCenterOffset(b)._divideBy(1-1/de);return ie.animate!==!0&&!this.getSize().contains(pe)?!1:(ge(function(){this._moveStart(!0,ie.noMoveStart||!1)._animateZoom(b,W,!0)},this),!0)},_animateZoom:function(b,W,ie,de){this._mapPane&&(ie&&(this._animatingZoom=!0,this._animateToCenter=b,this._animateToZoom=W,We(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:b,zoom:W,noUpdate:de}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(p(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&Lt(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function Yt(b,W){return new qn(b,W)}var An=Pe.extend({options:{position:"topright"},initialize:function(b){R(this,b)},getPosition:function(){return this.options.position},setPosition:function(b){var W=this._map;return W&&W.removeControl(this),this.options.position=b,W&&W.addControl(this),this},getContainer:function(){return this._container},addTo:function(b){this.remove(),this._map=b;var W=this._container=this.onAdd(b),ie=this.getPosition(),de=b._controlCorners[ie];return We(W,"leaflet-control"),ie.indexOf("bottom")!==-1?de.insertBefore(W,de.firstChild):de.appendChild(W),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Ce(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(b){this._map&&b&&b.screenX>0&&b.screenY>0&&this._map.getContainer().focus()}}),dr=function(b){return new An(b)};qn.include({addControl:function(b){return b.addTo(this),this},removeControl:function(b){return b.remove(),this},_initControlPos:function(){var b=this._controlCorners={},W="leaflet-",ie=this._controlContainer=Bn("div",W+"control-container",this._container);function de(pe,Ee){var Qe=W+pe+" "+W+Ee;b[pe+Ee]=Bn("div",Qe,ie)}de("top","left"),de("top","right"),de("bottom","left"),de("bottom","right")},_clearControlPos:function(){for(var b in this._controlCorners)Ce(this._controlCorners[b]);Ce(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Ir=An.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(b,W,ie,de){return ie<de?-1:de<ie?1:0}},initialize:function(b,W,ie){R(this,ie),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var de in b)this._addLayer(b[de],de);for(de in W)this._addLayer(W[de],de,!0)},onAdd:function(b){this._initLayout(),this._update(),this._map=b,b.on("zoomend",this._checkDisabledLayers,this);for(var W=0;W<this._layers.length;W++)this._layers[W].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(b){return An.prototype.addTo.call(this,b),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var b=0;b<this._layers.length;b++)this._layers[b].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(b,W){return this._addLayer(b,W),this._map?this._update():this},addOverlay:function(b,W){return this._addLayer(b,W,!0),this._map?this._update():this},removeLayer:function(b){b.off("add remove",this._onLayerChange,this);var W=this._getLayer(z(b));return W&&this._layers.splice(this._layers.indexOf(W),1),this._map?this._update():this},expand:function(){We(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var b=this._map.getSize().y-(this._container.offsetTop+50);return b<this._section.clientHeight?(We(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=b+"px"):Lt(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return Lt(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var b="leaflet-control-layers",W=this._container=Bn("div",b),ie=this.options.collapsed;W.setAttribute("aria-haspopup",!0),je(W),Fe(W);var de=this._section=Bn("section",b+"-list");ie&&(this._map.on("click",this.collapse,this),Gn(W,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var pe=this._layersLink=Bn("a",b+"-toggle",W);pe.href="#",pe.title="Layers",pe.setAttribute("role","button"),Gn(pe,{keydown:function(Ee){Ee.keyCode===13&&this._expandSafely()},click:function(Ee){it(Ee),this._expandSafely()}},this),ie||this.expand(),this._baseLayersList=Bn("div",b+"-base",de),this._separator=Bn("div",b+"-separator",de),this._overlaysList=Bn("div",b+"-overlays",de),W.appendChild(de)},_getLayer:function(b){for(var W=0;W<this._layers.length;W++)if(this._layers[W]&&z(this._layers[W].layer)===b)return this._layers[W]},_addLayer:function(b,W,ie){this._map&&b.on("add remove",this._onLayerChange,this),this._layers.push({layer:b,name:W,overlay:ie}),this.options.sortLayers&&this._layers.sort(p(function(de,pe){return this.options.sortFunction(de.layer,pe.layer,de.name,pe.name)},this)),this.options.autoZIndex&&b.setZIndex&&(this._lastZIndex++,b.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;Re(this._baseLayersList),Re(this._overlaysList),this._layerControlInputs=[];var b,W,ie,de,pe=0;for(ie=0;ie<this._layers.length;ie++)de=this._layers[ie],this._addItem(de),W=W||de.overlay,b=b||!de.overlay,pe+=de.overlay?0:1;return this.options.hideSingleBase&&(b=b&&pe>1,this._baseLayersList.style.display=b?"":"none"),this._separator.style.display=W&&b?"":"none",this},_onLayerChange:function(b){this._handlingClick||this._update();var W=this._getLayer(z(b.target)),ie=W.overlay?b.type==="add"?"overlayadd":"overlayremove":b.type==="add"?"baselayerchange":null;ie&&this._map.fire(ie,W)},_createRadioElement:function(b,W){var ie='<input type="radio" class="leaflet-control-layers-selector" name="'+b+'"'+(W?' checked="checked"':"")+"/>",de=document.createElement("div");return de.innerHTML=ie,de.firstChild},_addItem:function(b){var W=document.createElement("label"),ie=this._map.hasLayer(b.layer),de;b.overlay?(de=document.createElement("input"),de.type="checkbox",de.className="leaflet-control-layers-selector",de.defaultChecked=ie):de=this._createRadioElement("leaflet-base-layers_"+z(this),ie),this._layerControlInputs.push(de),de.layerId=z(b.layer),Gn(de,"click",this._onInputClick,this);var pe=document.createElement("span");pe.innerHTML=" "+b.name;var Ee=document.createElement("span");W.appendChild(Ee),Ee.appendChild(de),Ee.appendChild(pe);var Qe=b.overlay?this._overlaysList:this._baseLayersList;return Qe.appendChild(W),this._checkDisabledLayers(),W},_onInputClick:function(){if(!this._preventClick){var b=this._layerControlInputs,W,ie,de=[],pe=[];this._handlingClick=!0;for(var Ee=b.length-1;Ee>=0;Ee--)W=b[Ee],ie=this._getLayer(W.layerId).layer,W.checked?de.push(ie):W.checked||pe.push(ie);for(Ee=0;Ee<pe.length;Ee++)this._map.hasLayer(pe[Ee])&&this._map.removeLayer(pe[Ee]);for(Ee=0;Ee<de.length;Ee++)this._map.hasLayer(de[Ee])||this._map.addLayer(de[Ee]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var b=this._layerControlInputs,W,ie,de=this._map.getZoom(),pe=b.length-1;pe>=0;pe--)W=b[pe],ie=this._getLayer(W.layerId).layer,W.disabled=ie.options.minZoom!==void 0&&de<ie.options.minZoom||ie.options.maxZoom!==void 0&&de>ie.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var b=this._section;this._preventClick=!0,Gn(b,"click",it),this.expand();var W=this;setTimeout(function(){cr(b,"click",it),W._preventClick=!1})}}),fi=function(b,W,ie){return new Ir(b,W,ie)},Na=An.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(b){var W="leaflet-control-zoom",ie=Bn("div",W+" leaflet-bar"),de=this.options;return this._zoomInButton=this._createButton(de.zoomInText,de.zoomInTitle,W+"-in",ie,this._zoomIn),this._zoomOutButton=this._createButton(de.zoomOutText,de.zoomOutTitle,W+"-out",ie,this._zoomOut),this._updateDisabled(),b.on("zoomend zoomlevelschange",this._updateDisabled,this),ie},onRemove:function(b){b.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(b){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(b.shiftKey?3:1))},_zoomOut:function(b){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(b.shiftKey?3:1))},_createButton:function(b,W,ie,de,pe){var Ee=Bn("a",ie,de);return Ee.innerHTML=b,Ee.href="#",Ee.title=W,Ee.setAttribute("role","button"),Ee.setAttribute("aria-label",W),je(Ee),Gn(Ee,"click",kt),Gn(Ee,"click",pe,this),Gn(Ee,"click",this._refocusOnMap,this),Ee},_updateDisabled:function(){var b=this._map,W="leaflet-disabled";Lt(this._zoomInButton,W),Lt(this._zoomOutButton,W),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||b._zoom===b.getMinZoom())&&(We(this._zoomOutButton,W),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||b._zoom===b.getMaxZoom())&&(We(this._zoomInButton,W),this._zoomInButton.setAttribute("aria-disabled","true"))}});qn.mergeOptions({zoomControl:!0}),qn.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Na,this.addControl(this.zoomControl))});var ni=function(b){return new Na(b)},rs=An.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(b){var W="leaflet-control-scale",ie=Bn("div",W),de=this.options;return this._addScales(de,W+"-line",ie),b.on(de.updateWhenIdle?"moveend":"move",this._update,this),b.whenReady(this._update,this),ie},onRemove:function(b){b.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(b,W,ie){b.metric&&(this._mScale=Bn("div",W,ie)),b.imperial&&(this._iScale=Bn("div",W,ie))},_update:function(){var b=this._map,W=b.getSize().y/2,ie=b.distance(b.containerPointToLatLng([0,W]),b.containerPointToLatLng([this.options.maxWidth,W]));this._updateScales(ie)},_updateScales:function(b){this.options.metric&&b&&this._updateMetric(b),this.options.imperial&&b&&this._updateImperial(b)},_updateMetric:function(b){var W=this._getRoundNum(b),ie=W<1e3?W+" m":W/1e3+" km";this._updateScale(this._mScale,ie,W/b)}
1872,_updateImperial:function(b){var W=b*3.2808399,ie,de,pe;W>5280?(ie=W/5280,de=this._getRoundNum(ie),this._updateScale(this._iScale,de+" mi",de/ie)):(pe=this._getRoundNum(W),this._updateScale(this._iScale,pe+" ft",pe/W))},_updateScale:function(b,W,ie){b.style.width=Math.round(this.options.maxWidth*ie)+"px",b.innerHTML=W},_getRoundNum:function(b){var W=Math.pow(10,(Math.floor(b)+"").length-1),ie=b/W;return ie=ie>=10?10:ie>=5?5:ie>=3?3:ie>=2?2:1,W*ie}}),js=function(b){return new rs(b)},Gs='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',Ra=An.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(gn.inlineSvg?Gs+" ":"")+"Leaflet</a>"},initialize:function(b){R(this,b),this._attributions={}},onAdd:function(b){b.attributionControl=this,this._container=Bn("div","leaflet-control-attribution"),je(this._container);for(var W in b._layers)b._layers[W].getAttribution&&this.addAttribution(b._layers[W].getAttribution());return this._update(),b.on("layeradd",this._addAttribution,this),this._container},onRemove:function(b){b.off("layeradd",this._addAttribution,this)},_addAttribution:function(b){b.layer.getAttribution&&(this.addAttribution(b.layer.getAttribution()),b.layer.once("remove",function(){this.removeAttribution(b.layer.getAttribution())},this))},setPrefix:function(b){return this.options.prefix=b,this._update(),this},addAttribution:function(b){return b?(this._attributions[b]||(this._attributions[b]=0),this._attributions[b]++,this._update(),this):this},removeAttribution:function(b){return b?(this._attributions[b]&&(this._attributions[b]--,this._update()),this):this},_update:function(){if(this._map){var b=[];for(var W in this._attributions)this._attributions[W]&&b.push(W);var ie=[];this.options.prefix&&ie.push(this.options.prefix),b.length&&ie.push(b.join(", ")),this._container.innerHTML=ie.join(' <span aria-hidden="true">|</span> ')}}});qn.mergeOptions({attributionControl:!0}),qn.addInitHook(function(){this.options.attributionControl&&new Ra().addTo(this)});var qs=function(b){return new Ra(b)};An.Layers=Ir,An.Zoom=Na,An.Scale=rs,An.Attribution=Ra,dr.layers=fi,dr.zoom=ni,dr.scale=js,dr.attribution=qs;var ai=Pe.extend({initialize:function(b){this._map=b},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});ai.addTo=function(b,W){return b.addHandler(W,this),this};var Wr={Events:me},Us=gn.touch?"touchstart mousedown":"mousedown",Ar=we.extend({options:{clickTolerance:3},initialize:function(b,W,ie,de){R(this,de),this._element=b,this._dragStartTarget=W||b,this._preventOutline=ie},enable:function(){this._enabled||(Gn(this._dragStartTarget,Us,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Ar._dragging===this&&this.finishDrag(!0),cr(this._dragStartTarget,Us,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(b){if(this._enabled&&(this._moved=!1,!ut(this._element,"leaflet-zoom-anim"))){if(b.touches&&b.touches.length!==1){Ar._dragging===this&&this.finishDrag();return}if(!(Ar._dragging||b.shiftKey||b.which!==1&&b.button!==1&&!b.touches)&&(Ar._dragging=this,this._preventOutline&&Kr(this._element),En(),Fn(),!this._moving)){this.fire("down");var W=b.touches?b.touches[0]:b,ie=kr(this._element);this._startPoint=new Se(W.clientX,W.clientY),this._startPos=Pn(this._element),this._parentScale=Fr(ie);var de=b.type==="mousedown";Gn(document,de?"mousemove":"touchmove",this._onMove,this),Gn(document,de?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(b){if(this._enabled){if(b.touches&&b.touches.length>1){this._moved=!0;return}var W=b.touches&&b.touches.length===1?b.touches[0]:b,ie=new Se(W.clientX,W.clientY)._subtract(this._startPoint);!ie.x&&!ie.y||Math.abs(ie.x)+Math.abs(ie.y)<this.options.clickTolerance||(ie.x/=this._parentScale.x,ie.y/=this._parentScale.y,it(b),this._moved||(this.fire("dragstart"),this._moved=!0,We(document.body,"leaflet-dragging"),this._lastTarget=b.target||b.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),We(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(ie),this._moving=!0,this._lastEvent=b,this._updatePosition())}},_updatePosition:function(){var b={originalEvent:this._lastEvent};this.fire("predrag",b),yn(this._element,this._newPos),this.fire("drag",b)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(b){Lt(document.body,"leaflet-dragging"),this._lastTarget&&(Lt(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),cr(document,"mousemove touchmove",this._onMove,this),cr(document,"mouseup touchend touchcancel",this._onUp,this),On(),zn();var W=this._moved&&this._moving;this._moving=!1,Ar._dragging=!1,W&&this.fire("dragend",{noInertia:b,distance:this._newPos.distanceTo(this._startPos)})}});function ks(b,W,ie){var de,pe=[1,4,2,8],Ee,Qe,jt,Zt,un,kn,jn,Qn;for(Ee=0,kn=b.length;Ee<kn;Ee++)b[Ee]._code=Mi(b[Ee],W);for(jt=0;jt<4;jt++){for(jn=pe[jt],de=[],Ee=0,kn=b.length,Qe=kn-1;Ee<kn;Qe=Ee++)Zt=b[Ee],un=b[Qe],Zt._code&jn?un._code&jn||(Qn=os(un,Zt,jn,W,ie),Qn._code=Mi(Qn,W),de.push(Qn)):(un._code&jn&&(Qn=os(un,Zt,jn,W,ie),Qn._code=Mi(Qn,W),de.push(Qn)),de.push(Zt));b=de}return b}function Ss(b,W){var ie,de,pe,Ee,Qe,jt,Zt,un,kn;if(!b||b.length===0)throw new Error("latlngs not passed");Gr(b)||(console.warn("latlngs are not flat! Only the first ring will be used"),b=b[0]);var jn=Te([0,0]),Qn=Ge(b),Ur=Qn.getNorthWest().distanceTo(Qn.getSouthWest
1872())*Qn.getNorthEast().distanceTo(Qn.getNorthWest());Ur<1700&&(jn=hi(b));var Sr=b.length,Zr=[];for(ie=0;ie<Sr;ie++){var Br=Te(b[ie]);Zr.push(W.project(Te([Br.lat-jn.lat,Br.lng-jn.lng])))}for(jt=Zt=un=0,ie=0,de=Sr-1;ie<Sr;de=ie++)pe=Zr[ie],Ee=Zr[de],Qe=pe.y*Ee.x-Ee.y*pe.x,Zt+=(pe.x+Ee.x)*Qe,un+=(pe.y+Ee.y)*Qe,jt+=Qe*3;jt===0?kn=Zr[0]:kn=[Zt/jt,un/jt];var qi=W.unproject(ke(kn));return Te([qi.lat+jn.lat,qi.lng+jn.lng])}function hi(b){for(var W=0,ie=0,de=0,pe=0;pe<b.length;pe++){var Ee=Te(b[pe]);W+=Ee.lat,ie+=Ee.lng,de++}return Te([W/de,ie/de])}var $a={__proto__:null,clipPolygon:ks,polygonCenter:Ss,centroid:hi};function as(b,W){if(!W||!b.length)return b.slice();var ie=W*W;return b=ss(b,ie),b=Es(b,ie),b}function br(b,W,ie){return Math.sqrt(Xr(b,W,ie,!0))}function Ti(b,W,ie){return Xr(b,W,ie)}function Es(b,W){var ie=b.length,de=typeof Uint8Array<"u"?Uint8Array:Array,pe=new de(ie);pe[0]=pe[ie-1]=1,As(b,pe,W,0,ie-1);var Ee,Qe=[];for(Ee=0;Ee<ie;Ee++)pe[Ee]&&Qe.push(b[Ee]);return Qe}function As(b,W,ie,de,pe){var Ee=0,Qe,jt,Zt;for(jt=de+1;jt<=pe-1;jt++)Zt=Xr(b[jt],b[de],b[pe],!0),Zt>Ee&&(Qe=jt,Ee=Zt);Ee>ie&&(W[Qe]=1,As(b,W,ie,de,Qe),As(b,W,ie,Qe,pe))}function ss(b,W){for(var ie=[b[0]],de=1,pe=0,Ee=b.length;de<Ee;de++)Ni(b[de],b[pe])>W&&(ie.push(b[de]),pe=de);return pe<Ee-1&&ie.push(b[Ee-1]),ie}var Vs;function Hs(b,W,ie,de,pe){var Ee=de?Vs:Mi(b,ie),Qe=Mi(W,ie),jt,Zt,un;for(Vs=Qe;;){if(!(Ee|Qe))return[b,W];if(Ee&Qe)return!1;jt=Ee||Qe,Zt=os(b,W,jt,ie,pe),un=Mi(Zt,ie),jt===Ee?(b=Zt,Ee=un):(W=Zt,Qe=un)}}function os(b,W,ie,de,pe){var Ee=W.x-b.x,Qe=W.y-b.y,jt=de.min,Zt=de.max,un,kn;return ie&8?(un=b.x+Ee*(Zt.y-b.y)/Qe,kn=Zt.y):ie&4?(un=b.x+Ee*(jt.y-b.y)/Qe,kn=jt.y):ie&2?(un=Zt.x,kn=b.y+Qe*(Zt.x-b.x)/Ee):ie&1&&(un=jt.x,kn=b.y+Qe*(jt.x-b.x)/Ee),new Se(un,kn,pe)}function Mi(b,W){var ie=0;return b.x<W.min.x?ie|=1:b.x>W.max.x&&(ie|=2),b.y<W.min.y?ie|=4:b.y>W.max.y&&(ie|=8),ie}function Ni(b,W){var ie=W.x-b.x,de=W.y-b.y;return ie*ie+de*de}function Xr(b,W,ie,de){var pe=W.x,Ee=W.y,Qe=ie.x-pe,jt=ie.y-Ee,Zt=Qe*Qe+jt*jt,un;return Zt>0&&(un=((b.x-pe)*Qe+(b.y-Ee)*jt)/Zt,un>1?(pe=ie.x,Ee=ie.y):un>0&&(pe+=Qe*un,Ee+=jt*un)),Qe=b.x-pe,jt=b.y-Ee,de?Qe*Qe+jt*jt:new Se(pe,Ee)}function Gr(b){return!re(b[0])||typeof b[0][0]!="object"&&typeof b[0][0]<"u"}function Zi(b){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Gr(b)}function Yi(b,W){var ie,de,pe,Ee,Qe,jt,Zt,un;if(!b||b.length===0)throw new Error("latlngs not passed");Gr(b)||(console.warn("latlngs are not flat! Only the first ring will be used"),b=b[0]);var kn=Te([0,0]),jn=Ge(b),Qn=jn.getNorthWest().distanceTo(jn.getSouthWest
vendor: 4,166 bytes, line 1872
1872())*jn.getNorthEast().distanceTo(jn.getNorthWest());Qn<1700&&(kn=hi(b));var Ur=b.length,Sr=[];for(ie=0;ie<Ur;ie++){var Zr=Te(b[ie]);Sr.push(W.project(Te([Zr.lat-kn.lat,Zr.lng-kn.lng])))}for(ie=0,de=0;ie<Ur-1;ie++)de+=Sr[ie].distanceTo(Sr[ie+1])/2;if(de===0)un=Sr[0];else for(ie=0,Ee=0;ie<Ur-1;ie++)if(Qe=Sr[ie],jt=Sr[ie+1],pe=Qe.distanceTo(jt),Ee+=pe,Ee>de){Zt=(Ee-de)/pe,un=[jt.x-Zt*(jt.x-Qe.x),jt.y-Zt*(jt.y-Qe.y)];break}var Br=W.unproject(ke(un));return Te([Br.lat+kn.lat,Br.lng+kn.lng])}var Ki={__proto__:null,simplify:as,pointToSegmentDistance:br,closestPointOnSegment:Ti,clipSegment:Hs,_getEdgeIntersection:os,_getBitCode:Mi,_sqClosestPointOnSegment:Xr,isFlat:Gr,_flat:Zi,polylineCenter:Yi},Oi={project:function(b){return new Se(b.lng,b.lat)},unproject:function(b){return new Je(b.y,b.x)},bounds:new Ae([-180,-90],[180,90])},Ri={R:6378137,R_MINOR:6356752314245179e-9,bounds:new Ae([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(b){var W=Math.PI/180,ie=this.R,de=b.lat*W,pe=this.R_MINOR/ie,Ee=Math.sqrt(1-pe*pe),Qe=Ee*Math.sin(de),jt=Math.tan(Math.PI/4-de/2)/Math.pow((1-Qe)/(1+Qe),Ee/2);return de=-ie*Math.log(Math.max(jt,1e-10)),new Se(b.lng*W*ie,de)},unproject:function(b){for(var W=180/Math.PI,ie=this.R,de=this.R_MINOR/ie,pe=Math.sqrt(1-de*de),Ee=Math.exp(-b.y/ie),Qe=Math.PI/2-2*Math.atan(Ee),jt=0,Zt=.1,un;jt<15&&Math.abs(Zt)>1e-7;jt++)un=pe*Math.sin(Qe),un=Math.pow((1-un)/(1+un),pe/2),Zt=Math.PI/2-2*Math.atan(Ee*un)-Qe,Qe+=Zt;return new Je(Qe*W,b.x*W/ie)}},ls={__proto__:null,LonLat:Oi,Mercator:Ri,SphericalMercator:ht},Xi=h({},et,{code:"EPSG:3395",projection:Ri,transformation:(function(){var b=.5/(Math.PI*Ri.R);return Ue(b,.5,-b,.5)})()}),$i=h({},et,{code:"EPSG:4326",projection:Oi,transformation:Ue(1/180,1,-1/180,.5)}),us=h({},ve,{projection:Oi,transformation:Ue(1,0,-1,0),scale:function(b){return Math.pow(2,b)},zoom:function(b){return Math.log(b)/Math.LN2},distance:function(b,W){var ie=W.lng-b.lng,de=W.lat-b.lat;return Math.sqrt(ie*ie+de*de)},infinite:!0});ve.Earth=et,ve.EPSG3395=Xi,ve.EPSG3857=ot,ve.EPSG900913=bt,ve.EPSG4326=$i,ve.Simple=us;var qr=we.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(b){return b.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(b){return b&&b.removeLayer(this),this},getPane:function(b){return this._map.getPane(b?this.options[b]||b:this.options.pane)},addInteractiveTarget:function(b){return this._map._targets[z(b)]=this,this},removeInteractiveTarget:function(b){return delete this._map._targets[z(b)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(b){var W=b.target;if(W.hasLayer(this)){if(this._map=W,this._zoomAnimated=W._zoomAnimated,this.getEvents){var ie=this.getEvents();W.on(ie,this),this.once("remove",function(){W.off(ie,this)},this)}this.onAdd(W),this.fire("add"),W.fire("layeradd",{layer:this})}}});qn.include({addLayer:function(b){if(!b._layerAdd)throw new Error("The provided object is not a Layer.");var W=z(b);return this._layers[W]?this:(this._layers[W]=b,b._mapToAdd=this,b.beforeAdd&&b.beforeAdd(this),this.whenReady(b._layerAdd,b),this)},removeLayer:function(b){var W=z(b);return this._layers[W]?(this._loaded&&b.onRemove(this),delete this._layers[W],this._loaded&&(this.fire("layerremove",{layer:b}),b.fire("remove")),b._map=b._mapToAdd=null,this):this},hasLayer:function(b){return z(b)in this._layers},eachLayer:function(b,W){for(var ie in this._layers)b.call(W,this._layers[ie]);return this},_addLayers:function(b){b=b?re(b)?b:[b]:[];for(var W=0,ie=b.length;W<ie;W++)this.addLayer(b[W])},_addZoomLimit:function(b){(!isNaN(b.options.maxZoom)||!isNaN(b.options.minZoom))&&(this._zoomBoundLayers[z(b)]=b,this._updateZoomLevels())},_removeZoomLimit:function(b){var W=z(b);this._zoomBoundLayers[W]&&(delete this._zoomBoundLayers[W],this._updateZoomLevels())},_updateZoomLevels:function(){var b=1/0,W=-1/0,ie=this._getZoomSpan();for(var de in this._zoomBoundLayers){var pe=this._zoomBoundLayers[de].options;b=pe.minZoom===void 0?b:Math.min(b,pe.minZoom),W=pe.maxZoom===void 0?W:Math.max(W,pe.maxZoom)}
1872this._layersMaxZoom=W===-1/0?void 0:W,this._layersMinZoom=b===1/0?void 0:b,ie!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var Pr=qr.extend({initialize:function(b,W){R(this,W),this._layers={};var ie,de;if(b)for(ie=0,de=b.length;ie<de;ie++)this.addLayer(b[ie])},addLayer:function(b){var W=this.getLayerId(b);return this._layers[W]=b,this._map&&this._map.addLayer(b),this},removeLayer:function(b){var W=b in this._layers?b:this.getLayerId(b);return this._map&&this._layers[W]&&this._map.removeLayer(this._layers[W]),delete this._layers[W],this},hasLayer:function(b){var W=typeof b=="number"?b:this.getLayerId(b);return W in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(b){var W=Array.prototype.slice.call(arguments,1),ie,de;for(ie in this._layers)de=this._layers[ie],de[b]&&de[b].apply(de,W);return this},onAdd:function(b){this.eachLayer(b.addLayer,b)},onRemove:function(b){this.eachLayer(b.removeLayer,b)},eachLayer:function(b,W){for(var ie in this._layers)b.call(W,this._layers[ie]);return this},getLayer:function(b){return this._layers[b]},getLayers:function(){var b=[];return this.eachLayer(b.push,b),b},setZIndex:function(b){return this.invoke("setZIndex",b)},getLayerId:function(b){return z(b)}}),Kt=function(b,W){return new Pr(b,W)},gr=Pr.extend({addLayer:function(b){return this.hasLayer(b)?this:(b.addEventParent(this),Pr.prototype.addLayer.call(this,b),this.fire("layeradd",{layer:b}))},removeLayer:function(b){return this.hasLayer(b)?(b in this._layers&&(b=this._layers[b]),b.removeEventParent(this),Pr.prototype.removeLayer.call(this,b),this.fire("layerremove",{layer:b})):this},setStyle:function(b){return this.invoke("setStyle",b)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var b=new qe;
vendor: 12,237 bytes, line 1872
1872for(var W in this._layers){var ie=this._layers[W];b.extend(ie.getBounds?ie.getBounds():ie.getLatLng())}return b}}),Jr=function(b,W){return new gr(b,W)},Qr=Pe.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(b){R(this,b)},createIcon:function(b){return this._createIcon("icon",b)},createShadow:function(b){return this._createIcon("shadow",b)},_createIcon:function(b,W){var ie=this._getIconUrl(b);if(!ie){if(b==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var de=this._createImg(ie,W&&W.tagName==="IMG"?W:null);return this._setIconStyles(de,b),(this.options.crossOrigin||this.options.crossOrigin==="")&&(de.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),de},_setIconStyles:function(b,W){var ie=this.options,de=ie[W+"Size"];typeof de=="number"&&(de=[de,de]);var pe=ke(de),Ee=ke(W==="shadow"&&ie.shadowAnchor||ie.iconAnchor||pe&&pe.divideBy(2,!0));b.className="leaflet-marker-"+W+" "+(ie.className||""),Ee&&(b.style.marginLeft=-Ee.x+"px",b.style.marginTop=-Ee.y+"px"),pe&&(b.style.width=pe.x+"px",b.style.height=pe.y+"px")},_createImg:function(b,W){return W=W||document.createElement("img"),W.src=b,W},_getIconUrl:function(b){return gn.retina&&this.options[b+"RetinaUrl"]||this.options[b+"Url"]}});function Ci(b){return new Qr(b)}var si=Qr.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(b){return typeof si.imagePath!="string"&&(si.imagePath=this._detectIconPath()),(this.options.imagePath||si.imagePath)+Qr.prototype._getIconUrl.call(this,b)},_stripUrl:function(b){var W=function(ie,de,pe){var Ee=de.exec(ie);return Ee&&Ee[pe]};return b=W(b,/^url\((['"])?(.+)\1\)$/,2),b&&W(b,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var b=Bn("div","leaflet-default-icon-path",document.body),W=di(b,"background-image")||di(b,"backgroundImage");if(document.body.removeChild(b),W=this._stripUrl(W),W)return W;var ie=document.querySelector('link[href$="leaflet.css"]');return ie?ie.href.substring(0,ie.href.length-11-1):""}}),Ji=ai.extend({initialize:function(b){this._marker=b},addHooks:function(){var b=this._marker._icon;this._draggable||(this._draggable=new Ar(b,b,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),We(b,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&Lt(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(b){var W=this._marker,ie=W._map,de=this._marker.options.autoPanSpeed,pe=this._marker.options.autoPanPadding,Ee=Pn(W._icon),Qe=ie.getPixelBounds(),jt=ie.getPixelOrigin(),Zt=Ie(Qe.min._subtract(jt).add(pe),Qe.max._subtract(jt).subtract(pe));if(!Zt.contains(Ee)){var un=ke((Math.max(Zt.max.x,Ee.x)-Zt.max.x)/(Qe.max.x-Zt.max.x)-(Math.min(Zt.min.x,Ee.x)-Zt.min.x)/(Qe.min.x-Zt.min.x),(Math.max(Zt.max.y,Ee.y)-Zt.max.y)/(Qe.max.y-Zt.max.y)-(Math.min(Zt.min.y,Ee.y)-Zt.min.y)/(Qe.min.y-Zt.min.y)).multiplyBy(de);ie.panBy(un,{animate:!1}),this._draggable._newPos._add(un),this._draggable._startPos._add(un),yn(W._icon,this._draggable._newPos),this._onDrag(b),this._panRequest=ge(this._adjustPan.bind(this,b))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(b){this._marker.options.autoPan&&(Oe(this._panRequest),this._panRequest=ge(this._adjustPan.bind(this,b)))},_onDrag:function(b){var W=this._marker,ie=W._shadow,de=Pn(W._icon),pe=W._map.layerPointToLatLng(de);ie&&yn(ie,de),W._latlng=pe,b.latlng=pe,b.oldLatLng=this._oldLatLng,W.fire("move",b).fire("drag",b)},_onDragEnd:function(b){Oe(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",b)}}),cs=qr.extend({options:{icon:new si,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(b,W){R(this,W),this._latlng=Te(b)},onAdd:function(b){this._zoomAnimated=this._zoomAnimated&&b.options.markerZoomAnimation,this._zoomAnimated&&b.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(b){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&b.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(b){var W=this._latlng;return this._latlng=Te(b),this.update(),this.fire("move",{oldLatLng:W,latlng:this._latlng})},setZIndexOffset:function(b){return this.options.zIndexOffset=b,this.update()},getIcon:function(){return this.options.icon},setIcon:function(b){return this.options.icon=b,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var b=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(b)}return this},_initIcon:function(){var b=this.options,W="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),ie=b.icon.createIcon(this._icon),de=!1;ie!==this._icon&&(this._icon&&this._removeIcon(),de=!0,b.title&&(ie.title=b.title),ie.tagName==="IMG"&&(ie.alt=b.alt||"")),We(ie,W),b.keyboard&&(ie.tabIndex="0",ie.setAttribute("role","button")),this._icon=ie,b.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Gn(ie,"focus",this._panOnFocus,this);var pe=b.icon.createShadow(this._shadow),Ee=!1;pe!==this._shadow&&(this._removeShadow(),Ee=!0),pe&&(We(pe,W),pe.alt=""),this._shadow=pe,b.opacity<1&&this._updateOpacity(),de&&this.getPane().appendChild(this._icon),this._initInteraction(),pe&&Ee&&this.getPane(b.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&cr(this._icon,"focus",this._panOnFocus,this),Ce(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&Ce(this._shadow),this._shadow=null},_setPos:function(b){this._icon&&yn(this._icon,b),this._shadow&&yn(this._shadow,b),this._zIndex=b.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(b){this._icon&&(this._icon.style.zIndex=this._zIndex+b)},_animateZoom:function(b){var W=this._map._latLngToNewLayerPoint(this._latlng,b.zoom,b.center).round();this._setPos(W)},_initInteraction:function(){if(this.options.interactive&&(We(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Ji)){var b=this.options.draggable;this.dragging&&(b=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Ji(this),b&&this.dragging.enable()}},setOpacity:function(b){return this.options.opacity=b,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var b=this.options.opacity;this._icon&&Xt(this._icon,b),this._shadow&&Xt(this._shadow,b)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var b=this._map;if(b){var W=this.options.icon.options,ie=W.iconSize?ke(W.iconSize):ke(0,0),de=W.iconAnchor?ke(W.iconAnchor):ke(0,0);b.panInside(this._latlng,{paddingTopLeft:de,paddingBottomRight:ie.subtract(de)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function lo(b,W){return new cs(b,W)}var ei=qr.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(b){this._renderer=b.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(b){return R(this,b),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&b&&Object.prototype.hasOwnProperty.call(b,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),ds=ei.extend({options:{fill:!0,radius:10},initialize:function(b,W){R(this,W),this._latlng=Te(b),this._radius=this.options.radius},setLatLng:function(b){var W=this._latlng;return this._latlng=Te(b),this.redraw(),this.fire("move",{oldLatLng:W,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(b){return this.options.radius=this._radius=b,this.redraw()},getRadius:function(){return this._radius},setStyle:function(b){var W=b&&b.radius||this._radius;return ei.prototype.setStyle.call(this,b),this.setRadius(W),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var b=this._radius,W=this._radiusY||b,ie=this._clickTolerance(),de=[b+ie,W+ie];this._pxBounds=new Ae(this._point.subtract(de),this._point.add(de))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(b){return b.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function uo(b,W){return new ds(b,W)}var Ua=ds.extend({initialize:function(b,W,ie){if(typeof W=="number"&&(W=h({},ie,{radius:W})),R(this,W),this._latlng=Te(b),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(b){return this._mRadius=b,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var b=[this._radius,this._radiusY||this._radius];return new qe(this._map.layerPointToLatLng(this._point.subtract(b)),this._map.layerPointToLatLng(this._point.add(b)))},setStyle:ei.prototype.setStyle,_project:function(){var b=this._latlng.lng,W=this._latlng.lat,ie=this._map,de=ie.options.crs;if(de.distance===et.distance){var pe=Math.PI/180,Ee=this._mRadius/et.R/pe,Qe=ie.project([W+Ee,b]),jt=ie.project([W-Ee,b]),Zt=Qe.add(jt).divideBy(2),un=ie.unproject(Zt).lat,kn=Math.acos((Math.cos(Ee*pe)-Math.sin(W*pe)*Math.sin(un*pe))/(Math.cos(W*pe)*Math.cos(un*pe)))/pe;(isNaN(kn)||kn===0)&&(kn=Ee/Math.cos(Math.PI/180*W)),this._point=Zt.subtract(ie.getPixelOrigin()),this._radius=isNaN(kn)?0:Zt.x-ie.project([un,b-kn]).x,this._radiusY=Zt.y-Qe.y}else{var jn=de.unproject(de.project(this._latlng).subtract([this._mRadius,0]));this._point=ie.latLngToLayerPoint(this._latlng),this._radius=this._point.x-ie.latLngToLayerPoint(jn).x}this._updateBounds()}});function Ws(b,W,ie){return new Ua(b,W,ie)}var $r=ei.extend({options:{smoothFactor:1,noClip:!1},initialize:function(b,W){R(this,W),this._setLatLngs(b)},getLatLngs:function(){return this._latlngs},setLatLngs:function(b){return this._setLatLngs(b),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(b){for(var W=1/0,ie=null,de=Xr,pe,Ee,Qe=0,jt=this._parts.length;Qe<jt;Qe++)for(var Zt=this._parts[Qe],un=1,kn=Zt.length;un<kn;un++){pe=Zt[un-1],Ee=Zt[un];var jn=de(b,pe,Ee,!0);jn<W&&(W=jn,ie=de(b,pe,Ee))}return ie&&(ie.distance=Math.sqrt(W)),ie}
1872,getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Yi(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(b,W){return W=W||this._defaultShape(),b=Te(b),W.push(b),this._bounds.extend(b),this.redraw()},_setLatLngs:function(b){this._bounds=new qe,this._latlngs=this._convertLatLngs(b)},_defaultShape:function(){return Gr(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(b){for(var W=[],ie=Gr(b),de=0,pe=b.length;de<pe;de++)ie?(W[de]=Te(b[de]),this._bounds.extend(W[de])):W[de]=this._convertLatLngs(b[de]);return W},_project:function(){var b=new Ae;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,b),this._bounds.isValid()&&b.isValid()&&(this._rawPxBounds=b,this._updateBounds())},_updateBounds:function(){var b=this._clickTolerance(),W=new Se(b,b);this._rawPxBounds&&(this._pxBounds=new Ae([this._rawPxBounds.min.subtract(W),this._rawPxBounds.max.add(W)]))},_projectLatlngs:function(b,W,ie){var de=b[0]instanceof Je,pe=b.length,Ee,Qe;if(de){for(Qe=[],Ee=0;Ee<pe;Ee++)Qe[Ee]=this._map.latLngToLayerPoint(b[Ee]),ie.extend(Qe[Ee]);W.push(Qe)}else for(Ee=0;Ee<pe;Ee++)this._projectLatlngs(b[Ee],W,ie)},_clipPoints:function(){var b=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(b))){if(this.options.noClip){this._parts=this._rings;return}var W=this._parts,ie,de,pe,Ee,Qe,jt,Zt;for(ie=0,pe=0,Ee=this._rings.length;ie<Ee;ie++)for(Zt=this._rings[ie],de=0,Qe=Zt.length;de<Qe-1;de++)jt=Hs(Zt[de],Zt[de+1],b,de,!0),jt&&(W[pe]=W[pe]||[],W[pe].push(jt[0]),(jt[1]!==Zt[de+1]||de===Qe-2)&&(W[pe].push(jt[1]),pe++))}},_simplifyPoints:function(){for(var b=this._parts,W=this.options.smoothFactor,ie=0,de=b.length;ie<de;ie++)b[ie]=as(b[ie],W)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(b,W){var ie,de,pe,Ee,Qe,jt,Zt=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(b))return!1;for(ie=0,Ee=this._parts.length;ie<Ee;ie++)for(jt=this._parts[ie],de=0,Qe=jt.length,pe=Qe-1;de<Qe;pe=de++)if(!(!W&&de===0)&&br(b,jt[pe],jt[de])<=Zt)return!0;return!1}});function fs(b,W){return new $r(b,W)}$r._flat=Zi;var Qi=$r.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length}
1872,getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Ss(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(b){var W=$r.prototype._convertLatLngs.call(this,b),ie=W.length;return ie>=2&&W[0]instanceof Je&&W[0].equals(W[ie-1])&&W.pop(),W},_setLatLngs:function(b){$r.prototype._setLatLngs.call(this,b),Gr(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Gr(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var b=this._renderer._bounds,W=this.options.weight,ie=new Se(W,W);if(b=new Ae(b.min.subtract(ie),b.max.add(ie)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(b))){if(this.options.noClip){this._parts=this._rings;return}for(var de=0,pe=this._rings.length,Ee;de<pe;de++)Ee=ks(this._rings[de],b,!0),Ee.length&&this._parts.push(Ee)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(b){var W=!1,ie,de,pe,Ee,Qe,jt,Zt,un;if(!this._pxBounds||!this._pxBounds.contains(b))return!1;for(Ee=0,Zt=this._parts.length;Ee<Zt;Ee++)for(ie=this._parts[Ee],Qe=0,un=ie.length,jt=un-1;Qe<un;jt=Qe++)de=ie[Qe],pe=ie[jt],de.y>b.y!=pe.y>b.y&&b.x<(pe.x-de.x)*(b.y-de.y)/(pe.y-de.y)+de.x&&(W=!W);return W||$r.prototype._containsPoint.call(this,b,!0)}});function Jo(b,W){return new Qi(b,W)}var Bi=gr.extend({initialize:function(b,W){R(this,W),this._layers={},b&&this.addData(b)},addData:function(b){var W=re(b)?b:b.features,ie,de,pe;if(W){for(ie=0,de=W.length;ie<de;ie++)pe=W[ie],(pe.geometries||pe.geometry||pe.features||pe.coordinates)&&this.addData(pe);return this}var Ee=this.options;if(Ee.filter&&!Ee.filter(b))return this;var Qe=ji(b,Ee);return Qe?(Qe.feature=Xs(b),Qe.defaultOptions=Qe.options,this.resetStyle(Qe),Ee.onEachFeature&&Ee.onEachFeature(b,Qe),this.addLayer(Qe)):this},resetStyle:function(b){return b===void 0?this.eachLayer(this.resetStyle,this):(b.options=h({},b.defaultOptions),this._setLayerStyle(b,this.options.style),this)},setStyle:function(b){return this.eachLayer(function(W){this._setLayerStyle(W,b)},this)},_setLayerStyle:function(b,W){b.setStyle&&(typeof W=="function"&&(W=W(b.feature)),b.setStyle(W))}});function ji(b,W){var ie=b.type==="Feature"?b.geometry:b,de=ie?ie.coordinates:null,pe=[],Ee=W&&W.pointToLayer,Qe=W&&W.coordsToLatLng||Zs,jt,Zt,un,kn;if(!de&&!ie)return null;switch(ie.type){case"Point":return jt=Qe(de),pi(Ee,b,jt,W);case"MultiPoint":for(un=0,kn=de.length;un<kn;un++)jt=Qe(de[un]),pe.push(pi(Ee,b,jt,W));return new gr(pe);case"LineString":case"MultiLineString":return Zt=Ys(de,ie.type==="LineString"?0:1,Qe),new $r(Zt,W);case"Polygon":case"MultiPolygon":return Zt=Ys(de,ie.type==="Polygon"?1:2,Qe),new Qi(Zt,W);case"GeometryCollection":for(un=0,kn=ie.geometries.length;un<kn;un++){var jn=ji({geometry:ie.geometries[un],type:"Feature",properties:b.properties},W);jn&&pe.push(jn)}return new gr(pe);case"FeatureCollection":for(un=0,kn=ie.features.length;un<kn;un++){var Qn=ji(ie.features[un],W);Qn&&pe.push(Qn)}return new gr(pe);default:throw new Error("Invalid GeoJSON object.")}}function pi(b,W,ie,de){return b?b(W,ie):new cs(ie,de&&de.markersInheritOptions&&de)}function Zs(b){return new Je(b[1],b[0],b[2])}function Ys(b,W,ie){for(var de=[],pe=0,Ee=b.length,Qe;pe<Ee;pe++)Qe=W?Ys(b[pe],W-1,ie):(ie||Zs)(b[pe]),de.push(Qe);return de}function co(b,W){return b=Te(b),b.alt!==void 0?[e(b.lng,W),e(b.lat,W),e(b.alt,W)]:[e(b.lng,W),e(b.lat,W)]}function Ks(b,W,ie,de){for(var pe=[],Ee=0,Qe=b.length;Ee<Qe;Ee++)pe.push(W?Ks(b[Ee],Gr(b[Ee])?0:W-1,ie,de):co(b[Ee],de));return!W&&ie&&pe.length>0&&pe.push(pe[0].slice()),pe}function hs(b,W){return b.feature?h({},b.feature,{geometry:W}):Xs(W)}function Xs(b){return b.type==="Feature"||b.type==="FeatureCollection"?b:{type:"Feature",properties:{},geometry:b}}var ga={toGeoJSON:function(b){return hs(this,{type:"Point",coordinates:co(this.getLatLng(),b)})}};cs.include(ga),Ua.include(ga),ds.include(ga),$r.include({toGeoJSON:function(b){var W=!Gr(this._latlngs),ie=Ks(this._latlngs,W?1:0,!1,b);return hs(this,{type:(W?"Multi":"")+"LineString",coordinates:ie})}}),Qi.include({toGeoJSON:function(b){var W=!Gr(this._latlngs),ie=W&&!Gr(this._latlngs[0]),de=Ks(this._latlngs,ie?2:W?1:0,!0,b);return W||(de=[de]),hs(this,{type:(ie?"Multi":"")+"Polygon",coordinates:de})}}),Pr.include({toMultiPoint:function(b){var W=[];return this.eachLayer(function(ie){W.push(ie.toGeoJSON(b).geometry.coordinates)}),hs(this,{type:"MultiPoint",coordinates:W})},toGeoJSON:function(b){var W=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(W==="MultiPoint")return this.toMultiPoint(b);var ie=W==="GeometryCollection",de=[];return this.eachLayer(function(pe){if(pe.toGeoJSON){var Ee=pe.toGeoJSON(b);if(ie)de.push(Ee.geometry);else{var Qe=Xs(Ee);Qe.type==="FeatureCollection"?de.push.apply(de,Qe.features):de.pu
vendor: 33,617 bytes, line 1872
1872sh(Qe)}}}),ie?hs(this,{geometries:de,type:"GeometryCollection"}):{type:"FeatureCollection",features:de}}});function It(b,W){return new Bi(b,W)}var Qt=It,Ht=qr.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(b,W,ie){this._url=b,this._bounds=Ge(W),R(this,ie)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(We(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Ce(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(b){return this.options.opacity=b,this._image&&this._updateOpacity(),this},setStyle:function(b){return b.opacity&&this.setOpacity(b.opacity),this},bringToFront:function(){return this._map&&Me(this._image),this},bringToBack:function(){return this._map&&rt(this._image),this},setUrl:function(b){return this._url=b,this._image&&(this._image.src=b),this},setBounds:function(b){return this._bounds=Ge(b),this._map&&this._reset(),this},getEvents:function(){var b={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(b.zoomanim=this._animateZoom),b},setZIndex:function(b){return this.options.zIndex=b,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var b=this._url.tagName==="IMG",W=this._image=b?this._url:Bn("img");if(We(W,"leaflet-image-layer"),this._zoomAnimated&&We(W,"leaflet-zoom-animated"),this.options.className&&We(W,this.options.className),W.onselectstart=s,W.onmousemove=s,W.onload=p(this.fire,this,"load"),W.onerror=p(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(W.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),b){this._url=W.src;return}W.src=this._url,W.alt=this.options.alt},_animateZoom:function(b){var W=this._map.getZoomScale(b.zoom),ie=this._map._latLngBoundsToNewLayerBounds(this._bounds,b.zoom,b.center).min;wn(this._image,ie,W)},_reset:function(){var b=this._image,W=new Ae(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),ie=W.getSize();yn(b,W.min),b.style.width=ie.x+"px",b.style.height=ie.y+"px"},_updateOpacity:function(){Xt(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var b=this.options.errorOverlayUrl;b&&this._url!==b&&(this._url=b,this._image.src=b)},getCenter:function(){return this._bounds.getCenter()}}),Sn=function(b,W,ie){return new Ht(b,W,ie)},Zn=Ht.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var b=this._url.tagName==="VIDEO",W=this._image=b?this._url:Bn("video");if(We(W,"leaflet-image-layer"),this._zoomAnimated&&We(W,"leaflet-zoom-animated"),this.options.className&&We(W,this.options.className),W.onselectstart=s,W.onmousemove=s,W.onloadeddata=p(this.fire,this,"load"),b){for(var ie=W.getElementsByTagName("source"),de=[],pe=0;pe<ie.length;pe++)de.push(ie[pe].src);this._url=ie.length>0?de:[W.src];return}re(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(W.style,"objectFit")&&(W.style.objectFit="fill"),W.autoplay=!!this.options.autoplay,W.loop=!!this.options.loop,W.muted=!!this.options.muted,W.playsInline=!!this.options.playsInline;for(var Ee=0;Ee<this._url.length;Ee++){var Qe=Bn("source");Qe.src=this._url[Ee],W.appendChild(Qe)}}});function _r(b,W,ie){return new Zn(b,W,ie)}var Dr=Ht.extend({_initImage:function(){var b=this._image=this._url;We(b,"leaflet-image-layer"),this._zoomAnimated&&We(b,"leaflet-zoom-animated"),this.options.className&&We(b,this.options.className),b.onselectstart=s,b.onmousemove=s}});function yr(b,W,ie){return new Dr(b,W,ie)}var _i=qr.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(b,W){b&&(b instanceof Je||re(b))?(this._latlng=Te(b),R(this,W)):(R(this,b),this._source=W),this.options.content&&(this._content=this.options.content)},openOn:function(b){return b=arguments.length?b:this._source._map,b.hasLayer(this)||b.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(b){return this._map?this.close():(arguments.length?this._source=b:b=this._source,this._prepareOpen(),this.openOn(b._map)),this},onAdd:function(b){this._zoomAnimated=b._zoomAnimated,this._container||this._initLayout(),b._fadeAnimated&&Xt(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),b._fadeAnimated&&Xt(this._container,1),this.bringToFront(),this.options.interactive&&(We(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(b){b._fadeAnimated?(Xt(this._container,0),this._removeTimeout=setTimeout(p(Ce,void 0,this._container),200)):Ce(this._container),this.options.interactive&&(Lt(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(b){return this._latlng=Te(b),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(b){return this._content=b,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var b={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(b.zoomanim=this._animateZoom),b},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&Me(this._container),this},bringToBack:function(){return this._map&&rt(this._container),this},_prepareOpen:function(b){var W=this._source;if(!W._map)return!1;if(W instanceof gr){W=null;var ie=this._source._layers;for(var de in ie)if(ie[de]._map){W=ie[de];break}if(!W)return!1;this._source=W}if(!b)if(W.getCenter)b=W.getCenter();else if(W.getLatLng)b=W.getLatLng();else if(W.getBounds)b=W.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(b),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var b=this._contentNode,W=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof W=="string")b.innerHTML=W;else{for(;b.hasChildNodes();)b.removeChild(b.firstChild);b.appendChild(W)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var b=this._map.latLngToLayerPoint(this._latlng),W=ke(this.options.offset),ie=this._getAnchor();this._zoomAnimated?yn(this._container,b.add(ie)):W=W.add(b).add(ie);var de=this._containerBottom=-W.y,pe=this._containerLeft=-Math.round(this._containerWidth/2)+W.x;this._container.style.bottom=de+"px",this._container.style.left=pe+"px"}},_getAnchor:function(){return[0,0]}});qn.include({_initOverlay:function(b,W,ie,de){var pe=W;return pe instanceof b||(pe=new b(de).setContent(W)),ie&&pe.setLatLng(ie),pe}}),qr.include({_initOverlay:function(b,W,ie,de){var pe=ie;return pe instanceof b?(R(pe,de),pe._source=this):(pe=W&&!de?W:new b(de,this),pe.setContent(ie)),pe}});var Js=_i.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(b){return b=arguments.length?b:this._source._map,!b.hasLayer(this)&&b._popup&&b._popup.options.autoClose&&b.removeLayer(b._popup),b._popup=this,_i.prototype.openOn.call(this,b)},onAdd:function(b){_i.prototype.onAdd.call(this,b),b.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof ei||this._source.on("preclick",_e))},onRemove:function(b){_i.prototype.onRemove.call(this,b),b.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof ei||this._source.off("preclick",_e))},getEvents:function(){var b=_i.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(b.preclick=this.close),this.options.keepInView&&(b.moveend=this._adjustPan),b},_initLayout:function(){var b="leaflet-popup",W=this._container=Bn("div",b+" "+(this.options.className||"")+" leaflet-zoom-animated"),ie=this._wrapper=Bn("div",b+"-content-wrapper",W);if(this._contentNode=Bn("div",b+"-content",ie),je(W),Fe(this._contentNode),Gn(W,"contextmenu",_e),this._tipContainer=Bn("div",b+"-tip-container",W),this._tip=Bn("div",b+"-tip",this._tipContainer),this.options.closeButton){var de=this._closeButton=Bn("a",b+"-close-button",W);de.setAttribute("role","button"),de.setAttribute("aria-label","Close popup"),de.href="#close",de.innerHTML='<span aria-hidden="true">&#215;</span>',Gn(de,"click",function(pe){it(pe),this.close()},this)}},_updateLayout:function(){var b=this._contentNode,W=b.style;W.width="",W.whiteSpace="nowrap";var ie=b.offsetWidth;ie=Math.min(ie,this.options.maxWidth),ie=Math.max(ie,this.options.minWidth),W.width=ie+1+"px",W.whiteSpace="",W.height="";var de=b.offsetHeight,pe=this.options.maxHeight,Ee="leaflet-popup-scrolled";pe&&de>pe?(W.height=pe+"px",We(b,Ee)):Lt(b,Ee),this._containerWidth=this._container.offsetWidth},_animateZoom:function(b){var W=this._map._latLngToNewLayerPoint(this._latlng,b.zoom,b.center),ie=this._getAnchor();yn(this._container,W.add(ie))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var b=this._map,W=parseInt(di(this._container,"marginBottom"),10)||0,ie=this._container.offsetHeight+W,de=this._containerWidth,pe=new Se(this._containerLeft,-ie-this._containerBottom);pe._add(Pn(this._container));var Ee=b.layerPointToContainerPoint(pe),Qe=ke(this.options.autoPanPadding),jt=ke(this.options.autoPanPaddingTopLeft||Qe),Zt=ke(this.options.autoPanPaddingBottomRight||Qe),un=b.getSize(),kn=0,jn=0;Ee.x+de+Zt.x>un.x&&(kn=Ee.x+de-un.x+Zt.x),Ee.x-kn-jt.x<0&&(kn=Ee.x-jt.x),Ee.y+ie+Zt.y>un.y&&(jn=Ee.y+ie-un.y+Zt.y),Ee.y-jn-jt.y<0&&(jn=Ee.y-jt.y),(kn||jn)&&(this.options.keepInView&&(this._autopanning=!0),b.fire("autopanstart").panBy([kn,jn]))}},_getAnchor:function(){return ke(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),gi=function(b,W){return new Js(b,W)};qn.mergeOptions({closePopupOnClick:!0}),qn.include({openPopup:function(b,W,ie){return this._initOverlay(Js,b,W,ie).openOn(this),this},closePopup:function(b){return b=arguments.length?b:this._popup,b&&b.close(),this}}),qr.include({bindPopup:function(b,W){return this._popup=this._initOverlay(Js,this._popup,b,W),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(b){return this._popup&&(this instanceof gr||(this._popup._source=this),this._popup._prepareOpen(b||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(b){return this._popup&&this._popup.setContent(b),this},getPopup:function(){return this._popup},_openPopup:function(b){if(!(!this._popup||!this._map)){kt(b);var W=b.layer||b.target;if(this._popup._source===W&&!(W instanceof ei)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(b.latlng);return}this._popup._source=W,this.openPopup(b.latlng)}},_movePopup:function(b){this._popup.setLatLng(b.latlng)},_onKeyPress:function(b){b.originalEvent.keyCode===13&&this._openPopup(b)}});var Va=_i.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(b){_i.prototype.onAdd.call(this,b),this.setOpacity(this.options.opacity),b.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(b){_i.prototype.onRemove.call(this,b),b.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var b=_i.prototype.getEvents.call(this);return this.options.permanent||(b.preclick=this.close),b},_initLayout:function(){var b="leaflet-tooltip",W=b+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=Bn("div",W),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+z(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(b){var W,ie,de=this._map,pe=this._container,Ee=de.latLngToContainerPoint(de.getCenter()),Qe=de.layerPointToContainerPoint(b),jt=this.options.direction,Zt=pe.offsetWidth,un=pe.offsetHeight,kn=ke(this.options.offset),jn=this._getAnchor();jt==="top"?(W=Zt/2,ie=un):jt==="bottom"?(W=Zt/2,ie=0):jt==="center"?(W=Zt/2,ie=un/2):jt==="right"?(W=0,ie=un/2):jt==="left"?(W=Zt,ie=un/2):Qe.x<Ee.x?(jt="right",W=0,ie=un/2):(jt="left",W=Zt+(kn.x+jn.x)*2,ie=un/2),b=b.subtract(ke(W,ie,!0)).add(kn).add(jn),Lt(pe,"leaflet-tooltip-right"),Lt(pe,"leaflet-tooltip-left"),Lt(pe,"leaflet-tooltip-top"),Lt(pe,"leaflet-tooltip-bottom"),We(pe,"leaflet-tooltip-"+jt),yn(pe,b)},_updatePosition:function(){var b=this._map.latLngToLayerPoint(this._latlng);this._setPosition(b)},setOpacity:function(b){this.options.opacity=b,this._container&&Xt(this._container,b)},_animateZoom:function(b){var W=this._map._latLngToNewLayerPoint(this._latlng,b.zoom,b.center);this._setPosition(W)},_getAnchor:function(){return ke(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Qo=function(b,W){return new Va(b,W)};qn.include({openTooltip:function(b,W,ie){return this._initOverlay(Va,b,W,ie).openOn(this),this},closeTooltip:function(b){return b.close(),this}}),qr.include({bindTooltip:function(b,W){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Va,this._tooltip,b,W),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(b){if(!(!b&&this._tooltipHandlersAdded)){var W=b?"off":"on",ie={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?ie.add=this._openTooltip:(ie.mouseover=this._openTooltip,ie.mouseout=this.closeTooltip,ie.click=this._openTooltip,this._map?this._addFocusListeners():ie.add=this._addFocusListeners),this._tooltip.options.sticky&&(ie.mousemove=this._moveTooltip),this[W](ie),this._tooltipHandlersAdded=!b}},openTooltip:function(b){return this._tooltip&&(this instanceof gr||(this._tooltip._source=this),this._tooltip._prepareOpen(b)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(b){return this._tooltip&&this._tooltip.setContent(b),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(b){var W=typeof b.getElement=="function"&&b.getElement();W&&(Gn(W,"focus",function(){this._tooltip._source=b,this.openTooltip()},this),Gn(W,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(b){var W=typeof b.getElement=="function"&&b.getElement();W&&W.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(b){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var W=this;this._map.once("moveend",function(){W._openOnceFlag=!1,W._openTooltip(b)});return}this._tooltip._source=b.layer||b.target,this.openTooltip(this._tooltip.options.sticky?b.latlng:void 0)}},_moveTooltip:function(b){var W=b.latlng,ie,de;this._tooltip.options.sticky&&b.originalEvent&&(ie=this._map.mouseEventToContainerPoint(b.originalEvent),de=this._map.containerPointToLayerPoint(ie),W=this._map.layerPointToLatLng(de)),this._tooltip.setLatLng(W)}});var Wa=Qr.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(b){var W=b&&b.tagName==="DIV"?b:document.createElement("div"),ie=this.options;if(ie.html instanceof Element?(Re(W),W.appendChild(ie.html)):W.innerHTML=ie.html!==!1?ie.html:"",ie.bgPos){var de=ke(ie.bgPos);W.style.backgroundPosition=-de.x+"px "+-de.y+"px"}return this._setIconStyles(W,"icon"),W},createShadow:function(){return null}});function Qs(b){return new Wa(b)}Qr.Default=si;var ma=qr.extend({options:{tileSize:256,opacity:1,updateWhenIdle:gn.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(b){R(this,b)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(b){b._addZoomLimit(this)},onRemove:function(b){this._removeAllTiles(),Ce(this._container),b._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(Me(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(rt(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(b){return this.options.opacity=b,this._updateOpacity(),this},setZIndex:function(b){return this.options.zIndex=b,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var b=this._clampZoom(this._map.getZoom());b!==this._tileZoom&&(this._tileZoom=b,this._updateLevels()),this._update()}return this},getEvents:function(){var b={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=A(this._onMoveEnd,this.options.updateInterval,this)),b.move=this._onMove),this._zoomAnimated&&(b.zoomanim=this._animateZoom),b},createTile:function(){return document.createElement("div")},getTileSize:function(){var b=this.options.tileSize;return b instanceof Se?b:new Se(b,b)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(b){for(var W=this.getPane().children,ie=-b(-1/0,1/0),de=0,pe=W.length,Ee;de<pe;de++)Ee=W[de].style.zIndex,W[de]!==this._container&&Ee&&(ie=b(ie,+Ee));isFinite(ie)&&(this.options.zIndex=ie+b(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!gn.ielt9){Xt(this._container,this.options.opacity);var b=+new Date,W=!1,ie=!1;for(var de in this._tiles){var pe=this._tiles[de];if(!(!pe.current||!pe.loaded)){var Ee=Math.min(1,(b-pe.loaded)/200);Xt(pe.el,Ee),Ee<1?W=!0:(pe.active?ie=!0:this._onOpaqueTile(pe),pe.active=!0)}}ie&&!this._noPrune&&this._pruneTiles(),W&&(Oe(this._fadeFrame),this._fadeFrame=ge(this._updateOpacity,this))}},_onOpaqueTile:s,_initContainer:function(){this._container||(this._container=Bn("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var b=this._tileZoom,W=this.options.maxZoom;if(b!==void 0){for(var ie in this._levels)ie=Number(ie),this._levels[ie].el.children.length||ie===b?(this._levels[ie].el.style.zIndex=W-Math.abs(b-ie),this._onUpdateLevel(ie)):(Ce(this._levels[ie].el),this._removeTilesAtZoom(ie),this._onRemoveLevel(ie),delete this._levels[ie]);var de=this._levels[b],pe=this._map;return de||(de=this._levels[b]={},de.el=Bn("div","leaflet-tile-container leaflet-zoom-animated",this._container),de.el.style.zIndex=W,de.origin=pe.project(pe.unproject(pe.getPixelOrigin()),b).round(),de.zoom=b,this._setZoomTransform(de,pe.getCenter(),pe.getZoom()),s(de.el.offsetWidth),this._onCreateLevel(de)),this._level=de,de}},_onUpdateLevel:s,_onRemoveLevel:s,_onCreateLevel:s,_pruneTiles:function(){if(this._map){var b,W,ie=this._map.getZoom();if(ie>this.options.maxZoom||ie<this.options.minZoom){this._removeAllTiles();return}for(b in this._tiles)W=this._tiles[b],W.retain=W.current;for(b in this._tiles)if(W=this._tiles[b],W.current&&!W.active){var de=W.coords;this._retainParent(de.x,de.y,de.z,de.z-5)||this._retainChildren(de.x,de.y,de.z,de.z+2)}for(b in this._tiles)this._tiles[b].retain||this._removeTile(b)}},_removeTilesAtZoom:function(b){for(var W in this._tiles)this._tiles[W].coords.z===b&&this._removeTile(W)},_removeAllTiles:function(){for(var b in this._tiles)this._removeTile(b)},_invalidateAll:function(){for(var b in this._levels)Ce(this._levels[b].el),this._onRemoveLevel(Number(b)),delete this._levels[b];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(b,W,ie,de){var pe=Math.floor(b/2),Ee=Math.floor(W/2),Qe=ie-1,jt=new Se(+pe,+Ee);jt.z=+Qe;var Zt=this._tileCoordsToKey(jt),un=this._tiles[Zt];return un&&un.active?(un.retain=!0,!0):(un&&un.loaded&&(un.retain=!0),Qe>de?this._retainParent(pe,Ee,Qe,de):!1)},_retainChildren:function(b,W,ie,de){for(var pe=2*b;pe<2*b+2;pe++)for(var Ee=2*W;Ee<2*W+2;Ee++){var Qe=new Se(pe,Ee);Qe.z=ie+1;var jt=this._tileCoordsToKey(Qe),Zt=this._tiles[jt];if(Zt&&Zt.active){Zt.retain=!0;continue}else Zt&&Zt.loaded&&(Zt.retain=!0);ie+1<de&&this._retainChildren(pe,Ee,ie+1,de)}},_resetView:function(b){var W=b&&(b.pinch||b.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),W,W)},_animateZoom:function(b){this._setView(b.center,b.zoom,!0,b.noUpdate)},_clampZoom:function(b){var W=this.options;return W.minNativeZoom!==void 0&&b<W.minNativeZoom?W.minNativeZoom:W.maxNativeZoom!==void 0&&W.maxNativeZoom<b?W.maxNativeZoom:b},_setView:function(b,W,ie,de){var pe=Math.round(W);this.options.maxZoom!==void 0&&pe>this.options.maxZoom||this.options.minZoom!==void 0&&pe<this.options.minZoom?pe=void 0:pe=this._clampZoom(pe);var Ee=this.options.updateWhenZooming&&pe!==this._tileZoom;(!de||Ee)&&(this._tileZoom=pe,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),pe!==void 0&&this._update(b),ie||this._pruneTiles(),this._noPrune=!!ie),this._setZoomTransforms(b,W)},_setZoomTransforms:function(b,W){for(var ie in this._levels)this._setZoomTransform(this._levels[ie],b,W)},_setZoomTransform:function(b,W,ie){var de=this._map.getZoomScale(ie,b.zoom),pe=b.origin.multiplyBy(de).subtract(this._map._getNewPixelOrigin(W,ie)).round();gn.any3d?wn(b.el,pe,de):yn(b.el,pe)},_resetGrid:function(){var b=this._map,W=b.options.crs,ie=this._tileSize=this.getTileSize(),de=this._tileZoom,pe=this._map.getPixelWorldBounds(this._tileZoom);pe&&(this._globalTileRange=this._pxBoundsToTileRange(pe)),this._wrapX=W.wrapLng&&!this.options.noWrap&&[Math.floor(b.project([0,W.wrapLng[0]],de).x/ie.x),Math.ceil(b.project([0,W.wrapLng[1]],de).x/ie.y)],this._wrapY=W.wrapLat&&!this.options.noWrap&&[Math.floor(b.project([W.wrapLat[0],0],de).y/ie.x),Math.ceil(b.project([W.wrapLat[1],0],de).y/ie.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(b){var W=this._map,ie=W._animatingZoom?Math.max(W._animateToZoom,W.getZoom()):W.getZoom(),de=W.getZoomScale(ie,this._tileZoom),pe=W.project(b,this._tileZoom).floor(),Ee=W.getSize().divideBy(de*2);return new Ae(pe.subtract(Ee),pe.add(Ee))},_update:function(b){var W=this._map;if(W){var ie=this._clampZoom(W.getZoom());if(b===void 0&&(b=W.getCenter()),this._tileZoom!==void 0){var de=this._getTiledPixelBounds(b),pe=this._pxBoundsToTileRange(de),Ee=pe.getCenter(),Qe=[],jt=this.options.keepBuffer,Zt=new Ae(pe.getBottomLeft().subtract([jt,-jt]),pe.getTopRight().add([jt,-jt]));if(!(isFinite(pe.min.x)&&isFinite(pe.min.y)&&isFinite(pe.max.x)&&isFinite(pe.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var un in this._tiles){var kn=this._tiles[un].coords;(kn.z!==this._tileZoom||!Zt.contains(new Se(kn.x,kn.y)))&&(this._tiles[un].current=!1)}if(Math.abs(ie-this._tileZoom)>1){this._setView(b,ie);return}for(var jn=pe.min.y;jn<=pe.max.y;jn++)for(var Qn=pe.min.x;Qn<=pe.max.x;Qn++){var Ur=new Se(Qn,jn);if(Ur.z=this._tileZoom,!!this._isValidTile(Ur)){var Sr=this._tiles[this._tileCoordsToKey(Ur)];Sr?Sr.current=!0:Qe.push(Ur)}}if(Qe.sort(function(Br,qi){return Br.distanceTo(Ee)-qi.distanceTo(Ee)}),Qe.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var Zr=document.createDocumentFragment();for(Qn=0;Qn<Qe.length;Qn++)this._addTile(Qe[Qn],Zr);this._level.el.appendChild(Zr)}}}},_isValidTile:function(b){var W=this._map.options.crs;if(!W.infinite){var ie=this._globalTileRange;if(!W.wrapLng&&(b.x<ie.min.x||b.x>ie.max.x)||!W.wrapLat&&(b.y<ie.min.y||b.y>ie.max.y))return!1}if(!this.options.bounds)return!0;var de=this._tileCoordsToBounds(b);return Ge(this.options.bounds).overlaps(de)},_keyToBounds:function(b){return this._tileCoordsToBounds(this._keyToTileCoords(b))},_tileCoordsToNwSe:function(b){var W=this._map,ie=this.getTileSize(),de=b.scaleBy(ie),pe=de.add(ie),Ee=W.unproject(de,b.z),Qe=W.unproject(pe,b.z);return[Ee,Qe]},_tileCoordsToBounds:function(b){var W=this._tileCoordsToNwSe(b),ie=new qe(W[0],W[1]);return this.options.noWrap||(ie=this._map.wrapLatLngBounds(ie)),ie},_tileCoordsToKey:function(b){return b.x+":"+b.y+":"+b.z},_keyToTileCoords:function(b){var W=b.split(":"),ie=new Se(+W[0],+W[1]);return ie.z=+W[2],ie},_removeTile:function(b){var W=this._tiles[b];W&&(Ce(W.el),delete this._tiles[b],this.fire("tileunload",{tile:W.el,coords:this._keyToTileCoords(b)}))},_initTile:function(b){We(b,"leaflet-tile");var W=this.getTileSize();b.style.width=W.x+"px",b.style.height=W.y+"px",b.onselectstart=s,b.onmousemove=s,gn.ielt9&&this.options.opacity<1&&Xt(b,this.options.opacity)},_addTile:function(b,W){var ie=this._getTilePos(b),de=this._tileCoordsToKey(b),pe=this.createTile(this._wrapCoords(b),p(this._tileReady,this,b));this._initTile(pe),this.createTile.length<2&&ge(p(this._tileReady,this,b,null,pe)),yn(pe,ie),this._tiles[de]={el:pe,coords:b,current:!0},W.appendChild(pe),this.fire("tileloadstart",{tile:pe,coords:b})},_tileReady:function(b,W,ie){W&&this.fire("tileerror",{error:W,tile:ie,coords:b});var de=this._tileCoordsToKey(b);ie=this._tiles[de],ie&&(ie.loaded=+new Date,this._map._fadeAnimated?(Xt(ie.el,0),Oe(this._fadeFrame),this._fadeFrame=ge(this._updateOpacity,this)):(ie.active=!0,this._pruneTiles()),W||(We(ie.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:ie.el,coords:b})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),gn.ielt9||!this._map._fadeAnimated?ge(this._pruneTiles,this):setTimeout(p(this._pruneTiles,this),250)))},_getTilePos:function(b){return b.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(b){var W=new Se(this._wrapX?y(b.x,this._wrapX):b.x,this._wrapY?y(b.y,this._wrapY):b.y);return W.z=b.z,W},_pxBoundsToTileRange:function(b){var W=this.getTileSize();return new Ae(b.min.unscaleBy(W).floor(),b.max.unscaleBy(W).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var b in this._tiles)if(!this._tiles[b].loaded)return!1;return!0}});function mr(b){return new ma(b)}var ps=ma.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(b,W){this._url=b,W=R(this,W),W.detectRetina&&gn.retina&&W.maxZoom>0?(W.tileSize=Math.floor(W.tileSize/2),W.zoomReverse?(W.zoomOffset--,W.minZoom=Math.min(W.maxZoom,W.minZoom+1)):(W.zoomOffset++,W.maxZoom=Math.max(W.minZoom,W.maxZoom-1)),W.minZoom=Math.max(0,W.minZoom)):W.zoomReverse?W.minZoom=Math.min(W.maxZoom,W.minZoom):W.maxZoom=Math.max(W.minZoom,W.maxZoom),typeof W.subdomains=="string"&&(W.subdomains=W.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(b,W){return this._url===b&&W===void 0&&(W=!0),this._url=b,W||this.redraw(),this},createTile:function(b,W){var ie=document.createElement("img");return Gn(ie,"load",p(this._tileOnLoad,this,W,ie)),Gn(ie,"error",p(this._tileOnError,this,W,ie)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(ie.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(ie.referrerPolicy=this.options.referrerPolicy),ie.alt="",ie.src=this.getTileUrl(b),ie},getTileUrl:function(b){var W={r:gn.retina?"@2x":"",s:this._getSubdomain(b),x:b.x,y:b.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var ie=this._globalTileRange.max.y-b.y;this.options.tms&&(W.y=ie),W["-y"]=ie}return te(this._url,h(W,this.options))},_tileOnLoad:function(b,W){gn.ielt9?setTimeout(p(b,this,null,W),0):b(null,W)},_tileOnError:function(b,W,ie){var de=this.options.errorTileUrl;de&&W.getAttribute("src")!==de&&(W.src=de),b(ie,W)},_onTileRemove:function(b){b.tile.onload=null},_getZoomForUrl:function(){var b=this._tileZoom,W=this.options.maxZoom,ie=this.options.zoomReverse,de=this.options.zoomOffset;return ie&&(b=W-b),b+de},_getSubdomain:function(b){var W=Math.abs(b.x+b.y)%this.options.subdomains.length;return this.options.subdomains[W]},_abortLoading:function(){var b,W;for(b in this._tiles)if(this._tiles[b].coords.z!==this._tileZoom&&(W=this._tiles[b].el,W.onload=s,W.onerror=s,!W.complete)){W.src=ne;var ie=this._tiles[b].coords;Ce(W),delete this._tiles[b],this.fire("tileabort",{tile:W,coords:ie})}},_removeTile:function(b){var W=this._tiles[b];if(W)return W.el.setAttribute("src",ne),ma.prototype._removeTile.call(this,b)},_tileReady:function(b,W,ie){if(!(!this._map||ie&&ie.getAttribute("src")===ne))return ma.prototype._tileReady.call(this,b,W,ie)}});function fo(b,W){return new ps(b,W)}var Ps=ps.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(b,W){this._url=b;var ie=h({},this.defaultWmsParams);for(var de in W)de in this.options||(ie[de]=W[de]);W=R(this,W);var pe=W.detectRetina&&gn.retina?2:1,Ee=this.getTileSize();ie.width=Ee.x*pe,ie.height=Ee.y*pe,this.wmsParams=ie},onAdd:function(b){this._crs=this.options.crs||b.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var W=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[W]=this._crs.code,ps.prototype.onAdd.call(this,b)},getTileUrl:function(b){var W=this._tileCoordsToNwSe(b),ie=this._crs,de=Ie(ie.project(W[0]),ie.project(W[1])),pe=de.min,Ee=de.max,Qe=(this._wmsVersion>=1.3&&this._crs===$i?[pe.y,pe.x,Ee.y,Ee.x]:[pe.x,pe.y,Ee.x,Ee.y]).join(","),jt=ps.prototype.getTileUrl.call(this,b);return jt+q(this.wmsParams,jt,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+Qe},setParams:function(b,W){return h(this.wmsParams,b),W||this.redraw(),this}});function el(b,W){return new Ps(b,W)}ps.WMS=Ps,fo.wms=el;var Gi=qr.extend({options:{padding:.1},initialize:function(b){R(this,b),z(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),We(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var b={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(b.zoomanim=this._onAnimZoom),b},_onAnimZoom:function(b){this._updateTransform(b.center,b.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(b,W){var ie=this._map.getZoomScale(W,this._zoom),de=this._map.getSize().multiplyBy(.5+this.options.padding),pe=this._map.project(this._center,W),Ee=de.multiplyBy(-ie).add(pe).subtract(this._map._getNewPixelOrigin(b,W));gn.any3d?wn(this._container,Ee,ie):yn(this._container,Ee)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var b in this._layers)this._layers[b]._reset()},_onZoomEnd:function(){for(var b in this._layers)this._layers[b]._project()},_updatePaths:function(){for(var b in this._layers)this._layers[b]._update()},_update:function(){var b=this.options.padding,W=this._map.getSize(),ie=this._map.containerPointToLayerPoint(W.multiplyBy(-b)).roun
vendor: 4,306 bytes, line 1872
1872d();this._bounds=new Ae(ie,ie.add(W.multiplyBy(1+b*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),So=Gi.extend({options:{tolerance:0},getEvents:function(){var b=Gi.prototype.getEvents.call(this);return b.viewprereset=this._onViewPreReset,b},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Gi.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var b=this._container=document.createElement("canvas");Gn(b,"mousemove",this._onMouseMove,this),Gn(b,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Gn(b,"mouseout",this._handleMouseOut,this),b._leaflet_disable_events=!0,this._ctx=b.getContext("2d")},_destroyContainer:function(){Oe(this._redrawRequest),delete this._ctx,Ce(this._container),cr(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var b;this._redrawBounds=null;for(var W in this._layers)b=this._layers[W],b._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Gi.prototype._update.call(this);var b=this._bounds,W=this._container,ie=b.getSize(),de=gn.retina?2:1;yn(W,b.min),W.width=de*ie.x,W.height=de*ie.y,W.style.width=ie.x+"px",W.style.height=ie.y+"px",gn.retina&&this._ctx.scale(2,2),this._ctx.translate(-b.min.x,-b.min.y),this.fire("update")}},_reset:function(){Gi.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(b){this._updateDashArray(b),this._layers[z(b)]=b;var W=b._order={layer:b,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=W),this._drawLast=W,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(b){this._requestRedraw(b)},_removePath:function(b){var W=b._order,ie=W.next,de=W.prev;ie?ie.prev=de:this._drawLast=de,de?de.next=ie:this._drawFirst=ie,delete b._order,delete this._layers[z(b)],this._requestRedraw(b)},_updatePath:function(b){this._extendRedrawBounds(b),b._project(),b._update(),this._requestRedraw(b)},_updateStyle:function(b){this._updateDashArray(b),this._requestRedraw(b)},_updateDashArray:function(b){if(typeof b.options.dashArray=="string"){var W=b.options.dashArray.split(/[, ]+/),ie=[],de,pe;for(pe=0;pe<W.length;pe++){if(de=Number(W[pe]),isNaN(de))return;ie.push(de)}b.options._dashArray=ie}else b.options._dashArray=b.options.dashArray},_requestRedraw:function(b){this._map&&(this._extendRedrawBounds(b),this._redrawRequest=this._redrawRequest||ge(this._redraw,this))},_extendRedrawBounds:function(b){if(b._pxBounds){var W=(b.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new Ae,this._redrawBounds.extend(b._pxBounds.min.subtract([W,W])),this._redrawBounds.extend(b._pxBounds.max.add([W,W]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var b=this._redrawBounds;if(b){var W=b.getSize();this._ctx.clearRect(b.min.x,b.min.y,W.x,W.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var b,W=this._redrawBounds;if(this._ctx.save(),W){var ie=W.getSize();this._ctx.beginPath(),this._ctx.rect(W.min.x,W.min.y,ie.x,ie.y),this._ctx.clip()}this._drawing=!0;for(var de=this._drawFirst;de;de=de.next)b=de.layer,(!W||b._pxBounds&&b._pxBounds.intersects(W))&&b._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(b,W){if(this._drawing){var ie,de,pe,Ee,Qe=b._parts,jt=Qe.length,Zt=this._ctx;if(jt){for(Zt.beginPath(),ie=0;ie<jt;ie++){for(de=0,pe=Qe[ie].length;de<pe;de++)Ee=Qe[ie][de],Zt[de?"lineTo":"moveTo"](Ee.x,Ee.y);W&&Zt.closePath()}this._fillStroke(Zt,b)}}},_updateCircle:function(b){if(!(!this._drawing||b._empty())){var W=b._point,ie=this._ctx,de=Math.max(Math.round(b._radius),1),pe=(Math.max(Math.round(b._radiusY),1)||de)/de;pe!==1&&(ie.save(),ie.scale(1,pe)),ie.beginPath(),ie.arc(W.x,W.y/pe,de,0,Math.PI*2,!1),pe!==1&&ie.restore(),this._fillStroke(ie,b)}},_fillStroke:function(b,W){var ie=W.options;ie.fill&&(b.globalAlpha=ie.fillOpacity,b.fillStyle=ie.fillColor||ie.color,b.fill(ie.fillRule||"evenodd")),ie.stroke&&ie.weight!==0&&(b.setLineDash&&b.setLineDash(W.o
1872ptions&&W.options._dashArray||[]),b.globalAlpha=ie.opacity,b.lineWidth=ie.weight,b.strokeStyle=ie.color,b.lineCap=ie.lineCap,b.lineJoin=ie.lineJoin,b.stroke())},_onClick:function(b){for(var W=this._map.mouseEventToLayerPoint(b),ie,de,pe=this._drawFirst;pe;pe=pe.next)ie=pe.layer,ie.options.interactive&&ie._containsPoint(W)&&(!(b.type==="click"||b.type==="preclick")||!this._map._draggableMoved(ie))&&(de=ie);this._fireEvent(de?[de]:!1,b)},_onMouseMove:function(b){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var W=this._map.mouseEventToLayerPoint(b);this._handleMouseHover(b,W)}},_handleMouseOut:function(b){var W=this._hoveredLayer;W&&(Lt(this._container,"leaflet-interactive"),this._fireEvent([W],b,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(b,W){if(!this._mouseHoverThrottled){for(var ie,de,pe=this._drawFirst;pe;pe=pe.next)ie=pe.layer,ie.options.interactive&&ie._containsPoint(W)&&(de=ie);de!==this._hoveredLayer&&(this._handleMouseOut(b),de&&(We(this._container,"leaflet-interactive"),this._fireEvent([de],b,"mouseover"),this._hoveredLayer=de)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,b),this._mouseHoverThrottled=!0,setTimeout(p(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(b,W,ie){this._map._fireDOMEvent(W,ie||W.type,b)},_bringToFront:function(b){var W=b._order;if(W){var ie=W.next,de=W.prev;if(ie)ie.prev=de;else return;de?de.next=ie:ie&&(this._drawFirst=ie),W.prev=this._drawLast,this._drawLast.next=W,W.next=null,this._drawLast=W,this._requestRedraw(b)}},_bringToBack:function(b){var W=b._order;if(W){var ie=W.next,de=W.prev;if(de)de.next=ie;else return;ie?ie.prev=de:de&&(this._drawLast=de),W.prev=null,W.next=this._drawFirst,this._drawFirst.prev=W,this._drawFirst=W,this._requestRedraw(b)}}});function Ms(b){return gn.canvas?new So(b):null}var mi=(function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(b){return document.createElement("<lvml:"+b+' class="lvml">')}}catch{}return function(b){return document.createElement("<"+b+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}})(),eo={_initContainer:function(){this._container=Bn("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Gi.prototype._update.call(this),this.fire("update"))},_initPath:function(b){var W=b._container=mi("shape");We(W,"leaflet-vml-shape "+(this.options.className||"")),W.coordsize="1 1",b._path=m
vendor: 18,834 bytes, line 1872
1872i("path"),W.appendChild(b._path),this._updateStyle(b),this._layers[z(b)]=b},_addPath:function(b){var W=b._container;this._container.appendChild(W),b.options.interactive&&b.addInteractiveTarget(W)},_removePath:function(b){var W=b._container;Ce(W),b.removeInteractiveTarget(W),delete this._layers[z(b)]},_updateStyle:function(b){var W=b._stroke,ie=b._fill,de=b.options,pe=b._container;pe.stroked=!!de.stroke,pe.filled=!!de.fill,de.stroke?(W||(W=b._stroke=mi("stroke")),pe.appendChild(W),W.weight=de.weight+"px",W.color=de.color,W.opacity=de.opacity,de.dashArray?W.dashStyle=re(de.dashArray)?de.dashArray.join(" "):de.dashArray.replace(/( *, *)/g," "):W.dashStyle="",W.endcap=de.lineCap.replace("butt","flat"),W.joinstyle=de.lineJoin):W&&(pe.removeChild(W),b._stroke=null),de.fill?(ie||(ie=b._fill=mi("fill")),pe.appendChild(ie),ie.color=de.fillColor||de.color,ie.opacity=de.fillOpacity):ie&&(pe.removeChild(ie),b._fill=null)},_updateCircle:function(b){var W=b._point.round(),ie=Math.round(b._radius),de=Math.round(b._radiusY||ie);this._setPath(b,b._empty()?"M0 0":"AL "+W.x+","+W.y+" "+ie+","+de+" 0,"+65535*360)},_setPath:function(b,W){b._path.v=W},_bringToFront:function(b){Me(b._container)},_bringToBack:function(b){rt(b._container)}},Os=gn.vml?mi:At,Ta=Gi.extend({_initContainer:function(){this._container=Os("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Os("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Ce(this._container),cr(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Gi.prototype._update.call(this);var b=this._bounds,W=b.getSize(),ie=this._container;(!this._svgSize||!this._svgSize.equals(W))&&(this._svgSize=W,ie.setAttribute("width",W.x),ie.setAttribute("height",W.y)),yn(ie,b.min),ie.setAttribute("viewBox",[b.min.x,b.min.y,W.x,W.y].join(" ")),this.fire("update")}},_initPath:function(b){var W=b._path=Os("path");b.options.className&&We(W,b.options.className),b.options.interactive&&We(W,"leaflet-interactive"),this._updateStyle(b),this._layers[z(b)]=b},_addPath:function(b){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(b._path),b.addInteractiveTarget(b._path)},_removePath:function(b){Ce(b._path),b.removeInteractiveTarget(b._path),delete this._layers[z(b)]},_updatePath:function(b){b._project(),b._update()},_updateStyle:function(b){var W=b._path,ie=b.options;W&&(ie.stroke?(W.setAttribute("stroke",ie.color),W.setAttribute("stroke-opacity",ie.opacity),W.setAttribute("stroke-width",ie.weight),W.setAttribute("stroke-linecap",ie.lineCap),W.setAttribute("stroke-linejoin",ie.lineJoin),ie.dashArray?W.setAttribute("stroke-dasharray",ie.dashArray):W.removeAttribute("stroke-dasharray"),ie.dashOffset?W.setAttribute("stroke-dashoffset",ie.dashOffset):W.removeAttribute("stroke-dashoffset")):W.setAttribute("stroke","none"),ie.fill?(W.setAttribute("fill",ie.fillColor||ie.color),W.setAttribute("fill-opacity",ie.fillOpacity),W.setAttribute("fill-rule",ie.fillRule||"evenodd")):W.setAttribute("fill","none"))},_updatePoly:function(b,W){this._setPath(b,ft(b._parts,W))},_updateCircle:function(b){var W=b._point,ie=Math.max(Math.round(b._radius),1),de=Math.max(Math.round(b._radiusY),1)||ie,pe="a"+ie+","+de+" 0 1,0 ",Ee=b._empty()?"M0 0":"M"+(W.x-ie)+","+W.y+pe+ie*2+",0 "+pe+-ie*2+",0 ";this._setPath(b,Ee)},_setPath:function(b,W){b._path.setAttribute("d",W)},_bringToFront:function(b){Me(b._path)},_bringToBack:function(b){rt(b._path)}});gn.vml&&Ta.include(eo);function ho(b){return gn.svg||gn.vml?new Ta(b):null}qn.include({getRenderer:function(b){var W=b.options.renderer||this._getPaneRenderer(b.options.pane)||this.options.renderer||this._renderer;return W||(W=this._renderer=this._createRenderer()),this.hasLayer(W)||this.addLayer(W),W},_getPaneRenderer:function(b){if(b==="overlayPane"||b===void 0)return!1;var W=this._paneRenderers[b];return W===void 0&&(W=this._createRenderer({pane:b}),this._paneRenderers[b]=W),W},_createRenderer:function(b){return this.options.preferCanvas&&Ms(b)||ho(b)}});var po=Qi.extend({initialize:function(b,W){Qi.prototype.initialize.call(this,this._boundsToLatLngs(b),W)},setBounds:function(b){return this.setLatLngs(this._boundsToLatLngs(b))},_boundsToLatLngs:function(b){return b=Ge(b),[b.getSouthWest(),b.getNorthWest(),b.getNorthEast(),b.getSouthEast()]}});function to(b,W){return new po(b,W)}Ta.create=Os,Ta.pointsToPath=ft,Bi.geometryToLayer=ji,Bi.coordsToLatLng=Zs,Bi.coordsToLatLngs=Ys,Bi.latLngToCoords=co,Bi.latLngsToCoords=Ks,Bi.getFeature=hs,Bi.asFeature=Xs,qn.mergeOptions({boxZoom:!0});var _o=ai.extend({initialize:function(b){this._map=b,this._container=b._container,this._pane=b._panes.overlayPane,this._resetStateTimeout=0,b.on("unload",this._destroy,this)},addHooks:function(){Gn(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){cr(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Ce(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(b){if(!b.shiftKey||b.which!==1&&b.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),Fn(),En(),this._startPoint=this._map.mouseEventToContainerPoint(b),Gn(document,{contextmenu:kt,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(b){this._moved||(this._moved=!0,this._box=Bn("div","leaflet-zoom-box",this._container),We(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(b);var W=new Ae(this._point,this._startPoint),ie=W.getSize();yn(this._box,W.min),this._box.style.width=ie.x+"px",this._box.style.height=ie.y+"px"},_finish:function(){this._moved&&(Ce(this._box),Lt(this._container,"leaflet-crosshair")),zn(),On(),cr(document,{contextmenu:kt,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(b){if(!(b.which!==1&&b.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(p(this._resetState,this),0);var W=new qe(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(W).fire("boxzoomend",{boxZoomBounds:W})}},_onKeyDown:function(b){b.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});qn.addInitHook("addHandler","boxZoom",_o),qn.mergeOptions({doubleClickZoom:!0});var _s=ai.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(b){var W=this._map,ie=W.getZoom(),de=W.options.zoomDelta,pe=b.originalEvent.shiftKey?ie-de:ie+de;W.options.doubleClickZoom==="center"?W.setZoom(pe):W.setZoomAround(b.containerPoint,pe)}});qn.addInitHook("addHandler","doubleClickZoom",_s),qn.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Sa=ai.extend({addHooks:function(){if(!this._draggable){var b=this._map;this._draggable=new Ar(b._mapPane,b._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),b.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),b.on("zoomend",this._onZoomEnd,this),b.whenReady(this._onZoomEnd,this))}We(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Lt(this._map._container,"leaflet-grab"),Lt(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var b=this._map;if(b._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var W=Ge(this._map.options.maxBounds);this._offsetLimit=Ie(this._map.latLngToContainerPoint(W.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(W.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;b.fire("movestart").fire("dragstart"),b.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(b){if(this._map.options.inertia){var W=this._lastTime=+new Date,ie=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(ie),this._times.push(W),this._prunePositions(W)}this._map.fire("move",b).fire("drag",b)},_prunePositions:function(b){for(;this._positions.length>1&&b-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var b=this._map.getSize().divideBy(2),W=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=W.subtract(b).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(b,W){return b-(b-W)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var b=this._draggable._newPos.subtract(this._draggable._startPos),W=this._offsetLimit;b.x<W.min.x&&(b.x=this._viscousLimit(b.x,W.min.x)),b.y<W.min.y&&(b.y=this._viscousLimit(b.y,W.min.y)),b.x>W.max.x&&(b.x=this._viscousLimit(b.x,W.max.x)),b.y>W.max.y&&(b.y=this._viscousLimit(b.y,W.max.y)),this._draggable._newPos=this._draggable._startPos.add(b)}},_onPreDragWrap:function(){var b=this._worldWidth,W=Math.round(b/2),ie=this._initialWorldOffset,de=this._draggable._newPos.x,pe=(de-W+ie)%b+W-ie,Ee=(de+W+ie)%b-W-ie,Qe=Math.abs(pe+ie)<Math.abs(Ee+ie)?pe:Ee;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=Qe},_onDragEnd:function(b){var W=this._map,ie=W.options,de=!ie.inertia||b.noInertia||this._times.length<2;if(W.fire("dragend",b),de)W.fire("moveend");else{this._prunePositions(+new Date);var pe=this._lastPos.subtract(this._positions[0]),Ee=(this._lastTime-this._times[0])/1e3,Qe=ie.easeLinearity,jt=pe.multiplyBy(Qe/Ee),Zt=jt.distanceTo([0,0]),un=Math.min(ie.inertiaMaxSpeed,Zt),kn=jt.multiplyBy(un/Zt),jn=un/(ie.inertiaDeceleration*Qe),Qn=kn.multiplyBy(-jn/2).round();!Qn.x&&!Qn.y?W.fire("moveend"):(Qn=W._limitOffset(Qn,W.options.maxBounds),ge(function(){W.panBy(Qn,{duration:jn,easeLinearity:Qe,noMoveStart:!0,animate:!0})}))}}});qn.addInitHook("addHandler","dragging",Sa),qn.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Cs=ai.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(b){this._map=b,this._setPanDelta(b.options.keyboardPanDelta),this._setZoomDelta(b.options.zoomDelta)},addHooks:function(){var b=this._map._container;b.tabIndex<=0&&(b.tabIndex="0"),Gn(b,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),cr(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var b=document.body,W=document.documentElement,ie=b.scrollTop||W.scrollTop,de=b.scrollLeft||W.scrollLeft;this._map._container.focus(),window.scrollTo(de,ie)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(b){var W=this._panKeys={},ie=this.keyCodes,de,pe;for(de=0,pe=ie.left.length;de<pe;de++)W[ie.left[de]]=[-1*b,0];for(de=0,pe=ie.right.length;de<pe;de++)W[ie.right[de]]=[b,0];for(de=0,pe=ie.down.length;de<pe;de++)W[ie.down[de]]=[0,b];for(de=0,pe=ie.up.length;de<pe;de++)W[ie.up[de]]=[0,-1*b]},_setZoomDelta:function(b){var W=this._zoomKeys={},ie=this.keyCodes,de,pe;for(de=0,pe=ie.zoomIn.length;de<pe;de++)W[ie.zoomIn[de]]=b;for(de=0,pe=ie.zoomOut.length;de<pe;de++)W[ie.zoomOut[de]]=-b},_addHooks:function(){Gn(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){cr(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(b){if(!(b.altKey||b.ctrlKey||b.metaKey)){var W=b.keyCode,ie=this._map,de;if(W in this._panKeys){if(!ie._panAnim||!ie._panAnim._inProgress)if(de=this._panKeys[W],b.shiftKey&&(de=ke(de).multiplyBy(3)),ie.options.maxBounds&&(de=ie._limitOffset(ke(de),ie.options.maxBounds)),ie.options.worldCopyJump){var pe=ie.wrapLatLng(ie.unproject(ie.project(ie.getCenter()).add(de)));ie.panTo(pe)}else ie.panBy(de)}else if(W in this._zoomKeys)ie.setZoom(ie.getZoom()+(b.shiftKey?3:1)*this._zoomKeys[W]);else if(W===27&&ie._popup&&ie._popup.options.closeOnEscapeKey)ie.closePopup();else return;kt(b)}}});qn.addInitHook("addHandler","keyboard",Cs),qn.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Eo=ai.extend({addHooks:function(){Gn(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){cr(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(b){var W=Kn(b),ie=this._map.options.wheelDebounceTime;this._delta+=W,this._lastMousePos=this._map.mouseEventToContainerPoint(b),this._startTime||(this._startTime=+new Date);var de=Math.max(ie-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(p(this._performZoom,this),de),kt(b)},_performZoom:function(){var b=this._map,W=b.getZoom(),ie=this._map.options.zoomSnap||0;b._stop();var de=this._delta/(this._map.options.wheelPxPerZoomLevel*4),pe=4*Math.log(2/(1+Math.exp(-Math.abs(de))))/Math.LN2,Ee=ie?Math.ceil(pe/ie)*ie:pe,Qe=b._limitZoom(W+(this._delta>0?Ee:-Ee))-W;this._delta=0,this._startTime=null,Qe&&(b.options.scrollWheelZoom==="center"?b.setZoom(W+Qe):b.setZoomAround(this._lastMousePos,W+Qe))}});qn.addInitHook("addHandler","scrollWheelZoom",Eo);var tl=600;qn.mergeOptions({tapHold:gn.touchNative&&gn.safari&&gn.mobile,tapTolerance:15});var Ao=ai.extend({addHooks:function(){Gn(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){cr(this._map._container,"touchstart",this._onDown,this)},_onDown:function(b){if(clearTimeout(this._holdTimeout),b.touches.length===1){var W=b.touches[0];this._startPos=this._newPos=new Se(W.clientX,W.clientY),this._holdTimeout=setTimeout(p(function(){this._cancel(),this._isTapValid()&&(Gn(document,"touchend",it),Gn(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",W))},this),tl),Gn(document,"touchend touchcancel contextmenu",this._cancel,this),Gn(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function b(){cr(document,"touchend",it),cr(document,"touchend touchcancel",b)},_cancel:function(){clearTimeout(this._holdTimeout),cr(document,"touchend touchcancel contextmenu",this._cancel,this),cr(document,"touchmove",this._onMove,this)},_onMove:function(b){var W=b.touches[0];this._newPos=new Se(W.clientX,W.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(b,W){var ie=new MouseEvent(b,{bubbles:!0,cancelable:!0,view:window,screenX:W.screenX,screenY:W.screenY,clientX:W.clientX,clientY:W.clientY});ie._simulated=!0,W.target.dispatchEvent(ie)}});qn.addInitHook("addHandler","tapHold",Ao),qn.mergeOptions({touchZoom:gn.touch,bounceAtZoomLimits:!0});var Is=ai.extend({addHooks:function(){We(this._map._container,"leaflet-touch-zoom"),Gn(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Lt(this._map._container,"leaflet-touch-zoom"),cr(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(b){var W=this._map;if(!(!b.touches||b.touches.length!==2||W._animatingZoom||this._zooming)){var ie=W.mouseEventToContainerPoint(b.touches[0]),de=W.mouseEventToContainerPoint(b.touches[1]);this._centerPoint=W.getSize()._divideBy(2),this._startLatLng=W.containerPointToLatLng(this._centerPoint),W.options.touchZoom!=="center"&&(this._pinchStartLatLng=W.containerPointToLatLng(ie.add(de)._divideBy(2))),this._startDist=ie.distanceTo(de),this._startZoom=W.getZoom(),this._moved=!1,this._zooming=!0,W._stop(),Gn(document,"touchmove",this._onTouchMove,this),Gn(document,"touchend touchcancel",this._onTouchEnd,this),it(b)}},_onTouchMove:function(b){if(!(!b.touches||b.touches.length!==2||!this._zooming)){var W=this._map,ie=W.mouseEventToContainerPoint(b.touches[0]),de=W.mouseEventToContainerPoint(b.touches[1]),pe=ie.distanceTo(de)/this._startDist;if(this._zoom=W.getScaleZoom(pe,this._startZoom),!W.options.bounceAtZoomLimits&&(this._zoom<W.getMinZoom()&&pe<1||this._zoom>W.getMaxZoom()&&pe>1)&&(this._zoom=W._limitZoom(this._zoom)),W.options.touchZoom==="center"){if(this._center=this._startLatLng,pe===1)return}else{var Ee=ie._add(de)._divideBy(2)._subtract(this._centerPoint);if(pe===1&&Ee.x===0&&Ee.y===0)return;this._center=W.unproject(W.project(this._pinchStartLatLng,this._zoom).subtract(Ee),this._zoom)}this._moved||(W._moveStart(!0,!1),this._moved=!0),Oe(this._animRequest);var Qe=p(W._move,W,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=ge(Qe,this,!0),it(b)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,Oe(this._animRequest),cr(document,"touchmove",this._onTouchMove,this),cr(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});qn.addInitHook("addHandler","touchZoom",Is),qn.BoxZoom=_o,qn.DoubleClickZoom=_s,qn.Drag=Sa,qn.Keyboard=Cs,qn.ScrollWheelZoom=Eo,qn.TapHold=Ao,qn.TouchZoom=Is,c.Bounds=Ae,c.Browser=gn,c.CRS=ve,c.Canvas=So,c.Circle=Ua,c.CircleMarker=ds,c.Class=Pe,c.Control=An,c.DivIcon=Wa,c.DivOverlay=_i,c.DomEvent=wr,c.DomUtil=wi,c.Draggable=Ar,c.Evented=we,c.FeatureGroup=gr,c.GeoJSON=Bi,c.GridLayer=ma,c.Handler=ai,c.Icon=Qr,c.ImageOverlay=Ht,c.LatLng=Je,c.LatLngBounds=qe,c.Layer=qr,c.LayerGroup=Pr,c.LineUtil=Ki,c.Map=qn,c.Marker=cs,c.Mixin=Wr,c.Path=ei,c.Point=Se,c.PolyUtil=$a,c.Polygon=Qi,c.Polyline=$r,c.Popup=Js,c.PosAnimation=Hr,c.Projection=ls,c.Rectangle=po,c.Renderer=Gi,c.SVG=Ta,c.SVGOverlay=Dr,c.TileLayer=ps,c.Tooltip=Va,c.Transformation=ct,c.Util=$e,c.VideoOverlay=Zn,c.bind=p,c.bounds=Ie,c.canvas=Ms,c.circle=Ws,c.circleMarker=uo,c.control=dr,c.divIcon=Qs,c.extend=h,c.featureGroup=Jr,c.geoJSON=It,c.geoJson=Qt,c.gridLayer=mr,c.icon=Ci,c.imageOverlay=Sn,c.latLng=Te,c.latLngBounds=Ge,c.layerGroup=Kt,c.map=Yt,c.marker=lo,c.point=ke,c.polygon=Jo,c.pol
1872yline=fs,c.popup=gi,c.rectangle=to,c.setOptions=R,c.stamp=z,c.svg=ho,c.svgOverlay=yr,c.tileLayer=fo,c.tooltip=Qo,c.transformation=Ue,c.version=d,c.videoOverlay=_r;var no=window.L;c.noConflict=function(){return window.L=no,this},window.L=c}))})(leafletSrc$1,leafletSrc$1.exports)),leafletSrc$1.exports}requireLeafletSrc();delegate(["click"]);delegate(["click"]);var root_2$n=from_html("<button>ABO-MAT STARTEN</button>"),root_7$9=from_html(" <!>)",1),root_6$b=from_html('<span class="abozahl"><!></span>'),root_5$e=from_html("<li> <!></li>"),root_4$n=from_html('<p class="frage svelte-1vqn5u8"> </p> <ul class="svelte-1vqn5u8"></ul>',1),root_10$a=from_html("<br/><button>ABO-MAT NEUSTARTEN</button>",1),root_12$8=from_html("<h4>Dann kommen folgende Abos in Frage:</h4>"),root_13$5=from_html("<h4>Dann kommt folgendes Abo in Frage:</h4>"),root_14$4=from_html("<p>Leider entspricht kein Abo Ihren Wünschen. Das liegt eventuell daran, dass Ihre Wünsche unerfüllbar sein könnten. Ein Premieren-Ballett-Dienstags-Abo mit Vorstellungen nur im Kongress am Park z.B. kann es nicht geben. Sie können jede obenstehende Frage anders beantworten.</p>"),root_16$7=from_html('<span style="font-family:museosans;font-size:1rem;"> </span>'),root_18$6=from_html('<tr><td class="svelte-1vqn5u8"> </td><td class="svelte-1vqn5u8"> </td><td class="svelte-1vqn5u8"><a> </a></td></tr>'),root_21$7=from_html('<tr><td class="svelte-1vqn5u8"> </td><td class="svelte-1vqn5u8"> </td><td class="svelte-1vqn5u8"><a> </a></td></tr>'),root_20$7=from_html('<tr><td colspan="3" class="svelte-1vqn5u8"> </td></tr> <!>',1),root_15$6=from_html('<tr><td colspan="3" class="svelte-1vqn5u8"><h5 class="svelte-1vqn5u8"><b> </b> <!></h5><!></td></tr> <!> <!> <tr><td colspan="3" class="svelte-1vqn5u8"><br/><!></td></tr>',1),root_22$4=from_html('<h4 class="mt-8 mb-1">Das Richtige gefunden?</h4><a class="button mt-1" href="/formulare">zu den Abo-Formularen</a>',1),root_11$8=from_html("<br/><br/> <!> <table></table> <!>",1),root_1$k=from_html("<!> <!> <!>",1);function Abomat($$anchor,$$props){push($$props,!0);const xdatelokalisiert=o=>{var n=new XDate(o,!0),c=n.getFullYear(),d=new XDate(c,2,31-(Math.floor(5*c/4)+4)%7,1,!0)<=n&&n<new XDate(c,9,31-(Math.floor(5*c/4)+1)%7,1,!0)?2:1;return n.addHours(d)};let fragen=state(proxy([])),abos=state(proxy([])),abosgefiltert=state(proxy([])),aktuellefrage=state(-1),filterstack=state(proxy(["true","true","true","true","true","true","true","true"]));user_effect(()=>{const o=appState.eingeloggt;(async()=>{const n=await __vitePreload(o?()=>Promise.resolve().then(()=>abomat_26):()=>Promise.resolve().then(()=>abomat_26),void 0);set(fragen,n.abomat.fragen,!0),set(abos,n.abomat.abos,!0),set(filterstack,["true","true","true","true","true","true","true","true"],!0),set(aktuellefrage,-1),set(abosgefiltert,[],!0),moeglicheausrechnen()})()});const neustart=()=>{set(aktuellefrage,0),set(fragen,get(fragen).map(o=>{const{auswahl:n,...c}=o;return c}),!0),set(filterstack,["true","true","true","true","true","true","true","true"],!0),moeglicheausrechnen()},moeglicheausrechnen=function(){_.forEach(get(fragen),function(af,k){_.forEach(af.antworten,function(aa,l){aa.filterstack=_.clone(get(filterstack)),aa.filterstack[k]=aa.filter,aa.abosgefiltert=_.filter(get(abos),function(a){return eval(_.join(aa.filterstack," && "))})})}),set(fragen,get(fragen),!0)},auswaehlen=(i,j)=>{get(fragen)[j].auswahl=i,get(filterstack)[j]=get(fragen)[j].antworten[i].filter,set(abosgefiltert,_.filter(get(abos),function(a){return eval(_.join(get(filterstack)," && "))}),!0),j==get(aktuellefrage)&&set(aktuellefrage,get(aktuellefrage)+1),moeglicheausrechnen()};let abotdieseszeinzeln=user_derived(()=>_.flattenDeep(_.map(appState.abotermine||[],function(o){return o.abo.map(function(n){var c=_.clone(o);return c.eabo=n,c})})));var fragment=comment$1(),node=first_child(fragment);{var consequent_12=o=>{var n=root_1$k(),c=first_child(n);{var d=A=>{var y=root_2$n();delegated("click",y,()=>{set(aktuellefrage,get(aktuellefrage)+1)}),append(A,y)},h=A=>{var y=comment$1(),s=first_child(y);each(s,17,()=>get(fragen).slice(0,get(aktuellefrage)+1),index,(e,f,g)=>{var R=root_4$n(),q=first_child(R),H=child(q),te=sibling(q,2);each(te,21,()=>get(fragen)[g].antworten,index,(re,ae,ne)=>{var oe=root_5$e(),le=child(oe),ce=sibling(le);{var ue=he=>{var ge=root_6$b(),Oe=child(ge);{var $e=Le=>{var me=root_7$9(),we=first_child(me),Se=sibling(we);{var ye=ke=>{var Ae=text$1("s");append(ke,Ae)};if_block(Se,ke=>{get(ae).abosgefiltert.length>1&&ke(ye)})}template_effect(()=>set_text(we,`(${get(ae).abosgefiltert.length??""} Abo`)),append(Le,me)},Pe=Le=>{var me=text$1("(keine Abos)");append(Le,me)};if_block(Oe,Le=>{get(ae).abosgefiltert.length?Le($e):Le(Pe,-1)})}append(he,ge)};if_block(ce,he=>{get(ae).abosgefiltert&&he(ue)})}template_effect(()=>{set_class(oe,1,get(fragen)[g].auswahl!=ne?"nichtgewaehlt":"gewaehlt","svelte-1vqn5u8"),set_text(le,`${get(ae).antwort??""} `)}),delegated("click",oe,()=>{auswaehlen(ne,g)}),append(re,oe)}),template_effect(()=>set_text(H,get(fragen)[g].frage)),append(e,R)}),append(A,y)};if_block(c,A=>{get(aktuellefrage)<0?A(d):A(h,-1)})}var m=sibling(c,2);{var p=A=>{var y=root_10$a(),s=sibling(first_child(y));
1872delegated("click",s,()=>{neustart()}),append(A,y)};if_block(m,A=>{get(aktuellefrage)<=get(fragen).length&&get(aktuellefrage)>0&&A(p)})}var w=sibling(m,2);{var z=A=>{var y=root_11$8(),s=sibling(first_child(y),3);{var e=te=>{var re=root_12$8();append(te,re)},f=te=>{var re=root_13$5();append(te,re)},g=te=>{var re=root_14$4();append(te,re)};if_block(s,te=>{get(abosgefiltert).length>1?te(e):get(abosgefiltert).length===1?te(f,1):te(g,-1)})}var R=sibling(s,2);each(R,21,()=>get(abosgefiltert),index,(te,re)=>{var ae=root_15$6(),ne=first_child(ae),oe=child(ne),le=child(oe),ce=child(le),ue=child(ce),he=sibling(ce,2);{var ge=ke=>{var Ae=root_16$7(),Ie=child(Ae);template_effect(()=>set_text(Ie,`ca. ${get(re).einsparung??""} % Ersparnis`)),append(ke,Ae)};if_block(he,ke=>{get(re).einsparung&&ke(ge)})}var Oe=sibling(le);{var $e=ke=>{var Ae=comment$1(),Ie=first_child(Ae);html(Ie,()=>markdownit(get(re).text)),append(ke,Ae)};if_block(Oe,ke=>{get(re).text&&ke($e)})}var Pe=sibling(ne,2);each(Pe,17,()=>_.filter(get(abotdieseszeinzeln),ke=>/Theaterbusabo/.test(get(re).name)&&ke.eabo==="Theaterbusabo"||get(re).name===ke.eabo),index,(ke,Ae)=>{var Ie=root_18$6(),qe=child(Ie),Ge=child(qe),Je=sibling(qe),Te=child(Je),ve=sibling(Je),et=child(ve),mt=child(et);template_effect((ht,ct)=>{set_text(Ge,ht),set_text(Te,ct),set_attribute(et,"href",`/${get(Ae).thea_link??""}`),set_text(mt,get(Ae).titel||get(Ae).thea_titel)},[()=>xdatelokalisiert(get(Ae).beginn).toString("dd.MM.yyyy"),()=>xdatelokalisiert(get(Ae).beginn).toString("HH:mm")]),append(ke,Ie)});var Le=sibling(Pe,2);{var me=ke=>{var Ae=comment$1(),Ie=first_child(Ae);each(Ie,17,()=>get(re).subabos,index,(qe,Ge)=>{var Je=root_20$7(),Te=first_child(Je),ve=child(Te),et=child(ve),mt=sibling(Te,2);each(mt,17,()=>_.filter(get(abotdieseszeinzeln),ht=>ht.eabo==get(Ge)),index,(ht,ct)=>{var Ue=root_21$7(),ot=child(Ue),bt=child(ot),At=sibling(ot),ft=child(At),be=sibling(At),Et=child(be),St=child(Et);template_effect((Jt,Bt)=>{set_text(bt,Jt),set_text(ft,Bt),set_attribute(Et,"href",`/${get(ct).thea_link??""}`),set_text(St,get(ct).titel||get(ct).thea_titel)},[()=>xdatelokalisiert(get(ct).beginn).toString("dd.MM.yyyy"),()=>xdatelokalisiert(get(ct).beginn).toString("HH:mm")]),append(ht,Ue)}),template_effect(()=>set_text(et,get(Ge))),append(qe,Je)}),append(ke,Ae)};if_block(Le,ke=>{get(re).subabos&&get(re).subabos.length&&ke(me)})}var we=sibling(Le,2),Se=child(we),ye=sibling(child(Se));html(ye,()=>markdownit(get(re).preise)),template_effect(()=>set_text(ue,get(re).name)),append(te,ae)});var q=sibling(R,2);{var H=te=>{var re=root_22$4();append(te,re)};if_block(q,te=>{get(abosgefiltert).length>0&&te(H)})}append(A,y)};if_block(w,A=>{get(aktuellefrage)==get(fragen).length&&A(z)})}append(o,n)};if_block(node,o=>{get(fragen)&&o(consequent_12)})}append($$anchor,fragment),pop()}delegate(["click"]);const abomat$1={fragen:[{frage:"Sie möchten ein Abo für…",antworten:[{antwort:"Erwachsene",filter:"a.zielgruppe === 1"},{antwort:"Familien",filter:"a.zielgruppe === 2"},{antwort:"beliebig",filter:"true"}]},{frage:"Möchten Sie immer auf demselben Platz sitzen?",antworten:[{antwort:"Ja",filter:"a.sitzplatz === 1"},{antwort:"Nein",filter:"a.sitzplatz === 0"},{antwort:"beliebig",filter:"true"}]},{frage:"Für welche Sparte möchten Sie ein Abo?",antworten:[{antwort:"nur für Oper",filter:"a.sparte === 1"},{antwort:"nur für Schauspiel",filter:"a.sparte === 2"},{antwort:"nur für Ballett",filter:"a.sparte === 3"},{antwort:"nur für Konzert",filter:"a.sparte === 4"},{antwort:"beliebig",filter:"true"}]},{frage:"Wie oft möchten Sie in der Spielzeit ins Theater gehen?",antworten:[{antwort:"3-4 mal",filter:"(a.zahl > 2 && a.zahl < 5)"},{antwort:"5-8 mal",filter:"(a.zahl > 4 && a.zahl < 9)"},{antwort:"9-12 mal",filter:"(a.zahl > 8 && a.zahl < 13)"},{antwort:"mehr als 12 mal",filter:"(a.zahl > 12)"},{antwort:"beliebig",filter:"true"}]},{frage:"Möchten Sie alle Stücke am Premierenabend erleben?",antworten:[{antwort:"Nein",filter:"a.premieren === 0"},{antwort:"Ja",filter:"a.premieren > 0"},{antwort:"beliebig",filter:"true"}]},{frage:"Möchten Sie im Theaterbus zum Theater gefahren werden?",antworten:[{antwort:"Nein",filter:"a.bus == 0"},{antwort:"Ja",filter:"a.bus > 0"},{antwort:"beliebig",filter:"true"}]},{frage:"An welchem Wochentag möchten Sie ins Theater gehen?",antworten:[{antwort:"Montag",filter:"a.wochentag === 1"},{antwort:"Dienstag",filter:"a.wochentag === 2"}
1872,{antwort:"Mittwoch",filter:"a.wochentag === 3"},{antwort:"Donnerstag",filter:"a.wochentag === 4"},{antwort:"Freitag",filter:"a.wochentag === 5"},{antwort:"Samstag",filter:"a.wochentag === 6"},{antwort:"Sonntag",filter:"a.wochentag === 7"},{antwort:"beliebig",filter:"true"}]},{frage:"Möchten Sie nur eine bestimmte Spielstätte besuchen?",antworten:[{antwort:"martini-Park",filter:"a.ort === 1"},{antwort:"Brechtbühne im Gaswerk",filter:"a.ort === 2"},{antwort:"Kongress am Park",filter:"a.ort === 3"},{antwort:"beliebig",filter:"true"}]}],abos:[{name:"Starter-Abo",sparte:0,vollname:"Starter-Abo",zielgruppe:1,zahl:5,sitzplatz:1,wochentag:0,premieren:0,einsparung:20,bus:0,ort:0,text:`2 Musiktheater
18732 Schauspiel
18741 Ballett`,preise:`###### Preise{class=preise}
1875|      |      |      |      |      |
1876|------|------|------|------|------|
1877|      | PG1:  | PG2:  | PG3:  | PG4:  |
1878|      | 207,– | 173,– | 134,– | 86,– |
1879| erm. | 146,– | 123,– | 96,– | 62,– |
1880`},{name:"Abo Kids",sparte:0,vollname:"Kinder-Abo",zielgruppe:2,zahl:4,sitzplatz:1,wochentag:0,premieren:0,einsparung:30,bus:0,ort:1,text:`1 Schauspiel
18813 Konzert`,preise:`###### Preise für Kinder{class=preise}
1882|      |       |       |       |       |
1883|------|-------|-------|-------|-------|
1884|      | PG1:  | PG2:  | PG3:  | PG4:  |
1885| ERW. | 63,–  | 54,–  | 43,–  | 35,–  |
1886| KIND | 44,–  | 39,–  | 32,–  | 26,–  |`},{name:"Abo Dienstag 1",sparte:0,vollname:"Dienstagsabo 1",zielgruppe:1,zahl:10,sitzplatz:1,wochentag:2,premieren:0,einsparung:25,bus:0,ort:0,text:`3 Musiktheater
18876 Schauspiel
18881 Ballett`,preise:`###### Preise{class=preise}
1889|      |      |      |      |      |
1890|------|------|------|------|------|
1891|      | PG1:  | PG2:  | PG3:  | PG4:  |
1892|      | 322,– | 277,– | 218,– | 161,– |
1893| erm. | 228,– | 198,– | 156,– | 116,– |
1894`},{name:"Abo Dienstag 2",sparte:0,vollname:"Dienstagsabo 2",zielgruppe:1,zahl:10,sitzplatz:1,wochentag:2,premieren:0,einsparung:25,bus:0,ort:0,text:`3 Musiktheater
18956 Schauspiel
18961 Ballett`,preise:`###### Preise{class=preise}
1897|      |      |      |      |      |
1898|------|------|------|------|------|
1899|      | PG1:  | PG2:  | PG3:  | PG4:  |
1900|      | 322,– | 277,– | 218,– | 161,– |
1901| erm. | 228,– | 198,– | 156,– | 116,– |
1902`},{name:"Abo Mittwoch 1",sparte:0,vollname:"Mittwochsabo 1",zielgruppe:1,zahl:10,sitzplatz:1,wochentag:3,premieren:0,einsparung:25,bus:0,ort:0,text:`4 Musiktheater
19035 Schauspiel
19041 Ballett`,preise:`###### Preise{class=preise}
1905|      |      |      |      |      |
1906|------|------|------|------|------|
1907|      | PG1:  | PG2:  | PG3:  | PG4:  |
1908|      | 336,– | 291,– | 229,– | 166,– |
1909| erm. | 239,– | 208,– | 164,– | 120,– |
1910`},{name:"Abo Mittwoch 2",sparte:0,vollname:"Mittwochsabo 2",zielgruppe:1,zahl:10,sitzplatz:1,wochentag:3,premieren:0,einsparung:25,bus:0,ort:0,text:`4 Musiktheater
19115 Schauspiel
19121 Ballett`,preise:`###### Preise{class=preise}
1913|      |      |      |      |      |
1914|------|------|------|------|------|
1915|      | PG1:  | PG2:  | PG3:  | PG4:  |
1916|      | 336,– | 291,– | 229,– | 166,– |
1917| erm. | 239,– | 208,– | 164,– | 120,– |
1918`},{name:"Abo Donnerstag 1",sparte:0,vollname:"Donnerstagsabo 1",zielgruppe:1,zahl:10,sitzplatz:1,wochentag:4,premieren:0,einsparung:25,bus:0,ort:0,text:`4 Musiktheater
19194 Schauspiel
19202 Ballett`,preise:`###### Preise{class=preise}
1921|      |      |      |      |      |
1922|------|------|------|------|------|
1923|      | PG1:  | PG2:  | PG3:  | PG4:  |
1924|      | 366,– | 314,– | 246,– | 171,– |
1925| erm. | 258,– | 223,– | 175,– | 122,– |
1926`},{name:"Abo Donnerstag 2",sparte:0,vollname:"Donnerstagsabo 2",zielgruppe:1,zahl:10,sitzplatz:1,wochentag:4,premieren:0,einsparung:25,bus:0,ort:0,text:`4 Musiktheater
19274 Schauspiel
19282 Ballett`,preise:`###### Preise{class=preise}
1929|      |      |      |      |      |
1930|------|------|------|------|------|
1931|      | PG1:  | PG2:  | PG3:  | PG4:  |
1932|      | 366,– | 314,– | 246,– | 171,– |
1933| erm. | 258,– | 223,– | 175,– | 122,– |
1934`},{name:"Abo Freitag 1",sparte:0,vollname:"Freitagsabo 1",zielgruppe:1,zahl:10,sitzplatz:1,wochentag:5,premieren:0,einsparung:20,bus:0,ort:0,text:`4 Musiktheater
19354 Schauspiel
19362 Ballett`,preise:`###### Preise{class=preise}
1937|      |      |      |      |      |
1938|------|------|------|------|------|
1939|      | PG1:  | PG2:  | PG3:  | PG4:  |
1940|      | 357,– | 309,– | 242,– | 176,– |
1941| erm. | 252,– | 220,– | 173,– | 126,– |
1942`},{name:"Abo Freitag 2",sparte:0,vollname:"Freitagsabo 2",zielgruppe:1,zahl:10,sitzplatz:1,wochentag:5,premieren:0,einsparung:20,bus:0,ort:0,text:`4 Musiktheater
19434 Schauspiel
19442 Ballett`,preise:`###### Preise{class=preise}
1945|      |      |      |      |      |
1946|------|------|------|------|------|
1947|      | PG1:  | PG2:  | PG3:  | PG4:  |
1948|      | 378,– | 328,– | 258,– | 186,– |
1949| erm. | 266,– | 233,– | 184,– | 132,– |
1950`},{name:"Abo Samstag",sparte:0,vollname:"Samstagsabo",zielgruppe:1,zahl:10,sitzplatz:1,wochentag:6,premieren:0,einsparung:20,bus:0,ort:0,text:`4 Musiktheater
19514 Schauspiel
19522 Ballett`,preise:`###### Preise{class=preise}
1953|      |      |      |      |      |
1954|------|------|------|------|------|
1955|      | PG1:  | PG2:  | PG3:  | PG4:  |
1956|      | 378,– | 323,– | 254,– | 177,– |
1957| erm. | 266,– | 230,– | 181,– | 126,– |
1958`},{name:"Abo Sonntag 15h",sparte:0,vollname:"Sonntagsabo 15h",zielgruppe:1,zahl:10,sitzplatz:1,wochentag:7,premieren:0,einsparung:30,bus:0,ort:0,text:`2 Musiktheater
19595 Schauspiel
19601 Ballett`,preise:`###### Preise{class=preise}
1961|      |      |      |      |      |
1962|------|------|------|------|------|
1963|      | PG1:  | PG2:  | PG3:  | PG4:  |
1964|      | 266,– | 230,– | 180,– | 129,– |
1965| erm. | 188,– | 164,– | 129,– | 92,– |
1966`},{name:"Abo gemischte Tage",sparte:0,vollname:"Abo an verschiedenen Wochentagen",zielgruppe:1,zahl:6,sitzplatz:1,wochentag:0,premieren:0,einsparung:20,bus:0,ort:1,text:`2 Musiktheater
19673 Schauspiel
19681 Ballett`,preise:`###### Preise{class=preise}
1969|      |      |      |      |      |
1970|------|------|------|------|------|
1971|      | PG1:  | PG2:  | PG3:  | PG4:  |
1972|      | 221,– | 187,– | 146,– | 101,– |
1973| erm. | 157,– | 133,– | 105,– | 73,– |
1974`},{name:"Abo Ballett 1",sparte:3,vollname:"Ballett Abo 1",zielgruppe:1,zahl:4,sitzplatz:1,wochentag:0,premieren:0,einsparung:10,bus:0,ort:0,text:"4 Ballett",preise:`###### Preise{class=preise}
1975|      |      |      |      |      |
1976|------|------|------|------|------|
1977|      | PG1:  | PG2:  | PG3:  | PG4:  |
1978| | 170,– | 153,– | 123,– | 98,– | 
1979| erm.  | 119,-|108,-|87,-|70,-|  
1980`},{name:"Abo Ballett 2",sparte:3,vollname:"Ballett Abo 2",zielgruppe:1,zahl:4,sitzplatz:1,wochentag:0,premieren:0,einsparung:10,bus:0,ort:0,text:"4 Ballett",preise:`###### Preise{class=preise}
1981|      |      |      |      |      |
1982|------|------|------|------|------|
1983|      | PG1:  | PG2:  | PG3:  | PG4:  |
1984| | 170,– | 153,– | 123,– | 98,– | 
1985| erm.  | 119,-|108,-|87,-|70,-|  
1986`},{name:"Abo Ballett 3",sparte:3,vollname:"Ballett Abo 3",zielgruppe:1,zahl:4,sitzplatz:1,wochentag:0,premieren:0,einsparung:10,bus:0,ort:0,text:"4 Ballett",preise:`###### Preise{class=preise}
1987|      |      |      |      |      |
1988|------|------|------|------|------|
1989|      | PG1:  | PG2:  | PG3:  | PG4:  |
1990| | 170,– | 153,– | 123,– | 98,– | 
1991| erm.  | 119,-|108,-|87,-|70,-|  
1992`},{name:"Abo Ballett 4",sparte:3,vollname:"Ballett Abo 4",zielgruppe:1,zahl:4,sitzplatz:1,wochentag:0,premieren:0,einsparung:10,bus:0,ort:0,text:"4 Ballett",preise:`###### Preise{class=preise}
1993|      |      |      |      |      |
1994|------|------|------|------|------|
1995|      | PG1:  | PG2:  | PG3:  | PG4:  |
1996| | 170,– | 153,– | 123,– | 98,– | 
1997| erm.  | 119,-|108,-|87,-|70,-|  
1998`},{name:"Abo Ballett 5",sparte:3,vollname:"Ballett Abo 5",zielgruppe:1,zahl:4,sitzplatz:1,wochentag:0,premieren:0,einsparung:10,bus:0,ort:0,text:"4 Ballett",preise:`###### Preise{class=preise}
1999|      |      |      |      |      |
2000|------|------|------|------|------|
2001|      | PG1:  | PG2:  | PG3:  | PG4:  |
2002| | 170,– | 153,– | 123,– | 98,– | 
2003| erm.  | 119,-|108,-|87,-|70,-|  
2004`},{name:"Abo Musiktheater",sparte:1,vollname:"Musiktheater",zielgruppe:1,zahl:6,sitzplatz:1,wochentag:0,premieren:0,einsparung:20,bus:0,ort:0,text:"6 Musiktheater",preise:`###### Preise{class=
2004preise}
2005|      |      |      |      |      |
2006|------|------|------|------|------|
2007|      | PG1:  | PG2:  | PG3:  | PG4:  |
2008|      | 197,– | 168,– | 131,– | 90,– |
2009| erm. | 139,– | 120,– | 94,– | 64,– |
2010`},{name:"Abo Musiktheater plus",sparte:1,vollname:"Abo Musiktheater plus",zielgruppe:1,zahl:10,sitzplatz:1,wochentag:0,premieren:0,einsparung:20,bus:0,ort:0,text:`6 Musiktheater
20114 Konzert`,preise:`###### Preise{class=preise}
2012|      |      |      |      |      |      |      |
2013|------|------|------|------|------|------|------|
2014|      | PG1:  | PG2:  | PG3:  | PG4:  | PG5:  | PG6:  |
2015|      | 385,– | 333,– | 313,– | 252,– | 228,– | 150,– |
2016| erm. | 293,– | 252,– | 236,– | 191,– | 175,– | 111,– |
2017`},{name:"Abo Schauspiel klein",sparte:2,vollname:"Kleines Schauspielabo",zielgruppe:1,zahl:5,sitzplatz:1,wochentag:0,premieren:0,einsparung:20,bus:0,ort:2,text:"5 Schauspiel",preise:`###### Preise{class=preise}
2018|      |      |      |
2019|------|------|------|
2020|      | PG1:  | PG2:  |
2021|      | 115,– | 92,– |
2022| erm. | 81,– | 66,– |
2023`},{name:"Abo Schauspiel 1",sparte:2,vollname:"Schauspielabo 1",zielgruppe:1,zahl:8,sitzplatz:1,wochentag:0,premieren:0,einsparung:20,bus:0,ort:0,text:"8 Schauspiel",preise:`###### Preise{class=preise}
2024|      |      |      |      |      |
2025|------|------|------|------|------|
2026|      | PG1:  | PG2:  | PG3:  | PG4:  |
2027|      | 216,– | 197,– | 156,– | 133,– |
2028| erm. | 153,– | 140,– | 112,– | 95,– |
2029`},{name:"Abo Schauspiel 2",sparte:2,vollname:"Schauspielabo 2",zielgruppe:1,zahl:8,sitzplatz:1,wochentag:0,premieren:0,einsparung:20,bus:0,ort:0,text:"8 Schauspiel",preise:`###### Preise{class=preise}
2030|      |      |      |      |      |
2031|------|------|------|------|------|
2032|      | PG1:  | PG2:  | PG3:  | PG4:  |
2033|      | 216,– | 197,– | 156,– | 133,– |
2034| erm. | 153,– | 140,– | 112,– | 95,– |
2035`},{name:"Abo Schauspiel 3",sparte:2,vollname:"Schauspielabo 3",zielgruppe:1,zahl:8,sitzplatz:1,wochentag:0,premieren:0,einsparung:20,bus:0,ort:0,text:"8 Schauspiel",preise:`###### Preise{class=preise}
2036|      |      |      |      |      |
2037|------|------|------|------|------|
2038|      | PG1:  | PG2:  | PG3:  | PG4:  |
2039|      | 216,– | 197,– | 156,– | 133,– |
2040| erm. | 153,– | 140,– | 112,– | 95,– |
2041`},{name:"Abo Konzert Montag",sparte:4,vollname:"Konzertabo Montag",zielgruppe:1,zahl:8,sitzplatz:1,wochentag:1,premieren:0,einsparung:20,bus:0,ort:3,text:"8 Konzert",preise:`###### Preise{class=preise}
2042|      |      |      |      |      |      |      |
2043|------|------|------|------|------|------|------|
2044|      | PG1:  | PG2:  | PG3:  | PG4:  | PG5:  | PG6:  |
2045|      | 302,– | 264,– | 232,– | 193,– | 155,– | 97,– |
2046| erm. | 212,– | 187,– | 164,– | 136,– | 110,– | 68,– |
2047`},{name:"Abo Konzert Dienstag",sparte:4,vollname:"Konzertabo Dienstag",zielgruppe:1,zahl:8,sitzplatz:1,wochentag:2,premieren:0,einsparung:20,bus:0,ort:3,text:"8 Konzert",preise:`###### Preise{class=preise}
2048|      |      |      |      |      |      |      |
2049|------|------|------|------|------|------|------|
2050|      | PG1:  | PG2:  | PG3:  | PG4:  | PG5:  | PG6:  |
2051|      | 302,– | 264,– | 232,– | 193,– | 155,– | 97,– |
2052| erm. | 212,– | 187,– | 161,– | 136,– | 110,– | 68,– |
2053`},{name:"Abo Konzert klein",sparte:4,vollname:"Kleines Konzertabo",zielgruppe:1,zahl:4,sitzplatz:1,wochentag:2,premieren:0,einsparung:20,bus:0,ort:3,text:"4 Konzert",preise:`###### Preise{class=preise}
2054|      |      |      |      |      |      |      |
2055|------|------|------|------|------|------|------|
2056|      | PG1:  | PG2:  | PG3:  | PG4:  | PG5:  | PG6:  |
2057|      | 151,– | 132,– | 116,– | 97,– | 77,– | 49,– |
2058| erm. | 106,– | 93,– | 81,– | 68,– | 55,– | 34,– |
2059`},{name:"Abo Kammerkonzert",sparte:4,vollname:"Kammerkonzert",zielgruppe:1,zahl:6,sitzplatz:1,wochentag:0,premieren:0,einsparung:20,bus:0,ort:0,text:"6 Kammerkonzert",preise:`###### Preise{class=preise}
2060|      |      |
2061|------|------|
2062|      | PG1:  |
2063|      | 102,– |
2064| erm. | 75,– |
2065`},{name:"Abo Premieren brechtbühne",sparte:0,vollname:"Premierenabo Brechtbühne",zielgruppe:1,zahl:5,sitzplatz:1,wochentag:0,premieren:5,einsparung:10,bus:0,ort:2,text:"8 Schauspiel",preise:`###### Preise{class=
2065preise}
2066|      |      |      |
2067|------|------|------|
2068|      | PG1:  | PG2:  |
2069|      | 141,– | 124,– |
2070| erm. | 99,– | 88,– |
2071`},{name:"Abo Premieren martini-Park",sparte:0,vollname:"Premierenabo martini-Park",zielgruppe:1,zahl:8,sitzplatz:1,wochentag:0,premieren:8,einsparung:5,bus:0,ort:1,text:`4 Musiktheater
20723 Schauspiel
20732 Ballett`,preise:`###### Preise{class=preise}
2074|      |      |      |      |      |
2075|------|------|------|------|------|
2076|      | PG1:  | PG2:  | PG3:  | PG4:  |
2077|      | 447,– | 373,– | 290,– | 187,– |
2078| erm. | 314,– | 264,– | 206,– | 132,– |
2079`},{name:"Abo Premieren total",sparte:0,vollname:"Premierenabo total",zielgruppe:1,zahl:13,sitzplatz:1,wochentag:0,premieren:13,einsparung:15,bus:0,ort:0,text:`5 Musiktheater
20808 Schauspiel
20814 Ballett`,preise:`###### Preise{class=preise}
2082|      |      |      |      |      |
2083|------|------|------|------|------|
2084|      | PG1:  | PG2:  | PG3:  | PG4:  |
2085|      | 599,– | 532,– | 421,– | 328,– |
2086| erm. |422,-|378,-|300,-|234,–|
2087`},{name:"Gutscheinheft Mini",sparte:0,vollname:"Wahlabo Mini",zielgruppe:1,zahl:3,sitzplatz:0,wochentag:0,premieren:0,einsparung:10,bus:0,ort:0,text:`1 Musiktheater martini-Park
20881 Schauspiel martini-Park
20891 brechtbühne im Gaswerk
2090
2091Andere Kombinationen bedürfen evtl. eines Aufschlages`,preise:`###### Preise{class=preise}
2092|      |      |      |      |      |
2093|------|------|------|------|------|
2094|      | PG1:  | PG2:  | PG3:  | PG4:  |
2095|      | 117,– | 102,– | 81,– | 59,– |
2096| erm. | 86,– | 75,– | 59,– | 43,– |
2097`},{name:"Gutscheinheft Midi",sparte:0,vollname:"Gutscheinheft Midi",zielgruppe:1,zahl:8,sitzplatz:0,wochentag:0,premieren:0,einsparung:20,bus:0,ort:0,text:`4 Musiktheater martini-Park
20982 Schauspiel martini-Park
20992 brechtbühne im Gaswerk
2100
2101Andere Kombinationen bedürfen evtl. eines Aufschlages`,preise:`###### Preise{class=preise}
2102|      |      |      |      |      |
2103|------|------|------|------|------|
2104|      | PG1:  | PG2:  | PG3:  | PG4:  |
2105|      | 292,– | 251,– | 198,– | 140,– |
2106| erm. | 207,– | 179,– | 141,– | 99,– |
2107`},{name:"Gutscheinheft Maxi",sparte:0,vollname:"Gutscheinheft Maxi",zielgruppe:1,zahl:12,sitzplatz:0,wochentag:0,premieren:0,einsparung:20,bus:0,ort:0,text:`6 Musiktheater martini-Park
21082 Schauspiel martini-Park
21092 brechtbühne im Gaswerk
21102 Konzert Kongress am Park
2111
2112Andere Kombinationen bedürfen evtl. eines Aufschlages`,preise:`###### Preise{class=preise}
2113|      |      |      |      |      |      |      |
2114|------|------|------|------|------|------|------|
2115|      | PG1:  | PG2:  | PG3:  | PG4:  | PG5:  | PG6:  |
2116|      | 461,– | 395,– | 387,– | 308,– | 299,– | 204,– |
2117| erm. | 325,– | 281,– | 275,– | 219,– | 213,– | 145,– |
2118`},{name:"Gutscheinheft Schauspiel",sparte:2,vollname:"Gutscheinheft Schauspiel",zielgruppe:1,zahl:5,sitzplatz:0,wochentag:0,premieren:0,einsparung:15,bus:0,ort:0,text:`5 Schauspiel: 2 martini-Park
21193 brechtbühne im Gaswerk
2120Andere Kombinationen bedürfen evtl. eines Aufschlages`,preise:`###### Preise{class=preise}
2121|      |      |      |      |      |
2122|------|------|------|------|------|
2123|      | PG1:  | PG2:  | PG3:  | PG4:  |
2124|      | 119,– | 106,– | 85,– | 68,– |
2125| erm. | 99,– | 90,– | 72,– | 60,– |
2126`},{name:"Gutscheinheft Konzert",sparte:4,vollname:"Gutscheinheft Konzerte",zielgruppe:1,zahl:6,sitzplatz:0,wochentag:0,premieren:0,einsparung:20,bus:0,ort:3,text:`6 Konzert Kongress am Park
2127
2128Andere Kombinationen bedürfen evtl. eines Aufschlages`,preise:`###### Preise{class=preise}
2129|      |      |      |      |      |      |      |
2130|------|------|------|------|------|------|------|
2131|      | PG1:  | PG2:  | PG3:  | PG4:  | PG5:  | PG6:  |
2132|      | 227,– | 198,– | 174,– | 145,– | 116,– | 73,– |
2133| erm. | 159,– | 140,– | 121,– | 102,– | 83,– | 51,– |
2134`},{name:"Theaterbusabo 3er",sparte:0,vollname:"Theaterbusabo 3er",zielgruppe:1,zahl:3,sitzplatz:0,wochentag:0,premieren:0,einsparung:0,bus:1,ort:0,text:"3 aus folgenden Terminen:",preise:`###### Preise{class=preise}
2135|      |      |      |      |      |      |      |
2136|------|------|------|------|------|------|------|
2137|      | PG1:  | PG2:  | PG3:  | PG4:  | PG5:  | PG6:  |
2138|      | 172,– | 152,– | 149,– | 126,– | 123,– | 94,– |
2139| erm. | 130,– | 118,– | 114,– | 99,– | 95,– | 75,– |
2140`},{name:"Theaterbusabo 8er",sparte:0,vollname:"Theaterbusabo 8er",zielgruppe:1,zahl:8,sitzplatz:0,wochentag:0,premieren:0,einsparung:0,bus:1,ort:0,text:"8 aus folgenden Terminen:",preise:`###### Preise{class=
2140preise}
2141|      |      |      |      |      |      |      |
2142|------|------|------|------|------|------|------|
2143|      | PG1:  | PG2:  | PG3:  | PG4:  | PG5:  | PG6:  |
2144|      | 418,– | 371,– | 365,– | 309,– | 302,– | 234,– |
2145| erm. | 320,– | 289,– | 281,– | 243,– | 233,– | 187,– |
2146`}]},abomat_26=Object.freeze(Object.defineProperty({__proto__:null,abomat:abomat$1},Symbol.toStringTag,{value:"Module"}));var root_1$j=from_html('<p style="color: red;">Fehler: Kein Abo-Name (abobez) angegeben!</p>'),root_2$m=from_html('<p style="color: orange;"> </p> <p> </p>',1),root_5$d=from_html('<span style="font-size:.7em"> </span>'),root_7$8=from_html('<tr><td class="svelte-184ntky"> </td><td class="svelte-184ntky"> </td><td class="svelte-184ntky"><a> </a></td></tr>'),root_10$9=from_html('<tr><td class="svelte-184ntky"> </td><td class="svelte-184ntky"> </td><td class="svelte-184ntky"><a> </a></td></tr>'),root_9$6=from_html('<tr><td colspan="3" class="svelte-184ntky"><h5 class="svelte-184ntky"><b> </b></h5></td></tr> <!>',1),root_4$m=from_html('<tr><td colspan="3" class="svelte-184ntky"><h5 class="svelte-184ntky"><b> </b> <!></h5><!></td></tr> <!> <!> <tr><td colspan="3" class="svelte-184ntky"></td></tr>',1),root_3$i=from_html("<table></table>");function Abo(o,n){push(n,!0);const c=f=>{var g=new XDate(f,!0),R=g.getFullYear(),q=new XDate(R,2,31-(Math.floor(5*R/4)+4)%7,1,!0)<=g&&g<new XDate(R,9,31-(Math.floor(5*R/4)+1)%7,1,!0)?2:1;return g.addHours(q)},d=f=>f.replace(/\s{2,}/g," ").trim(),h=f=>f?_.flattenDeep(_.map(f,function(g){return g.abo?g.abo.map(function(R){var q=_.clone(g);return q.eabo=R,q}):[]})):[];let m=user_derived(()=>h(appState.abotermine)),p=user_derived(()=>()=>n.abobez?_.filter(abomat$1.abos,f=>f.name===n.abobez):[]);var w=comment$1(),z=first_child(w);{var A=f=>{var g=root_1$j();append(f,g)},y=f=>{var g=root_2$m(),R=first_child(g),q=child(R),H=sibling(R,2),te=child(H
2146);template_effect(re=>{set_text(q,`Kein Abo gefunden mit dem Namen: "${n.abobez??""}"`),set_text(te,`Verfügbare Abos: ${re??""}`)},[()=>abomat$1.abos.map(re=>re.name).join(", ")]),append(f,g)},s=user_derived(()=>get(p)().length===0),e=f=>{var g=root_3$i();each(g,21,()=>get(p)(),index,(R,q)=>{var H=root_4$m(),te=first_child(H),re=child(te),ae=child(re),ne=child(ae),oe=child(ne),le=sibling(ne,2);{var ce=me=>{var we=root_5$d(),Se=child(we);template_effect(()=>set_text(Se,`(ca. ${get(q).einsparung??""} % Ersparnis)`)),append(me,we)};if_block(le,me=>{get(q).einsparung&&me(ce)})}var ue=sibling(ae);{var he=me=>{var we=comment$1(),Se=first_child(we);html(Se,()=>markdownit(get(q).text)),append(me,we)};if_block(ue,me=>{get(q).text&&me(he)})}var ge=sibling(te,2);each(ge,17,()=>_.filter(get(m),me=>d(me.eabo)===get(q).name),index,(me,we)=>{var Se=root_7$8(),ye=child(Se),ke=child(ye),Ae=sibling(ye),Ie=child(Ae),qe=sibling(Ae),Ge=child(qe),Je=child(Ge);template_effect((Te,ve)=>{set_text(ke,Te),set_text(Ie,ve),set_attribute(Ge,"href",`/${get(we).thea_link??""}`),set_text(Je,get(we).titel||get(we).thea_titel)},[()=>c(get(we).beginn).toString("dd.MM.yyyy"),()=>c(get(we).beginn).toString("HH:mm")]),append(me,Se)});var Oe=sibling(ge,2);{var $e=me=>{var we=comment$1(),Se=first_child(we);each(Se,17,()=>get(q).subabos,index,(ye,ke)=>{var Ae=root_9$6(),Ie=first_child(Ae),qe=child(Ie),Ge=child(qe),Je=child(Ge),Te=child(Je),ve=sibling(Ie,2);each(ve,17,()=>_.filter(get(m),et=>d(et.eabo)===get(ke)),index,(et,mt)=>{var ht=root_10$9(),ct=child(ht),Ue=child(ct),ot=sibling(ct),bt=child(ot),At=sibling(ot),ft=child(At),be=child(ft);template_effect((Et,St)=>{set_text(Ue,Et),set_text(bt,St),set_attribute(ft,"href",`/${get(mt).thea_link??""}`),set_text(be,get(mt).titel||get(mt).thea_titel)},[()=>c(get(mt).beginn).toString("dd.MM.yyyy"),()=>c(get(mt).beginn).toString("HH:mm")]),append(et,ht)}),template_effect(()=>set_text(Te,get(ke))),append(ye,Ae)}),append(me,we)};if_block(Oe,me=>{get(q).subabos&&get(q).subabos.length&&me($e)})}var Pe=sibling(Oe,2),Le=child(Pe);html(Le,()=>markdownit(get(q).preise),!0),template_effect(()=>set_text(oe,get(q).name)),append(R,H)}),append(f,g)};if_block(z,f=>{n.abobez?get(s)?f(y,1):f(e,-1):f(A)})}append(o,w),pop()}var root_5$c=from_html('<img src="https://staatstheater-augsburg.de/img/blase_premiere.svg" alt="Premiere" style="width:80px"/>'),root_6$a=from_html('<img src="https://staatstheater-augsburg.de/img/blase_wieder_da.svg" alt="wieder da" style="width:80px"/>'),root_7$7=from_html('<img src="https://staatstheater-augsburg.de/img/blase_zum_letzten_mal.svg" alt="zum letzten Mal" style="width:80px"/>'),root_10$8=from_html('<span class="badge svelte-7oidyv">VR vor Ort</span>'),root_9$5=from_html('<p class="stuecklinkabsatz svelte-7oidyv"><del><!><a class="stuecklink svelte-7oidyv"></a></del> <span class="entfaellt">entfällt</span></p>'),root_12$7=from_html('<span class="badge svelte-7oidyv">VR vor Ort</span>'),root_11$7=from_html('<p class="stuecklinkabsatz svelte-7oidyv"><!><a class="stuecklink svelte-7oidyv"></a></p>'),root_14$3=from_html('<p class="stuecklinkabsatz svelte-7oidyv"><a class="stuecklink svelte-7oidyv"></a></p>'),root_16$6=from_html('<span class="badge svelte-7oidyv">VR vor Ort</span>'),root_15$5=from_html('<p class="stuecklinkabsatz svelte-7oidyv"><del><!><span class="keinlink svelte-7oidyv"></span></del> <span class="entfaellt">entfällt</span></p>'),root_18$5=from_html("<del></del>"),root_17$5=from_html('<p class="ut svelte-7oidyv"><!></p>'),root_21$6=from_html("<del></del>"),root_20$6=from_html('<p class="ut svelte-7oidyv"><!></p>'),root_24$3=from_html("<del></del>"),root_23$3=from_html('<p class="ut svelte-7oidyv"><!></p>'),root_27$3=from_html("<del></del>"),root_26$4=from_html('<p class="ut svelte-7oidyv"><!></p>'),root_29$2=from_html('<p class="attribute svelte-7oidyv"></p>'),root_32$2=from_html('<span class="kartenspezialbutton">Karten an der Abendkasse</span>'),root_34$1=from_html('<span class="kartenspezialbutton"> </span>'),root_35$1=from_html('<a target="_blank" rel="noopener"><!></a>'),root_41$1=from_html('<span class="kartenspezialbutton"></span>'),root_43$1=from_html('<p class="kartenzusatz svelte-7oidyv"></p>'),root_30$2=from_html("<!> <!>",1),root_44$1=from_html('(<a style="font-weight:normal" href="/eintrittspreise"> </a>)',1),root_47$1=from_html(",<br/>",1),root_46$1=from_html(" <!>",1),root_48$1=from_html("<br/> ",1),root_45$1=from_html('<p class="abo svelte-7oidyv"><!> <!></p>'),root_49$1=from_html('<div><div class="inline-block text-xs me-2 px-1.5 py-0.2 rounded"><span class="text-[rgba(0,0,0,.3)]"> </span> </div></div>'),root_52=from_html("<del> </del> entfällt<br/>",1),root_53=from_html(" <br/>",1),root_50=from_html('<p class="einfuehrungen svelte-7oidyv"></p>'),root_4$l=from_html('<div class="termin svelte-7oidyv"><div class="blasen"><!></div> <p class="terminzeit svelte-7oidyv"> <br/> </p> <div class="termintitel"><div class="termintitelinner svelte-7oidyv"><!> <div class="utzeilen svelte-7oidyv"><!> <!> <!> <!> <!></div></div> <div class="abospalte"><div class="karten svelte-7oidyv"><!></div> <p class="preise svelte-7oidyv"><!> <!></p> <!> <!> <!></div></div></div>'),root_3$h=from_html('<div><p class="heuteodermorgen svelte-7oidyv"></p> <!></div>'),root_54=from_html("<h4>Die heutigen Termine kommen gleich … Geduld …</h4>");function Heute(o,n){push(n,!0);
2146function c(z){var A=new XDate(z,!0),y=A.getFullYear(),s=new XDate(y,2,31-(Math.floor(5*y/4)+4)%7,1,!0)<=A&&A<new XDate(y,9,31-(Math.floor(5*y/4)+1)%7,1,!0)?2:1;return A.addHours(s)}let d=user_derived(()=>appState.spielplannext12bundled&&appState.spielplannext12bundled.length?appState.spielplannext12bundled[0][0]:[]),h=user_derived(()=>get(d).length?c(new XDate(!0)).toISOString().substr(0,10)==get(d)[0].beginn.substr(0,10)?"Heute":c(new XDate(!0)).addDays(1).toISOString().substr(0,10)==get(d)[0].beginn.substr(0,10)?"Morgen":c(new XDate(!0)).addDays(2).toISOString().substr(0,10)==get(d)[0].beginn.substr(0,10)?"Übermorgen":"<div style='margin:0;font-size:1.1rem;font-weight:500;letter-spacing:.05rem;'>Demnächst, am</div>"+c(get(d)[0].beginn).toString("d.M.yyyy"):"");function m(z){setTimeout(function(){mauerbau()},1)}user_effect(()=>{const z=get(d)&&get(d).length>0;appState.zahlen,appState.eingeloggt,appState.status,z&&tick().then(()=>{requestAnimationFrame(()=>{mauerbau()})})});var p=comment$1(),w=first_child(p);key(w,()=>appState.spielplannext12bundled&&appState.status,z=>{var A=comment$1(),y=first_child(A);{var s=f=>{var g=comment$1(),R=first_child(g);key(R,()=>get(d),q=>{var H=root_3$h(),te=child(H);html(te,()=>get(h),!0);var re=sibling(te,2);each(re,17,()=>get(d),index,(ae,ne)=>{var oe=root_4$l(),le=child(oe),ce=child(le);{var ue=Ye=>{var at=root_5$c();append(Ye,at)},he=user_derived(()=>/premiere/gi.test(get(ne).thea_veranstaltungs_kategorie)),ge=Ye=>{var at=root_6$a();append(Ye,at)},Oe=user_derived(()=>/wiederaufnahme/gi.test(get(ne).thea_veranstaltungs_kategorie)),$e=Ye=>{var at=root_7$7();append(Ye,at)};if_block(ce,Ye=>{get(he)?Ye(ue):get(Oe)?Ye(ge,1):get(ne).thea_veranstaltungs_kategorie==="zum letzten Mal"&&Ye($e,2)})}var Pe=sibling(le,2),Le=child(Pe),me=sibling(Le,2),we=sibling(Pe,2),Se=child(we),ye=child(Se);{var ke=Ye=>{const at=user_derived(()=>get(ne).link||get(ne).thea_link);var st=comment$1(),vt=first_child(st);{var gt=Gt=>{var Ft=root_9$5(),Pt=child(Ft),qt=child(Pt);{var on=Ve=>{var pt=root_10$8();append(Ve,pt)};if_block(qt,Ve=>{get(ne).thea_veranstaltungs_kategorie=="VR vor Ort"&&Ve(on)})}var He=sibling(qt);html(He,()=>get(ne).titel||get(ne).thea_pressetitel||get(ne).thea_titel,!0),template_effect(Ve=>set_attribute(He,"href",`${Ve??""}${get(at)??""}`),[()=>/^http/.test(get(at))?"":"/"]),append(Gt,Ft)},Ot=user_derived(()=>["-1","-3"].indexOf(get(ne).thea_status)!=-1&&!get(ne).titel),Dt=Gt=>{var Ft=root_11$7(),Pt=child(Ft);{var qt=He=>{var Ve=root_12$7();append(He,Ve)};if_block(Pt,He=>{get(ne).thea_veranstaltungs_kategorie=="VR vor Ort"&&He(qt)})}var on=sibling(Pt);html(on,()=>get(ne).titel||get(ne).thea_pressetitel||get(ne).thea_titel,!0),template_effect(He=>set_attribute(on,"href",`${He??""}${get(at)??""}`),[()=>/^http/.test(get(at))?"":"/"]),append(Gt,Ft)};if_block(vt,Gt=>{get(Ot)?Gt(gt):Gt(Dt,-1)})}append(Ye,st)},Ae=Ye=>{var at=comment$1(),st=first_child(at);{var vt=Dt=>{var Gt=root_14$3(),Ft=child(Gt);html(Ft,()=>get(ne).titel||get(ne).thea_pressetitel||get(ne).thea_titel,!0),template_effect(()=>set_attribute(Ft,"href",`/${(get(ne).link||get(ne).thea_link)??""}`)),append(Dt,Gt)},gt=user_derived(()=>["-1","-3"].indexOf(get(ne).thea_status)==-1),Ot=Dt=>{var Gt=root_15$5(),Ft=child(Gt),Pt=child(Ft);{var qt=He=>{var Ve=root_16$6();append(He,Ve)};if_block(Pt,He=>{get(ne).thea_veranstaltungs_kategorie=="VR vor Ort"&&He(qt)})}var on=sibling(Pt);html(on,()=>get(ne).titel||get(ne).thea_pressetitel||get(ne).thea_titel,!0),append(Dt,Gt)};if_block(st,Dt=>{get(gt)?Dt(vt):Dt(Ot,-1)})}append(Ye,at)};if_block(ye,Ye=>{get(ne).link||get(ne).thea_link?Ye(ke):Ye(Ae,-1)})}var Ie=sibling(ye,2),qe=child(Ie);{var Ge=Ye=>{var at=root_17$5(),st=child(at);{var vt=Dt=>{var Gt=root_18$5();html(Gt,()=>get(ne).kurztext||get(ne).thea_pressekurztext1||get(ne).thea_kurztext1,!0),append(Dt,Gt)},gt=user_derived(()=>["-1","-3"].indexOf(get(ne).thea_status)!=-1),Ot=Dt=>{var Gt=comment$1(),Ft=first_child(Gt);html(Ft,()=>get(ne).kurztext||get(ne).thea_pressekurztext1||get(ne).thea_kurztext1),append(Dt,Gt)};if_block(st,Dt=>{get(gt)?Dt(vt):Dt(Ot,-1)})}append(Ye,at)};if_block(qe,Ye=>{(get(ne).kurztext1||get(ne).thea_pressekurztext1||get(ne).thea_kurztext1)&&Ye(Ge)})}var Je=sibling(qe,2);{var Te=Ye=>{var at=root_20$6(),st=child(at);{var vt=Dt=>{var Gt=root_21$6();html(Gt,()=>get(ne).kurztext2||get(ne).thea_pressekurztext2||get(ne).thea_kurztext2,!0),append(Dt,Gt)},gt=user_derived(()=>
2146["-1","-3"].indexOf(get(ne).thea_status)!=-1),Ot=Dt=>{var Gt=comment$1(),Ft=first_child(Gt);html(Ft,()=>get(ne).kurztext2||get(ne).thea_pressekurztext2||get(ne).thea_kurztext2),append(Dt,Gt)};if_block(st,Dt=>{get(gt)?Dt(vt):Dt(Ot,-1)})}append(Ye,at)};if_block(Je,Ye=>{(get(ne).kurztext2||get(ne).thea_pressekurztext2||get(ne).thea_kurztext2)&&Ye(Te)})}var ve=sibling(Je,2);{var et=Ye=>{var at=root_23$3(),st=child(at);{var vt=Dt=>{var Gt=root_24$3();html(Gt,()=>get(ne).kurztext3||get(ne).thea_pressekurztext3||get(ne).thea_kurztext3,!0),append(Dt,Gt)},gt=user_derived(()=>["-1","-3"].indexOf(get(ne).thea_status)!=-1),Ot=Dt=>{var Gt=comment$1(),Ft=first_child(Gt);html(Ft,()=>get(ne).kurztext3||get(ne).thea_pressekurztext3||get(ne).thea_kurztext3),append(Dt,Gt)};if_block(st,Dt=>{get(gt)?Dt(vt):Dt(Ot,-1)})}append(Ye,at)};if_block(ve,Ye=>{(get(ne).kurztext3||get(ne).thea_pressekurztext3||get(ne).thea_kurztext3)&&Ye(et)})}var mt=sibling(ve,2);{var ht=Ye=>{var at=root_26$4(),st=child(at);{var vt=Dt=>{var Gt=root_27$3();html(Gt,()=>get(ne).kurztext4||get(ne).thea_pressekurztext4||get(ne).thea_kurztext4,!0),append(Dt,Gt)},gt=user_derived(()=>["-1","-3"].indexOf(get(ne).thea_status)!=-1),Ot=Dt=>{var Gt=comment$1(),Ft=first_child(Gt);html(Ft,()=>get(ne).kurztext4||get(ne).thea_pressekurztext4||get(ne).thea_kurztext4),append(Dt,Gt)};if_block(st,Dt=>{get(gt)?Dt(vt):Dt(Ot,-1)})}append(Ye,at)};if_block(mt,Ye=>{(get(ne).kurztext4||get(ne).thea_pressekurztext4||get(ne).thea_kurztext4)&&Ye(ht)})}var ct=sibling(mt,2);{var Ue=Ye=>{var at=root_29$2();html(at,()=>markdownitinline(get(ne).attribute),!0),append(Ye,at)};if_block(ct,Ye=>{get(ne).attribute&&Ye(Ue)})}var ot=sibling(Se,2),bt=child(ot),At=child(bt);{var ft=Ye=>{var at=root_30$2(),st=first_child(at);{var vt=Ft=>{var Pt=comment$1(),qt=first_child(Pt);{var on=pt=>{var wt=root_32$2();append(pt,wt)},He=user_derived(()=>wiebald(get(ne).beginn)<2&&!1),Ve=pt=>{var wt=comment$1(),nn=first_child(wt);{var Wt=xn=>{var rn=root_34$1(),vn=child(rn);template_effect(()=>set_text(vn,get(ne).kartenspezialbutton)),append(xn,rn)},ln=xn=>{var rn=root_35$1(),vn=child(rn);{var Yn=Ln=>{var Xn=text$1("Ausverkauft");append(Ln,Xn)},Nn=Ln=>{var Xn=text$1("Restkarten");append(Ln,Xn)},gn=Ln=>{var Xn=text$1("Karten");append(Ln,Xn)},pr=Ln=>{var Xn=text$1("Karten");append(Ln,Xn)};if_block(vn,Ln=>{appState.status&&appState.status[get(ne).bilettix_id]&&appState.status[get(ne).bilettix_id][0].status==0&&get(ne).kartenstatus!="restkarten"||get(ne).kartenstatus=="ausverkauft"?Ln(Yn):appState.status&&appState.status[get(ne).bilettix_id]&&appState.status[get(ne).bilettix_id][0].status==1||get(ne).kartenstatus=="restkarten"?Ln(Nn,1):get(ne).kartenstatus=="karten"?Ln(gn,2):Ln(pr,-1)})}template_effect(()=>{set_class(rn,1,`button karten ${(get(ne).kartenstatus=="ausverkauft"||get(ne).kartenstatus=="restkarten"||get(ne).kartenstatus=="karten")&&appState.eingeloggt?"selbstgesetzt":appState.status&&appState.status[get(ne).bilettix_id]&&appState.status[get(ne).bilettix_id][0].status==1||get(ne).kartenstatus=="restkarten"?"restkarten":appState.status&&appState.status[get(ne).bilettix_id]&&appState.status[get(ne).bilettix_id][0].status==0||get(ne).kartenstatus=="ausverkauft"?"ausverkauft":""}`,"svelte-7oidyv"),set_attribute(rn,"href",get(ne).bilettix_id?"https://webshop-tickets.staatstheater-augsburg.de/de/veranstaltung/a707d36b-76e7-47f0-a10a-33033a333c21/"+get(ne).bilettix_id:get(ne).kartenlink?get(ne).kartenlink:"")}),append(xn,rn)},_n=user_derived(()=>get(ne).kartenstatus!="kein"&&(!!get(ne).kartenlink||!!get(ne).kartenlinkurl||get(ne).bilettix_link)&&!(get(ne).kartenlinkverfall&&c(new XDate(!0)).toISOString()>get(ne).kartenlinkverfall));if_block(nn,xn=>{get(ne).kartenspezialbutton?xn(Wt):get(_n)&&xn(ln,1)})}append(pt,wt)};if_block(qt,pt=>{get(He)?pt(on):pt(Ve,-1)})}append(Ft,Pt)},gt=user_derived(()=>wiebald(get(ne).beginn)>=1||!!get(ne).kartenspezialbutton);if_block(st,Ft=>{get(gt)&&Ft(vt)})}var Ot=sibling(st,2);{var Dt=Ft=>{var Pt=comment$1(),qt=first_child(Pt);{var on=pt=>{var wt=root_41$1();append(pt,wt)},He=user_derived(()=>!get(ne).kartenspezialbutton&&wiebald(get(ne).beginn)<2),Ve=pt=>{var wt=comment$1(),nn=first_child(wt);{var Wt=ln=>{var _n=root_43$1();html(_n,()=>markdownitinline(get(ne).kartenzusatz),!0),append(ln,_n)};if_block(nn,ln=>{get(ne).kartenzusatz&&ln(Wt)})}append(pt,wt)};if_block(qt,pt=>{get(He)?pt(on):pt(Ve,-1)})}append(Ft,Pt)},Gt=user_derived(()=>wiebald(get(ne).beginn)>1);if_block(Ot,Ft=>{get(Gt)&&Ft(Dt)})}append(Ye,at)},be=user_derived(()=>
2146["-1","-3"].indexOf(get(ne).thea_status)==-1);if_block(At,Ye=>{get(be)&&Ye(ft)})}var Et=sibling(bt,2),St=child(Et);html(St,()=>markdownitinline(get(ne).thea_preisgruppe.replace(/^\|\s/,"").replace(/\s/g,"&thinsp;")));var Jt=sibling(St,2);{var Bt=Ye=>{var at=root_44$1(),st=sibling(first_child(at)),vt=child(st);template_effect(()=>set_text(vt,`Preis ${get(ne).thea_preiscode??""}`)),append(Ye,at)},Vt=user_derived(()=>get(ne).thea_preiscode&&!/\((.*)\)/.test(get(ne).thea_preiscode));if_block(Jt,Ye=>{get(Vt)&&Ye(Bt)})}var Tt=sibling(Et,2);{var Be=Ye=>{var at=root_45$1(),st=child(at);each(st,17,()=>get(ne).abo,index,(Ot,Dt,Gt)=>{var Ft=root_46$1(),Pt=first_child(Ft,!0),qt=sibling(Pt);{var on=He=>{var Ve=root_47$1();append(He,Ve)};if_block(qt,He=>{Gt<get(ne).abo.length-1&&He(on)})}template_effect(()=>set_text(Pt,get(Dt))),append(Ot,Ft)});var vt=sibling(st,2);{var gt=Ot=>{var Dt=root_48$1(),Gt=sibling(first_child(Dt),1,!0);template_effect(()=>set_text(Gt,get(ne).bustouren)),append(Ot,Dt)};if_block(vt,Ot=>{get(ne).bustouren&&Ot(gt)})}append(Ye,at)};if_block(Tt,Ye=>{get(ne).abo&&Ye(Be)})}var Xe=sibling(Tt,2);{var Ke=Ye=>{var at=root_49$1(),st=child(at),vt=child(st),gt=child(vt),Ot=sibling(vt);template_effect((Dt,Gt)=>{set_style(st,`background:${Dt??""}`),set_text(gt,`${appState.zahlen[get(ne).bilettix_id][0].verkauft??""} / ${appState.zahlen[get(ne).bilettix_id][0].plaetze??""} =`),set_text(Ot,` ${Gt??""}%`)},[()=>perc2color(Math.round(100*appState.zahlen[get(ne).bilettix_id][0].verkauft/appState.zahlen[get(ne).bilettix_id][0].plaetze)),()=>Math.round(100*appState.zahlen[get(ne).bilettix_id][0].verkauft/appState.zahlen[get(ne).bilettix_id][0].plaetze)]),append(Ye,at)};if_block(Xe,Ye=>{appState.eingeloggt&&appState.zahlen&&appState.zahlen[get(ne).bilettix_id]&&Ye(Ke)})}var nt=sibling(Xe,2);{var xt=Ye=>{var at=root_50();each(at,21,()=>get(ne).thea_zusaetze,index,(st,vt)=>{var gt=comment$1(),Ot=first_child(gt);{var Dt=Pt=>{var qt=root_52(),on=first_child(qt),He=child(on);template_effect(Ve=>set_text(He,`${Ve??""} ${(get(vt).titel=="Semesterabo"?"Seminar »Semesterabo« Universität Augsburg":get(vt).titel=="Blick in die musikalische Werk"?"Blick in die musikalische Werkstatt":get(vt).titel)??""}`),[()=>c(get(vt).beginn).toString("HH:mm")]),append(Pt,qt)},Gt=user_derived(()=>["-1","-3"].indexOf(get(vt).status)!=-1),Ft=Pt=>{var qt=root_53(),on=first_child(qt);template_effect(He=>set_text(on,`${He??""} ${(get(vt).titel=="Semesterabo"?"Seminar »Semesterabo« Universität Augsburg":get(vt).titel=="Blick in die musikalische Werk"?"Blick in die musikalische Werkstatt":get(vt).titel)??""}`),[()=>c(get(vt).beginn).toString("HH:mm")]),append(Pt,qt)};if_block(Ot,Pt=>{get(Gt)?Pt(Dt):Pt(Ft,-1)})}append(st,gt)}),append(Ye,at)},Mt=user_derived(()=>["-1","-3"].indexOf(get(ne).thea_status)==-1&&!!get(ne).thea_zusaetze&&get(ne).thea_zusaetze.length);if_block(nt,Ye=>{get(Mt)&&Ye(xt)})}template_effect(Ye=>{set_text(Le,`${Ye??""} `),set_text(me,` ${(get(ne).thea_ort=="wo?"&&!get(ne).ort?"":get(ne).ort||get(ne).thea_ort)??""}`)},[()=>c(get(ne).beginn).toString("H(.mm) U'h'r")]),append(ae,oe)}),action(H,ae=>m?.()),append(q,H)}),append(f,g)},e=f=>{var g=root_54();append(f,g)};if_block(y,f=>{get(d).length>0?f(s):f(e,-1)})}append(z,A)}),append(o,p),pop()}var root_5$b=from_html('<img src="https://staatstheater-augsburg.de/img/blase_premiere.svg" alt="Premiere" style="width:80px"/>'),root_6$9=from_html('<img src="https://staatstheater-augsburg.de/img/blase_wieder_da.svg" alt="wieder da" style="width:80px"/>'),root_7$6=from_html('<img src="https://staatstheater-augsburg.de/img/blase_zum_letzten_mal.svg" alt="zum letzten Mal" style="width:80px"/>'),root_10$7=from_html('<span class="badge svelte-1j4ff6">VR vor Ort</span>'),root_9$4=from_html('<p class="stuecklinkabsatz svelte-1j4ff6"><del><!><a class="stuecklink svelte-1j4ff6"></a></del> <span class="entfaellt">entfällt</span></p>'),root_12$6=from_html('<span class="badge svelte-1j4ff6">VR vor Ort</span>'),root_11$6=from_html('<p class="stuecklinkabsatz svelte-1j4ff6"><!><a class="stuecklink svelte-1j4ff6"></a></p>'),root_14$2=from_html('<p class="stuecklinkabsatz svelte-1j4ff6"><a class="stuecklink svelte-1j4ff6"></a></p>'),root_16$5=from_html('<span class="badge svelte-1j4ff6">VR vor Ort</span>'),root_15$4=from_html('<p class="stuecklinkabsatz svelte-1j4ff6"><del><!><span class="keinlink svelte-1j4ff6"></span></del> <span class="entfaellt">entfällt</span></p>'),root_18$4=from_html("<del></del>"),root_17$4=from_html('<p class="ut svelte-1j4ff6"><!></p>'),root_21$5=from_html("<del></del>"),root_20$5=from_html('<p class="ut svelte-1j4ff6"><!></p>'),root_24$2=from_html("<del></del>"),root_23$2=from_html('<p class="ut svelte-1j4ff6"><!></p>'),root_27$2=from_html("<del></del>"),root_26$3=from_html('<p class="ut svelte-1j4ff6"><!></p>'),root_29$1=from_html('<p class="attribute svelte-1j4ff6"></p>'),root_32$1=from_html('<span class="kartenspezialbutton">Karten an der Abendkasse</span>'),root_34=from_html('<span class="kartenspezialbutton"> </span>'),root_35=from_html('<a target="_blank" rel="noopener"><!></a>'),root_41=from_html('<span class="kartenspezialbutton"></span>'),root_43=from_html('<p class="kartenzusatz svelte-1j4ff6"></p>'),root_30$1=from_html("<!> <!>",1),root_46=from_html(",<br/>",1),root_45=from_html(" <!>",1),root_47=from_html("<br/> ",1),root_44=from_html('<p class="abo svelte-1j4ff6"><!> <!></p>'),root_48=from_html('<div><div class="inline-block text-xs me-2 px-1.5 py-0.2 rounded"><span class="text-[rgba(0,0,0,.3)]"> </span> </div></div>'),root_4$k=from_html('<div class="termin svelte-1j4ff6"><div class="blasen"><!></div> <p class="terminzeit svelte-1j4ff6"> <br/> </p> <div class="termintitel"><div class="termintitelinner svelte-1j4ff6"><!> <div class="utzeilen svelte-1j4ff6"><!> <!> <!> <!> <!></div></div> <div class="abospalte"><div class="karten svelte-1j4ff6"><!></div> <!> <!></div></div></div>'),root_2$l=from_html('<div><p class="heuteodermorgen svelte-1j4ff6">Zwischen den Jahren</p> <!></div>'),root_49=from_html("<h4>Die heutigen Termine kommen gleich … Geduld …</h4>");function Terminekasten(o,n){push(n,!0);
2146function c(w){var z=new XDate(w,!0),A=z.getFullYear(),y=new XDate(A,2,31-(Math.floor(5*A/4)+4)%7,1,!0)<=z&&z<new XDate(A,9,31-(Math.floor(5*A/4)+1)%7,1,!0)?2:1;return z.addHours(y)}let d=user_derived(()=>appState.spielplannext12bundled&&appState.spielplannext12bundled.length?appState.spielplannext12bundled[0].slice(-3):[]);user_effect(()=>{console.log(get(d))});function h(w){setTimeout(function(){mauerbau()},1)}var m=comment$1(),p=first_child(m);key(p,()=>appState.spielplannext12bundled&&appState.status,w=>{var z=comment$1(),A=first_child(z);{var y=e=>{var f=root_2$l(),g=sibling(child(f),2);each(g,17,()=>get(d),index,(R,q,H,te)=>{var re=comment$1(),ae=first_child(re);each(ae,17,()=>get(q),index,(ne,oe)=>{var le=root_4$k(),ce=child(le),ue=child(ce);{var he=Tt=>{var Be=root_5$b();append(Tt,Be)},ge=user_derived(()=>/premiere/gi.test(get(oe).thea_veranstaltungs_kategorie)),Oe=Tt=>{var Be=root_6$9();append(Tt,Be)},$e=user_derived(()=>/wiederaufnahme/gi.test(get(oe).thea_veranstaltungs_kategorie)),Pe=Tt=>{var Be=root_7$6();append(Tt,Be)};if_block(ue,Tt=>{get(ge)?Tt(he):get($e)?Tt(Oe,1):get(oe).thea_veranstaltungs_kategorie==="zum letzten Mal"&&Tt(Pe,2)})}var Le=sibling(ce,2),me=child(Le),we=sibling(me,2),Se=sibling(Le,2),ye=child(Se),ke=child(ye);{var Ae=Tt=>{const Be=user_derived(()=>get(oe).link||get(oe).thea_link);var Xe=comment$1(),Ke=first_child(Xe);{var nt=Ye=>{var at=root_9$4(),st=child(at),vt=child(st);{var gt=Dt=>{var Gt=root_10$7();append(Dt,Gt)};if_block(vt,Dt=>{get(oe).thea_veranstaltungs_kategorie=="VR vor Ort"&&Dt(gt)})}var Ot=sibling(vt);html(Ot,()=>get(oe).titel||get(oe).thea_pressetitel||get(oe).thea_titel,!0),template_effect(Dt=>set_attribute(Ot,"href",`${Dt??""}${get(Be)??""}`),[()=>/^http/.test(get(Be))?"":"/"]),append(Ye,at)},xt=user_derived(()=>["-1","-3"].indexOf(get(oe).thea_status)!=-1&&!get(oe).titel),Mt=Ye=>{var at=root_11$6(),st=child(at);{var vt=Ot=>{var Dt=root_12$6();append(Ot,Dt)};if_block(st,Ot=>{get(oe).thea_veranstaltungs_kategorie=="VR vor Ort"&&Ot(vt)})}var gt=sibling(st);html(gt,()=>get(oe).titel||get(oe).thea_pressetitel||get(oe).thea_titel,!0),template_effect(Ot=>set_attribute(gt,"href",`${Ot??""}${get(Be)??""}`),[()=>/^http/.test(get(Be))?"":"/"]),append(Ye,at)};if_block(Ke,Ye=>{get(xt)?Ye(nt):Ye(Mt,-1)})}append(Tt,Xe)},Ie=Tt=>{var Be=comment$1(),Xe=first_child(Be);{var Ke=Mt=>{var Ye=root_14$2(),at=child(Ye);html(at,()=>get(oe).titel||get(oe).thea_pressetitel||get(oe).thea_titel,!0),template_effect(()=>set_attribute(at,"href",`/${(get(oe).link||get(oe).thea_link)??""}`)),append(Mt,Ye)},nt=user_derived(()=>["-1","-3"].indexOf(get(oe).thea_status)==-1),xt=Mt=>{var Ye=root_15$4(),at=child(Ye),st=child(at);{var vt=Ot=>{var Dt=root_16$5();append(Ot,Dt)};if_block(st,Ot=>{get(oe).thea_veranstaltungs_kategorie=="VR vor Ort"&&Ot(vt)})}var gt=sibling(st);html(gt,()=>get(oe).titel||get(oe).thea_pressetitel||get(oe).thea_titel,!0),append(Mt,Ye)};if_block(Xe,Mt=>{get(nt)?Mt(Ke):Mt(xt,-1)})}append(Tt,Be)};if_block(ke,Tt=>{get(oe).link||get(oe).thea_link?Tt(Ae):Tt(Ie,-1)})}var qe=sibling(ke,2),Ge=child(qe);{var Je=Tt=>{var Be=root_17$4(),Xe=child(Be);{var Ke=Mt=>{var Ye=root_18$4();html(Ye,()=>get(oe).kurztext||get(oe).thea_pressekurztext1||get(oe).thea_kurztext1,!0),append(Mt,Ye)},nt=user_derived(()=>["-1","-3"].indexOf(get(oe).thea_status)!=-1),xt=Mt=>{var Ye=comment$1(),at=first_child(Ye);html(at,()=>get(oe).kurztext||get(oe).thea_pressekurztext1||get(oe).thea_kurztext1),append(Mt,Ye)};if_block(Xe,Mt=>{get(nt)?Mt(Ke):Mt(xt,-1)})}append(Tt,Be)};if_block(Ge,Tt=>{(get(oe).kurztext1||get(oe).thea_pressekurztext1||get(oe).thea_kurztext1)&&Tt(Je)})}var Te=sibling(Ge,2);{var ve=Tt=>{var Be=root_20$5(),Xe=child(Be);{var Ke=Mt=>{var Ye=root_21$5();html(Ye,()=>get(oe).kurztext2||get(oe).thea_pressekurztext2||get(oe).thea_kurztext2,!0),append(Mt,Ye)},nt=user_derived(()=>["-1","-3"].indexOf(get(oe).thea_status)!=-1),xt=Mt=>{var Ye=comment$1(),at=first_child(Ye);html(at,()=>get(oe).kurztext2||get(oe).thea_pressekurztext2||get(oe).thea_kurztext2),append(Mt,Ye)};if_block(Xe,Mt=>{get(nt)?Mt(Ke):Mt(xt,-1)})}append(Tt,Be)};if_block(Te,Tt=>{(get(oe).kurztext2||get(oe).thea_pressekurztext2||get(oe).thea_kurztext2)&&Tt(ve)})}var et=sibling(Te,2);{var mt=Tt=>{var Be=root_23$2(),Xe=child(Be);{var Ke=Mt=>{var Ye=root_24$2();html(Ye,()=>get(oe).kurztext3||get(oe).thea_pressekurztext3||get(oe).thea_kurztext3,!0),append(Mt,Ye)},nt=user_derived(()=>
2146["-1","-3"].indexOf(get(oe).thea_status)!=-1),xt=Mt=>{var Ye=comment$1(),at=first_child(Ye);html(at,()=>get(oe).kurztext3||get(oe).thea_pressekurztext3||get(oe).thea_kurztext3),append(Mt,Ye)};if_block(Xe,Mt=>{get(nt)?Mt(Ke):Mt(xt,-1)})}append(Tt,Be)};if_block(et,Tt=>{(get(oe).kurztext3||get(oe).thea_pressekurztext3||get(oe).thea_kurztext3)&&Tt(mt)})}var ht=sibling(et,2);{var ct=Tt=>{var Be=root_26$3(),Xe=child(Be);{var Ke=Mt=>{var Ye=root_27$2();html(Ye,()=>get(oe).kurztext4||get(oe).thea_pressekurztext4||get(oe).thea_kurztext4,!0),append(Mt,Ye)},nt=user_derived(()=>["-1","-3"].indexOf(get(oe).thea_status)!=-1),xt=Mt=>{var Ye=comment$1(),at=first_child(Ye);html(at,()=>get(oe).kurztext4||get(oe).thea_pressekurztext4||get(oe).thea_kurztext4),append(Mt,Ye)};if_block(Xe,Mt=>{get(nt)?Mt(Ke):Mt(xt,-1)})}append(Tt,Be)};if_block(ht,Tt=>{(get(oe).kurztext4||get(oe).thea_pressekurztext4||get(oe).thea_kurztext4)&&Tt(ct)})}var Ue=sibling(ht,2);{var ot=Tt=>{var Be=root_29$1();html(Be,()=>markdownit(get(oe).attribute),!0),append(Tt,Be)};if_block(Ue,Tt=>{get(oe).attribute&&Tt(ot)})}var bt=sibling(ye,2),At=child(bt),ft=child(At);{var be=Tt=>{var Be=root_30$1(),Xe=first_child(Be);{var Ke=at=>{var st=comment$1(),vt=first_child(st);{var gt=Gt=>{var Ft=root_32$1();append(Gt,Ft)},Ot=user_derived(()=>wiebald(get(oe).beginn)<2&&!1),Dt=Gt=>{var Ft=comment$1(),Pt=first_child(Ft);{var qt=Ve=>{var pt=root_34(),wt=child(pt);template_effect(()=>set_text(wt,get(oe).kartenspezialbutton)),append(Ve,pt)},on=Ve=>{var pt=root_35(),wt=child(pt);{var nn=xn=>{var rn=text$1("Ausverkauft");append(xn,rn)},Wt=xn=>{var rn=text$1("Restkarten");append(xn,rn)},ln=xn=>{var rn=text$1("Karten");append(xn,rn)},_n=xn=>{var rn=text$1("Karten");append(xn,rn)};if_block(wt,xn=>{appState.status&&appState.status[get(oe).bilettix_id]&&appState.status[get(oe).bilettix_id][0].status==0&&get(oe).kartenstatus!="restkarten"||get(oe).kartenstatus=="ausverkauft"?xn(nn):appState.status&&appState.status[get(oe).bilettix_id]&&appState.status[get(oe).bilettix_id][0].status==1||get(oe).kartenstatus=="restkarten"?xn(Wt,1):get(oe).kartenstatus=="karten"?xn(ln,2):xn(_n,-1)})}template_effect(()=>{set_class(pt,1,`button karten ${(get(oe).kartenstatus=="ausverkauft"||get(oe).kartenstatus=="restkarten"||get(oe).kartenstatus=="karten")&&appState.eingeloggt?"selbstgesetzt":appState.status&&appState.status[get(oe).bilettix_id]&&appState.status[get(oe).bilettix_id][0].status==1||get(oe).kartenstatus=="restkarten"?"restkarten":appState.status&&appState.status[get(oe).bilettix_id]&&appState.status[get(oe).bilettix_id][0].status==0||get(oe).kartenstatus=="ausverkauft"?"ausverkauft":""}`,"svelte-1j4ff6"),set_attribute(pt,"href",get(oe).bilettix_id?"https://webshop-tickets.staatstheater-augsburg.de/de/veranstaltung/a707d36b-76e7-47f0-a10a-33033a333c21/"+get(oe).bilettix_id:get(oe).kartenlink?get(oe).kartenlink:"")}),append(Ve,pt)},He=user_derived(()=>get(oe).kartenstatus!="kein"&&(!!get(oe).kartenlink||!!get(oe).kartenlinkurl||get(oe).bilettix_link)&&!(get(oe).kartenlinkverfall&&c(new XDate(!0)).toISOString()>get(oe).kartenlinkverfall));if_block(Pt,Ve=>{get(oe).kartenspezialbutton?Ve(qt):get(He)&&Ve(on,1)})}append(Gt,Ft)};if_block(vt,Gt=>{get(Ot)?Gt(gt):Gt(Dt,-1)})}append(at,st)},nt=user_derived(()=>wiebald(get(oe).beginn)>=1||!!get(oe).kartenspezialbutton);if_block(Xe,at=>{get(nt)&&at(Ke)})}var xt=sibling(Xe,2);{var Mt=at=>{var st=comment$1(),vt=first_child(st);{var gt=Gt=>{var Ft=root_41();append(Gt,Ft)},Ot=user_derived(()=>!get(oe).kartenspezialbutton&&wiebald(get(oe).beginn)<2),Dt=Gt=>{var Ft=comment$1(),Pt=first_child(Ft);{var qt=on=>{var He=root_43();html(He,()=>markdownitinline(get(oe).kartenzusatz),!0),append(on,He)};if_block(Pt,on=>{get(oe).kartenzusatz&&on(qt)})}append(Gt,Ft)};if_block(vt,Gt=>{get(Ot)?Gt(gt):Gt(Dt,-1)})}append(at,st)},Ye=user_derived(()=>wiebald(get(oe).beginn)>1);if_block(xt,at=>{get(Ye)&&at(Mt)})}append(Tt,Be)},Et=user_derived(()=>["-1","-3"].indexOf(get(oe).thea_status)==-1);if_block(ft,Tt=>{get(Et)&&Tt(be)})}var St=sibling(At,2);{var Jt=Tt=>{var Be=root_44(),Xe=child(Be);each(Xe,17,()=>get(oe).abo,index,(xt,Mt,Ye)=>{var at=root_45(),st=first_child(at,!0),vt=sibling(st);{var gt=Ot=>{var Dt=root_46();append(Ot,Dt)};if_block(vt,Ot=>{Ye<get(oe).abo.length-1&&Ot(gt)})}template_effect(()=>set_text(st,get(Mt))),append(xt,at)});var Ke=sibling(Xe,2);{var nt=xt=>{var Mt=root_47(),Ye=sibling(first_child(Mt),1,!0);template_effect(()=>set_text(Ye,get(oe).bustouren)),append(xt,Mt)};if_block(Ke,xt=>{get(oe).bustouren&&xt(nt)})}append(Tt,Be)};if_block(St,Tt=>{get(oe).abo&&Tt(Jt)})}var Bt=sibling(St,2);{var Vt=Tt=>{var Be=root_48(),Xe=child(Be),Ke=child(Xe),nt=child(Ke),xt=sibling(Ke);template_effect((Mt,Ye)=>{set_style(Xe,`background:${Mt??""}`),set_text(nt,`${appState.zahlen[get(oe).bilettix_id][0].verkauft??""} / ${appState.zahlen[get(oe).bilettix_id][0].plaetze??""} =`),set_text(xt,` ${Ye??""}%`)},[()=>perc2color(Math.round(100*appState.zahlen[get(oe).bilettix_id][0].verkauft/appState.zahlen[get(oe).bilettix_id][0].plaetze)),()=>Math.round(100*appState.zahlen[get(oe).bilettix_id][0].verkauft/appState.zahlen[get(oe).bilettix_id][0].plaetze)]),append(Tt,Be)};if_block(Bt,Tt=>{appState.eingeloggt&&appState.zahlen&&appState.zahlen[get(oe).bilettix_id]&&Tt(Vt)})}template_effect(Tt=>{set_text(me,`${Tt??""} `),set_text(we,` ${(get(oe).thea_ort=="wo?"&&!get(oe).ort?"":get(oe).ort||get(oe).thea_ort)??""}`)},[()=>c(get(oe).beginn).toString("d.M. H(.mm) U'h'r")]),append(ne,le)}),append(R,re)}),action(f,R=>h?.()),append(e,f)},s=e=>
2146{var f=root_49();append(e,f)};if_block(A,e=>{get(d).length>0?e(y):e(s,-1)})}append(w,z)}),append(o,m),pop()}var root_3$g=from_html('<p style="line-height:1.2;font-size:1.3rem;margin-bottom:.5rem">Die heute um 20.30 Uhr geplante Vorstellung:</p> <p style="line-height:1.2;font-size:1.3rem;margin-bottom:1rem"><a style="font-family:cooper;"></a></p> <p class="entfaellt" style="line-height:1.2;font-size:1.3rem;">entfällt!</p> <p style="font-size:.8rem;font-weight:500;line-height:1.2">Die Kosten werden direkt zurückerstattet. Dafür müssen Sie nichts weiter veranlassen. Dies gilt für die Bezahlmethoden PayPal, Mastercard und Bankeinzug. Sollten Sie bar gezahlt haben, können Sie die Karten innerhalb von zehn Tagen beim Besucherservice zurückgeben. Eine Umbuchung ist nur telefonisch oder persönlich möglich.</p>',1),root_4$j=from_html('<p style="line-height:1.2;font-size:1.3rem;margin-bottom:.5rem">Die heutige Vorstellung:</p> <p style="line-height:1.2;font-size:1.3rem;margin-bottom:1rem"><a style="font-family:cooper;"></a></p> <p style="line-height:1.2;font-size:1.3rem;">findet statt!<br/></p>',1),root_5$a=from_html('<p style="line-height:1.2;font-size:1.3rem;">An dieser Stelle wird spätestens um 19&nbsp;Uhr mitgeteilt, ob die Vorstellung heute um 20.30&nbsp;Uhr stattfinden kann.</p>'),root_6$8=from_html('<p style="line-height:1.2;font-size:1.3rem;">An dieser Stelle wird jeweils spätestens um 19&nbsp;Uhr mitgeteilt, ob die Vorstellung um 20.30&nbsp;Uhr stattfinden kann.</p>'),root_1$i=from_html('<div style="background: url(/img/svg/spamalotbg.svg); background-repeat: no-repeat;  background-position: center; background-size: cover; color:#000;padding:1rem"><div style="background:rgba(256,256,256,.85);background: linear-gradient(0deg, rgba(256,256,256,.85) 0%, rgba(256,256,256,.75) 100%); padding:1rem;border-radius:3px"><h2 class="wetter svelte-c3c7vz"><span class="svelte-c3c7vz">Wetter-Info zur</span> <span class="svelte-c3c7vz">Sommerbühne</span></h2> <p style="font-family:museosans;font-size:.8rem;letter-spacing:.1rem; text-transform:uppercase;">Monty Python’s Spamalot</p> <div style="padding:0 1rem; margin-bottom:.5rem;"><!></div></div></div>'),root_7$5=from_html("<h2>gleich…</h2>");function Wetter(o,n){push(n,!0);function c(e){var f=new XDate(e,!0),g=f.getFullYear(),R=new XDate(g,2,31-(Math.floor(5*g/4)+4)%7,1,!0)<=f&&f<new XDate(g,9,31-(Math.floor(5*g/4)+1)%7,1,!0)?2:1;return f.addHours(R)}let d=user_derived(()=>appState.spielplannext12bundled&&appState.spielplannext12bundled.length?appState.spielplannext12bundled[0][0]:[]),h=user_derived(()=>_.find(get(d),e=>e.thea_ort=="Sommerbühne am Gaswerk")),m=user_derived(()=>!!get(h)&&(["-1","-3"].indexOf(get(h).thea_status)!=-1||get(h).wetterstatus=="findetnichtstatt")),p=proxy(c(new XDate(!0)).clearTime().addHours(18).addMinutes(32));function w(e){setTimeout(function(){mauerbau()},100)}var z=comment$1(),A=first_child(z);{var y=e=>{var f=root_1$i(),g=child(f),R=sibling(child(g),4),q=child(R);{var H=re=>{var ae=comment$1(),ne=first_child(ae);{var oe=he=>{var ge=root_3$g(),Oe=sibling(first_child(ge),2),$e=child(Oe);html($e,()=>get(h).titel||get(h).thea_titel,!0),template_effect(()=>set_attribute($e,"href",`/${(get(h).link||get(h).thea_link)??""}`)),append(he,ge)},le=he=>{var ge=root_4$j(),Oe=sibling(first_child(ge),2),$e=child(Oe);html($e,()=>get(h).titel||get(h).thea_titel,!0),template_effect(()=>set_attribute($e,"href",`/${(get(h).link||get(h).thea_link)??""}`)),append(he,ge)},ce=user_derived(()=>c(new XDate(!0))>=p||get(h).wetterstatus=="findetstatt"),ue=he=>{var ge=root_5$a();append(he,ge)};if_block(ne,he=>{get(m)?he(oe):get(ce)?he(le,1):he(ue,-1)})}append(re,ae)},te=re=>{var ae=root_6$8();append(re,ae)};if_block(q,re=>{get(h)?re(H):re(te,-1)})}action(f,re=>w?.()),append(e,f)},s=e=>{var f=root_7$5();append(e,f)};if_block(A,e=>{get(d).length>0?e(y):e(s,-1)})}append(o,z),pop()}var root_1$h=from_html('<p class="svelte-17ktfcv"> </p>'),root_2$k=from_html('<label class="svelte-17ktfcv">E-Mail-Adresse:</label> <input type="text"/> <button>Anmelden</button>',1);function Newsletter(o,n){push(n,!0);let c=proxy({});onMount(async()=>{});const d=function(){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(c.email)?!0:(alert("Ist das eine E-Mail-Adresse?"),!1)};let h=state(proxy({}));const m=async()=>
2146{if(!d())return;const y=await fetch("/api/newsletteradresseeintragen",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(c)});set(h,await y.json(),!0)};var p=comment$1(),w=first_child(p);{var z=y=>{var s=root_1$h(),e=child(s);template_effect(()=>set_text(e,get(h).res)),append(y,s)},A=y=>{var s=root_2$k(),e=sibling(first_child(s),2),f=sibling(e,2);bind_value(e,()=>c.email,g=>c.email=g),delegated("click",f,m),append(y,s)};if_block(w,y=>{get(h).res?y(z):y(A,-1)})}append(o,p),pop()}delegate(["click"]);var root_4$i=from_html('<li class="svelte-89vtfm"><select class="svelte-89vtfm"><option></option><option>1</option><option>2</option><option>3</option><option>4</option><option>5</option></select> </li>'),root_3$f=from_html('<ul class="svelte-89vtfm"></ul> <p class="svelte-89vtfm"> </p> <label class="svelte-89vtfm"> </label> <select style="width:8rem" class="svelte-89vtfm"><option> </option><option>Paypal</option><option> </option></select> <label class="svelte-89vtfm"> </label> <input type="text"/> <label class="svelte-89vtfm"> </label> <input type="text"/> <label class="svelte-89vtfm"> </label> <input type="text"/> <label class="svelte-89vtfm"> </label> <input type="text"/> <label class="svelte-89vtfm"> </label> <input type="text"/> <label class="svelte-89vtfm"> </label> <select style="width:134px" class="svelte-89vtfm"><option> </option><option> </option><option> </option><option> </option></select> <label class="svelte-89vtfm">E-Mail</label> <input type="text"/> <label class="svelte-89vtfm"> </label> <input type="text"/> <button>Bestellen</button>',1);function VrOrder(o,n){push(n,!0);let c=state(proxy([])),d=proxy({}),h="de";user_effect(()=>{window.auftr=d}),user_effect(()=>{window.repe=get(c)});const m=async()=>{let q=await(await fetch("/api/order_repertoire")).json();return set(c,[..._.map(q.vr,H=>({...H,sorte:"vr"}))],!0),console.log(get(c)),d.warenkorb=_.mapValues(_.groupBy(get(c),H=>H.kuerzel),H=>(H=0,H)),d.type="vr",get(c)};onMount(async()=>{m()});const p=function(R){return!R.payment_method||!R.vorname||!R.nachname||!R.strasse||!R.email_conf||!R.plz||!R.ort||!R.land||!R.email?(alert(orderlang[h].ALERT_MANDATORY),!1):/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(R.email)?R.email!==R.email_conf?(alert(orderlang[h].ALERT_MAIL_CONFIRM),!1):!0:(alert(orderlang[h].ALERT_MAIL_INVALID),!1)};let w=proxy({});const z=async()=>{if(!p(d))return;w.message=orderlang[h].NOTIFY_PATIENCE;const q=await(await fetch("/order_anmeldung",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(d)})).json();q.rc==="0"&&(document.location=q.redirect)};let A=user_derived(()=>y(d.warenkorb));const y=function(){if(!d.warenkorb||!get(c).length)return"0,00 €";var R=0;for(const q of Object.keys(d.warenkorb))if(d.warenkorb[q])for(const H of get(c))q===H.kuerzel&&(R+=H.preis*d.warenkorb[q]);return(R/100).toFixed(2).replace(/\./g,",")+" €"};var s=comment$1(),e=first_child(s);{var f=R=>{var q=text$1();template_effect(()=>set_text(q,w.message)),append(R,q)},g=R=>{var q=comment$1(),H=first_child(q);{var te=re=>{var ae=root_3$f(),ne=first_child(ae);each(ne,21,()=>get(c),index,(nt,xt)=>{var Mt=root_4$i(),Ye=child(Mt),at=child(Ye);at.value=at.__value="0";var st=sibling(at);st.value=st.__value="1";var vt=sibling(st);vt.value=vt.__value="2";var gt=sibling(vt);gt.value=gt.__value="3";var Ot=sibling(gt);Ot.value=Ot.__value="4";var Dt=sibling(Ot);Dt.value=Dt.__value="5";var Gt=sibling(Ye);template_effect(()=>set_text(Gt,` ${get(xt).titel??""}`)),bind_select_value(Ye,()=>d.warenkorb[get(xt).kuerzel],Ft=>d.warenkorb[get(xt).kuerzel]=Ft),append(nt,Mt)});var oe=sibling(ne,2),le=child(oe),ce=sibling(oe,2),ue=child(ce),he=sibling(ce,2),ge=child(he),Oe=child(ge);ge.value=ge.__value="";var $e=sibling(ge);$e.value=$e.__value="paypal";var Pe=sibling($e),Le=child(Pe);Pe.value=Pe.__value="creditcard";var me=sibling(he,2),we=child(me),Se=sibling(me,2),ye=sibling(Se,2),ke=child(ye),Ae=sibling(ye,2),Ie=sibling(Ae,2),qe=child(Ie),Ge=sibling(Ie,2),Je=sibling(Ge,2),Te=child(Je),ve=sibling(Je,2),et=sibling(ve,2),mt=child(et),ht=sibling(et,2),ct=sibling(ht,2),Ue=child(ct),ot=sibling(ct,2),bt=child(ot),At=child(bt);bt.value=bt.__value="";var ft=sibling(bt),be=child(ft);ft.value=ft.__value="DE";var Et=sibling(ft),St=child(Et);Et.value=Et.__value="AT";var Jt=sibling(Et),Bt=child(Jt);Jt.value=Jt.__value="CH";var Vt=sibling(ot,4),Tt=sibling(Vt,2),Be=child(Tt),Xe=sibling(Tt,2),Ke=sibling(Xe,2);template_effect(()=>{set_text(le,`Summe: ${get(A)??""}`),set_text(ue,orderlang[h].PAYMENT_METHOD),set_text(Oe,orderlang[h].CHOOSE),set_text(Le,orderlang[h].CC),set_text(we,orderlang[h].PRENAME),set_text(ke,orderlang[h].SURNAME),set_text(qe,orderlang[h].STREET),set_text(Te,orderlang[h].ZIPCODE),set_text(mt,orderlang[h].CITY),set_text(Ue,orderlang[h].COUNTRY),set_text(At,orderlang[h].CHOOSE),set_text(be,orderlang[h].GERMANY),set_text(St,orderlang[h].AUSTRIA),set_text(Bt,orderlang[h].SWITZERLAND),set_text(Be,orderlang[h].EMAIL_CONFIRM)}),event("blur",he,()=>{d.warenkorb=d.warenkorb}),bind_select_value(he,()=>d.payment_method,nt=>d.payment_method=nt),bind_value(Se,()=>d.vorname,nt=>d.vorname=nt),bind_value(Ae,()=>d.nachname,nt=>d.nachname=nt),bind_value(Ge,()=>d.strasse,nt=>
2146d.strasse=nt),bind_value(ve,()=>d.plz,nt=>d.plz=nt),bind_value(ht,()=>d.ort,nt=>d.ort=nt),bind_select_value(ot,()=>d.land,nt=>d.land=nt),bind_value(Vt,()=>d.email,nt=>d.email=nt),bind_value(Xe,()=>d.email_conf,nt=>d.email_conf=nt),delegated("click",Ke,z),append(re,ae)};if_block(H,re=>{get(c).length&&re(te)})}append(R,q)};if_block(e,R=>{w.message?R(f):R(g,-1)})}append(o,s),pop()}delegate(["click"]);var root_4$h=from_html('<li class="svelte-fl6nb3"><label class="checkboxcontainer svelte-fl6nb3"><input type="checkbox" class="svelte-fl6nb3"/> <span class="checkmark svelte-fl6nb3"></span></label> </li>'),root_3$e=from_html('<ul class="svelte-fl6nb3"></ul> <p class="svelte-fl6nb3"> </p> <label style="margin-bottom:.5rem" class="svelte-fl6nb3"> </label> <select style="width:9rem" class="svelte-fl6nb3"><option> </option><option>Paypal</option><option> </option></select> <label class="svelte-fl6nb3"> </label> <input type="text"/> <label class="svelte-fl6nb3"> </label> <input type="text"/> <label class="svelte-fl6nb3"> </label> <input type="text"/> <label class="svelte-fl6nb3"> </label> <input type="text"/> <label class="svelte-fl6nb3"> </label> <input type="text"/> <label class="svelte-fl6nb3">E-Mail</label> <input type="text"/> <label class="svelte-fl6nb3"> </label> <input type="text"/> <button>Bestellen</button>',1);function VodOrder(o,n){push(n,!0);let c=state(proxy([])),d=proxy({}),h="de";user_effect(()=>{window.auftr=d}),user_effect(()=>{window.repe=get(c)});const m=async()=>{let q=await(await fetch("/api/order_repertoire")).json();return set(c,[..._.map(q.vod,H=>({...H,sorte:"vod"}))],!0),d.warenkorb=_.mapValues(_.groupBy(get(c),H=>H.kuerzel),H=>(H=0,H)),d.type="vod",get(c)};onMount(async()=>{m()});const p=function(R){return!R.payment_method||!R.vorname||!R.nachname||!R.strasse||!R.email_conf||!R.plz||!R.ort||!R.email?(alert(orderlang[h].ALERT_MANDATORY),!1):/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(R.email)?R.email!==R.email_conf?(alert(orderlang[h].ALERT_MAIL_CONFIRM),!1):!0:(alert(orderlang[h].ALERT_MAIL_INVALID),!1)};let w=proxy({});const z=async()=>{if(!p(d))return;w.message=orderlang[h].NOTIFY_PATIENCE;const q=await(await fetch("/order_anmeldung",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(d)})).json();q.rc==="0"&&(document.location=q.redirect)};let A=user_derived(()=>y(d.warenkorb));const y=function(){if(!d.warenkorb||!get(c).length)return"0,00 €";var R=0;for(const q of Object.keys(d.warenkorb))if(d.warenkorb[q])for(const H of get(c))q===H.kuerzel&&(R+=H.preis*d.warenkorb[q]);return(R/100).toFixed(2).replace(/\./g,",")+" €"};var s=comment$1(),e=first_child(s);{var f=R=>{var q=text$1();template_effect(()=>set_text(q,w.message)),append(R,q)},g=R=>{var q=comment$1(),H=first_child(q);{var te=re=>{var ae=root_3$e(),ne=first_child(ae);each(ne,21,()=>get(c),index,(ft,be)=>{var Et=root_4$h(),St=child(Et),Jt=child(St),Bt=sibling(St);template_effect(()=>{set_checked(Jt,!!(d.warenkorb&&d.warenkorb[get(be).kuerzel])),set_text(Bt,` ${get(be).titel??""}`)}),delegated("click",Jt,()=>{d.warenkorb[get(be).kuerzel]=d.warenkorb[get(be).kuerzel]?0:1}),append(ft,Et)});var oe=sibling(ne,2),le=child(oe),ce=sibling(oe,2),ue=child(ce),he=sibling(ce,2),ge=child(he),Oe=child(ge);ge.value=ge.__value="";var $e=sibling(ge);$e.value=$e.__value="paypal";var Pe=sibling($e),Le=child(Pe);Pe.value=Pe.__value="creditcard";var me=sibling(he,2),we=child(me),Se=sibling(me,2),ye=sibling(Se,2),ke=child(ye),Ae=sibling(ye,2),Ie=sibling(Ae,2),qe=child(Ie),Ge=sibling(Ie,2),Je=sibling(Ge,2),Te=child(Je),ve=sibling(Je,2),et=sibling(ve,2),mt=child(et),ht=sibling(et,2),ct=sibling(ht,4),Ue=sibling(ct,2),ot=child(Ue),bt=sibling(Ue,2),At=sibling(bt,2);template_effect(()=>{set_text(le,`Summe: ${get(A)??""}`),set_text(ue,orderlang[h].PAYMENT_METHOD),set_text(Oe,orderlang[h].CHOOSE),set_text(Le,orderlang[h].CC),set_text(we,orderlang[h].PRENAME),set_text(ke,orderlang[h].SURNAME),set_text(qe,orderlang[h].STREET),set_text(Te,orderlang[h].ZIPCODE),set_text(mt,orderlang[h].CITY),set_text(ot,orderlang[h].EMAIL_CONFIRM)}),event("blur",he,()=>{d.warenkorb=d.warenkorb}),bind_select_value(he,()=>d.payment_method,ft=>d.payment_method=ft),bind_value(Se,()=>d.vorname,ft=>d.vorname=ft),bind_value(Ae,()=>d.nachname,ft=>d.nachname=ft),bind_value(Ge,()=>d.strasse,ft=>
2146d.strasse=ft),bind_value(ve,()=>d.plz,ft=>d.plz=ft),bind_value(ht,()=>d.ort,ft=>d.ort=ft),bind_value(ct,()=>d.email,ft=>d.email=ft),bind_value(bt,()=>d.email_conf,ft=>d.email_conf=ft),delegated("click",At,z),append(re,ae)};if_block(H,re=>{get(c).length&&re(te)})}append(R,q)};if_block(e,R=>{w.message?R(f):R(g,-1)})}append(o,s),pop()}delegate(["click"]);var root_2$j=from_html('<label class="svelte-10v5baz">Promo-Code</label> <input type="text"/> <label class="svelte-10v5baz"> </label> <input type="number" style="width:4rem"/> <p class="svelte-10v5baz"> </p> <label class="svelte-10v5baz"> </label> <select style="width:8rem" class="svelte-10v5baz"><option> </option><option>Paypal</option><option> </option><option> </option></select> <label class="svelte-10v5baz"> </label> <input type="text"/> <label class="svelte-10v5baz"> </label> <input type="text"/> <label class="svelte-10v5baz"> </label> <input type="text"/> <label class="svelte-10v5baz"> </label> <input type="text"/> <label class="svelte-10v5baz"> </label> <input type="text"/> <label class="svelte-10v5baz">E-Mail</label> <input type="text"/> <label class="svelte-10v5baz"> </label> <input type="text"/> <button> </button>',1);function SoloOrder(o,n){push(n,!0),proxy([]);let c=proxy({warenkorb:{solo:1},type:"solo"}),d=user_derived(()=>appState.sprache==="en"?"en":"de"),h=1500;user_effect(()=>{window.auftr=c});const m=function(q){return!q.payment_method||!q.vorname||!q.nachname||!q.strasse||!q.email_conf||!q.plz||!q.ort||!q.email?(alert(orderlang[get(d)].ALERT_MANDATORY),!1):/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(q.email)?q.email!==q.email_conf?(alert(orderlang[get(d)].ALERT_MAIL_CONFIRM),!1):!0:(alert(orderlang[get(d)].ALERT_MAIL_INVALID),!1)};let p=proxy({});const w=async()=>{if(!m(c))return;p.message=orderlang[get(d)].NOTIFY_PATIENCE;const H=await(await fetch("/order_anmeldung",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(c)})).json();H.rc==="0"&&(document.location=H.redirect)};let z=state(!1);const A=async q=>{(await(await fetch("/api/promocodetest/"+q)).json()).ok?set(z,!0):set(z,!1)};user_effect(()=>{A(c.promocode)});let y=user_derived(()=>get(z)?.7:1),s=user_derived(()=>(get(y)*h*c.warenkorb.solo/100).toFixed(2).replace(/\./g,",")+" €");var e=comment$1(),f=first_child(e);{var g=q=>{var H=text$1();template_effect(()=>set_text(H,p.message)),append(q,H)},R=q=>{var H=root_2$j(),te=sibling(first_child(H),2),re=sibling(te,2),ae=child(re),ne=sibling(re,2),oe=sibling(ne,2),le=child(oe),ce=sibling(oe,2),ue=child(ce),he=sibling(ce,2),ge=child(he),Oe=child(ge);ge.value=ge.__value="";var $e=sibling(ge);$e.value=$e.__value="paypal";var Pe=sibling($e),Le=child(Pe);Pe.value=Pe.__value="creditcard";var me=sibling(Pe),we=child(me);me.value=me.__value="lastschrift";var Se=sibling(he,2),ye=child(Se),ke=sibling(Se,2),Ae=sibling(ke,2),Ie=child(Ae),qe=sibling(Ae,2),Ge=sibling(qe,2),Je=child(Ge),Te=sibling(Ge,2),ve=sibling(Te,2),et=child(ve),mt=sibling(ve,2),ht=sibling(mt,2),ct=child(ht),Ue=sibling(ht,2),ot=sibling(Ue,4),bt=sibling(ot,2),At=child(bt),ft=sibling(bt,2),be=sibling(ft,2),Et=child(be);template_effect(()=>{set_text(ae,orderlang[get(d)].NUMBER),set_text(le,`${orderlang[get(d)].TOTAL_PRICE??""} ${get(s)??""}`),set_text(ue,orderlang[get(d)].PAYMENT_METHOD),set_text(Oe,orderlang[get(d)].CHOOSE),set_text(Le,orderlang[get(d)].CC),set_text(we,orderlang[get(d)].DC),set_text(ye,orderlang[get(d)].PRENAME),set_text(Ie,orderlang[get(d)].SURNAME),set_text(Je,orderlang[get(d)].STREET),set_text(et,orderlang[get(d)].ZIPCODE),set_text(ct,orderlang[get(d)].CITY),set_text(At,orderlang[get(d)].EMAIL_CONFIRM),set_text(Et,orderlang[get(d)].ORDER)}),bind_value(te,()=>c.promocode,St=>c.promocode=St),bind_value(ne,()=>c.warenkorb.solo,St=>c.warenkorb.solo=St),event("blur",he,()=>{c.warenkorb=c.warenkorb}),bind_select_value(he,()=>c.payment_method,St=>c.payment_method=St),bind_value(ke,()=>c.vorname,St=>c.vorname=St),bind_value(qe,()=>c.nachname,St=>c.nachname=St),bind_value(Te,()=>c.strasse,St=>c.strasse=St),bind_value(mt,()=>c.plz,St=>c.plz=St),bind_value(Ue,()=>c.ort,St=>c.ort=St),bind_value(ot,()=>c.email,St=>c.email=St),bind_value(ft,()=>c.email_conf,St=>c.email_conf=St),delegated("click",be,w),append(q,H)};if_block(f,q=>{p.message?q(g):q(R,-1)})}append(o,e),pop()}delegate(["click"]);var root_3$d=from_html("<li><a> </a></li>"),root_2$i=from_html('<li> <ul class="svelte-1t6dacg"></ul></li>'),root_1$g=from_html('<h4>Ihre Codes:</h4> <ul class="svelte-1t6dacg"></ul>',1);function Vrcodes(o,n){push(n,!0);let c={vorhaenge:"14 Vorhänge",oleanna:"Oleanna",shifting:"shifting perspective",tagebuch:"Der Mitarbeiter – Tagebuch eines Wahnsinnigen",judas:"Judas",bolero_mit_bonus:"Bolero mit making of",event_en:"Event (english)",event_de:"Event (deutsch)",kinesphere:"Kinesphere"},d=state(void 0);onMount(async()=>{let w=window.msg&&window.msg!="{{ msg }}"&&JSON.parse(window.msg.replace(/&quot;/g,'"'))?JSON.parse(window.msg.replace(/&quot;/g,'"')):{};set(d,_.map(w,(z,A)=>({stueck:A,kurzcodes:_.map(z,function(y,s){return s})})),!0),console.log(get(d))});var h=comment$1(),m=first_child(h);{var p=w=>
2146{var z=root_1$g(),A=sibling(first_child(z),2);each(A,21,()=>get(d),index,(y,s)=>{var e=root_2$i(),f=child(e),g=sibling(f);each(g,21,()=>get(s).kurzcodes,index,(R,q)=>{var H=root_3$d(),te=child(H),re=child(te);template_effect(()=>{set_attribute(te,"href",`https://vr.staux.de/c/${get(q)??""}`),set_text(re,get(q))}),append(R,H)}),template_effect(()=>set_text(f,`${c[get(s).stueck]??""} `)),append(y,e)}),append(w,z)};if_block(m,w=>{get(d)&&get(d).length&&w(p)})}append(o,h),pop()}var root_4$g=from_html('<a class="svelte-zm8kuv"> </a>'),root_2$h=from_html("<!> <!>",1),root_1$f=from_html('<p class="svelte-zm8kuv"><b>Diese Spielzeit</b> (soweit derzeit bekannt): <br/> <!></p>');function Besetzt(o,n){push(n,!0),user_effect(()=>{console.log(appState.storedbes)});var c=comment$1(),d=first_child(c);{var h=m=>{var p=root_1$f(),w=sibling(child(p),4);each(w,17,()=>appState.storedbes,index,(z,A,y)=>{var s=root_2$h(),e=first_child(s);{var f=q=>{var H=comment$1(),te=first_child(H);html(te,()=>",&ensp;"),append(q,H)};if_block(e,q=>{y!=0&&q(f)})}var g=sibling(e,2);{var R=q=>{var H=root_4$g(),te=child(H);template_effect(()=>{set_attribute(H,"href",`/${get(A).uri??""}`),set_text(te,get(A).titel)}),append(q,H)};if_block(g,q=>{get(A).uri&&q(R)})}append(z,s)}),append(m,p)};if_block(d,m=>{appState.storedbes.length&&m(h)})}append(o,c),pop()}var root_1$e=from_html("<h3>Leider voll…</h3>"),root_3$c=from_html('<p class="svelte-1obcl1x"> </p>'),root_4$f=from_html('<label class="svelte-1obcl1x"> </label> <input type="text"/> <label class="svelte-1obcl1x"> </label> <input type="text"/> <label class="svelte-1obcl1x"> </label> <input type="text"/> <label class="svelte-1obcl1x"> </label> <input type="text"/> <label class="svelte-1obcl1x"> </label> <input type="text"/> <label class="svelte-1obcl1x">E-Mail</label> <input type="text"/> <label class="svelte-1obcl1x"> </label> <input type="text"/> <button>Anmelden</button>',1);function Anmeldung(o,n){push(n,!0);let c=proxy({}),d="de",h;user_effect(()=>{window.anm=c}),onMount(async()=>{h=(await(await fetch("/api/gebucht")).json())[0].value,window.geb=h});const m=function(e){return!e.vorname||!e.nachname||!e.strasse||!e.email_conf||!e.plz||!e.ort||!e.email?(alert(orderlang[d].ALERT_MANDATORY),!1):/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.email)?e.email!==e.email_conf?(alert(orderlang[d].ALERT_MAIL_CONFIRM),!1):!0:(alert(orderlang[d].ALERT_MAIL_INVALID),!1)};let p=proxy({});const w=async()=>{if(!m(c))return;p.message=orderlang[d].NOTIFY_PATIENCE;const f=await(await fetch("/api/anmeldung",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(c)})).json();p.message=f.message};var z=comment$1(),A=first_child(z);{var y=e=>{var f=root_1$e();append(e,f)},s=e=>{var f=comment$1(),g=first_child(f);{var R=H=>{var te=root_3$c(),re=child(te);template_effect(()=>set_text(re,p.message)),append(H,te)},q=H=>{var te=root_4$f(),re=first_child(te),ae=child(re),ne=sibling(re,2),oe=sibling(ne,2),le=child(oe),ce=sibling(oe,2),ue=sibling(ce,2),he=child(ue),ge=sibling(ue,2),Oe=sibling(ge,2),$e=child(Oe),Pe=sibling(Oe,2),Le=sibling(Pe,2),me=child(Le),we=sibling(Le,2),Se=sibling(we,4),ye=sibling(Se,2),ke=child(ye),Ae=sibling(ye,2),Ie=sibling(Ae,2);template_effect(()=>{set_text(ae,orderlang[d].PRENAME),set_text(le,orderlang[d].SURNAME),set_text(he,orderlang[d].STREET),set_text($e,orderlang[d].ZIPCODE),set_text(me,orderlang[d].CITY),set_text(ke,orderlang[d].EMAIL_CONFIRM)}),bind_value(ne,()=>c.vorname,qe=>c.vorname=qe),bind_value(ce,()=>c.nachname,qe=>c.nachname=qe),bind_value(ge,()=>c.strasse,qe=>c.strasse=qe),bind_value(Pe,()=>c.plz,qe=>c.plz=qe),bind_value(we,()=>c.ort,qe=>c.ort=qe),bind_value(Se,()=>c.email,qe=>c.email=qe),bind_value(Ae,()=>c.email_conf,qe=>c.email_conf=qe),delegated("click",Ie,w),append(H,te)};if_block(g,H=>{p.message?H(R):H(q,-1)})}append(e,f)};if_block(A,e=>{h>99?e(y):e(s,-1)})}append(o,z),pop()}delegate(["click"]);var howler={};var hasRequiredHowler;function requireHowler(){return hasRequiredHowler||(hasRequiredHowler=1,(function(o){(function(){var n=function(){this.init()};n.prototype={init:function(){var s=this||c;return s._counter=1e3,s._html5AudioPool=[],s.html5PoolSize=10,s._codecs={},s._howls=[],s._muted=!1,s._volume=1,s._canPlayEvent="canplaythrough",s._navigator=typeof window<"u"&&window.navigator?window.navigator:null,s.masterGain=null,s.noAudio=!1,s.usingWebAudio=!0,s.autoSuspend=!0,s.ctx=null,s.autoUnlock=!0,s._setup(),s},volume:function(s){var e=this||c;if(s=parseFloat(s),e.ctx||y(),typeof s<"u"&&s>=0&&s<=1){if(e._volume=s,e._muted)return e;e.usingWebAudio&&e.masterGain.gain.setValueAtTime(s,c.ctx.currentTime);for(var f=0;f<e._howls.length;f++)if(!e._howls[f]._webAudio)for(var g=e._howls[f]._getSoundIds(),R=0;R<g.length;R++){var q=e._howls[f]._soundById(g[R]);q&&q._node&&(q._node.volume=q._volume*s)}return e}return e._volume},mute:function(s){var e=this||c;e.ctx||y(),e._muted=s,e.usingWebAudio&&e.masterGain.gain.setValueAtTime(s?0:e._volume,c.ctx.currentTime);for(var f=0;f<e._howls.length;f++)if(!e._howls[f]._webAudio)for(var g=e._howls[f]._getSoundIds(),R=0;R<g.length;R++){var q=e._howls[f]._soundById(g[R]);q&&q._node&&(q._node.muted=s?!0:q._muted)}return e},stop:function(){for(var s=this||c,e=0;e<s._howls.length;e++)s._howls[e].stop();return s},unload:function(){for(var s=this||c,e=s._howls.length-1;e>=0;e--)s._howls[e].unload();return s.usingWebAudio&&s.ctx&&typeof s.ctx.close<"u"&&(s.ctx.close(),s.ctx=null,y()),s},codecs:function(s){return(this||c)._codecs[s.replace(/^x-/,"")]},_setup:function(){var s=this||c;if(s.state=s.ctx&&s.ctx.state||"suspended",s._autoSuspend(),!s.usingWebAudio)if(typeof Audio<"u")try{var e=new Audio;typeof e.oncanplaythrough>"u"&&(s._canPlayEvent="canplay")}catch{s.noAudio=!0}else s.noAudio=!0;try{var e=new Audio;e.muted&&(s.noAudio=!0)}catch{}return s.noAudio||s._setupCodecs(),s},_setupCodecs:function(){var s=this||c,e=null;try{e=typeof Audio<"u"?new Audio:null}catch{return s}if(!e||typeof e.canPlayType!="function")return s;var f=e.canPlayType("audio/mpeg;").replace(/^no$/,""),g=s._navigator?s._navigator.userAgent:"",R=g.match(/OPR\/(\d+)/g),q=R&&parseInt(R[0].split("/")[1],10)<33,H=g.indexOf("Safari")!==-1&&g.indexOf("Chrome")===-1,te=g.match(/Version\/(.*?) /),re=H&&te&&parseInt(te[1],10)<15;return s._codecs={mp3:!!(!q&&(f||e.canPlayType("audio/mp3;").replace(/^no$/,""))),mpeg:!!f,opus:!!e.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!e.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!e.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(e.canPlayType('audio/wav; codecs="1"')||e.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!e.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!e.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(e.canPlayType("audio/x-m4a;")||e.canPlayType("audio/m4a;")||e.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(e.canPlayType("audio/x-m4b;")||e.canPlayType("audio/m4b;")||e.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(e.canPlayType("audio/x-mp4;")||e.canPlayType("audio/mp4;")||e.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!!(!re&&e.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!!(!re&&e.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!e.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(e.canPlayType("audio/x-flac;")||e.canPlayType("audio/flac;")).replace(/^no$/,"")},s},_unlockAudio:function(){var s=this||c;if(!(s._audioUnlocked||!s.ctx)){s._audioUnlocked=!1,s.autoUnlock=!1,!s._mobileUnloaded&&s.ctx.sampleRate!==44100&&(s._mobileUnloaded=!0,s.unload()),s._scratchBuffer=s.ctx.createBuffer(1,1,22050);var e=function(f){for(;s._html5AudioPool.length<s.html5PoolSize;)try{var g=new Audio;g._unlocked=!0,s._releaseHtml5Audio(g)}catch{s.noAudio=!0;break}for(var R=0;R<s._howls.length;R++)if(!s._howls[R]._webAudio)for(var q=s._howls[R]._getSoundIds(),H=0;H<q.length;H++){var te=s._howls[R]._soundById(q[H]);te&&te._node&&!te._node._unlocked&&(te._node._unlocked=!0,te._node.load())}s._autoResume();var re=s.ctx.createBufferSource();re.buffer=s._scratchBuffer,re.connect(s.ctx.destination),typeof re.start>"u"?re.noteOn(0):re.start(0),typeof s.ctx.resume=="function"&&s.ctx.resume(),re.onended=function(){re.disconnect(0),s._audioUnlocked=!0,document.removeEventListener("touchstart",e,!0),document.removeEventListener("touchend",e,!0),document.removeEventListener("click",e,!0),document.removeEventListener("keydown",e,!0);for(var ae=0;ae<s._howls.length;ae++)s._howls[ae]._emit("unlock")}};return document.addEventListener("touchstart",e,!0),document.addEventListener("touchend",e,!0),document.addEventListener("click",e,!0),document.addEventListener("keydown",e,!0),s}},_obtainHtml5Audio:function(){var s=this||c;if(s._html5AudioPool.length)return s._html5AudioPool.pop();var e=new Audio().play();return e&&typeof Promise<"u"&&(e instanceof Promise||typeof e.then=="function")&&e.catch(function(){console.warn("HTML5 Audio pool exhausted, returning potentially locked audio object.")}),new Audio},_releaseHtml5Audio:function(s){var e=this||c;
vendor: 32,065 bytes, line 2146
2146return s._unlocked&&e._html5AudioPool.push(s),e},_autoSuspend:function(){var s=this;if(!(!s.autoSuspend||!s.ctx||typeof s.ctx.suspend>"u"||!c.usingWebAudio)){for(var e=0;e<s._howls.length;e++)if(s._howls[e]._webAudio){for(var f=0;f<s._howls[e]._sounds.length;f++)if(!s._howls[e]._sounds[f]._paused)return s}return s._suspendTimer&&clearTimeout(s._suspendTimer),s._suspendTimer=setTimeout(function(){if(s.autoSuspend){s._suspendTimer=null,s.state="suspending";var g=function(){s.state="suspended",s._resumeAfterSuspend&&(delete s._resumeAfterSuspend,s._autoResume())};s.ctx.suspend().then(g,g)}},3e4),s}},_autoResume:function(){var s=this;if(!(!s.ctx||typeof s.ctx.resume>"u"||!c.usingWebAudio))return s.state==="running"&&s.ctx.state!=="interrupted"&&s._suspendTimer?(clearTimeout(s._suspendTimer),s._suspendTimer=null):s.state==="suspended"||s.state==="running"&&s.ctx.state==="interrupted"?(s.ctx.resume().then(function(){s.state="running";for(var e=0;e<s._howls.length;e++)s._howls[e]._emit("resume")}),s._suspendTimer&&(clearTimeout(s._suspendTimer),s._suspendTimer=null)):s.state==="suspending"&&(s._resumeAfterSuspend=!0),s}};var c=new n,d=function(s){var e=this;if(!s.src||s.src.length===0){console.error("An array of source files must be passed with any new Howl.");return}e.init(s)};d.prototype={init:function(s){var e=this;return c.ctx||y(),e._autoplay=s.autoplay||!1,e._format=typeof s.format!="string"?s.format:[s.format],e._html5=s.html5||!1,e._muted=s.mute||!1,e._loop=s.loop||!1,e._pool=s.pool||5,e._preload=typeof s.preload=="boolean"||s.preload==="metadata"?s.preload:!0,e._rate=s.rate||1,e._sprite=s.sprite||{},e._src=typeof s.src!="string"?s.src:[s.src],e._volume=s.volume!==void 0?s.volume:1,e._xhr={method:s.xhr&&s.xhr.method?s.xhr.method:"GET",headers:s.xhr&&s.xhr.headers?s.xhr.headers:null,withCredentials:s.xhr&&s.xhr.withCredentials?s.xhr.withCredentials:!1},e._duration=0,e._state="unloaded",e._sounds=[],e._endTimers={},e._queue=[],e._playLock=!1,e._onend=s.onend?[{fn:s.onend}]:[],e._onfade=s.onfade?[{fn:s.onfade}]:[],e._onload=s.onload?[{fn:s.onload}]:[],e._onloaderror=s.onloaderror?[{fn:s.onloaderror}]:[],e._onplayerror=s.onplayerror?[{fn:s.onplayerror}]:[],e._onpause=s.onpause?[{fn:s.onpause}]:[],e._onplay=s.onplay?[{fn:s.onplay}]:[],e._onstop=s.onstop?[{fn:s.onstop}]:[],e._onmute=s.onmute?[{fn:s.onmute}]:[],e._onvolume=s.onvolume?[{fn:s.onvolume}]:[],e._onrate=s.onrate?[{fn:s.onrate}]:[],e._onseek=s.onseek?[{fn:s.onseek}]:[],e._onunlock=s.onunlock?[{fn:s.onunlock}]:[],e._onresume=[],e._webAudio=c.usingWebAudio&&!e._html5,typeof c.ctx<"u"&&c.ctx&&c.autoUnlock&&c._unlockAudio(),c._howls.push(e),e._autoplay&&e._queue.push({event:"play",action:function(){e.play()}}),e._preload&&e._preload!=="none"&&e.load(),e},load:function(){var s=this,e=null;if(c.noAudio){s._emit("loaderror",null,"No audio support.");return}typeof s._src=="string"&&(s._src=[s._src]);for(var f=0;f<s._src.length;f++){var g,R;if(s._format&&s._format[f])g=s._format[f];else{if(R=s._src[f],typeof R!="string"){s._emit("loaderror",null,"Non-string found in selected audio sources - ignoring.");continue}g=/^data:audio\/([^;,]+);/i.exec(R),g||(g=/\.([^.]+)$/.exec(R.split("?",1)[0])),g&&(g=g[1].toLowerCase())}if(g||console.warn('No file extension was found. Consider using the "format" property or specify an extension.'),g&&c.codecs(g)){e=s._src[f];break}}if(!e){s._emit("loaderror",null,"No codec support for selected audio sources.");return}return s._src=e,s._state="loading",window.location.protocol==="https:"&&e.slice(0,5)==="http:"&&(s._html5=!0,s._webAudio=!1),new h(s),s._webAudio&&p(s),s},play:function(s,e){var f=this,g=null;if(typeof s=="number")g=s,s=null;else{if(typeof s=="string"&&f._state==="loaded"&&!f._sprite[s])return null;if(typeof s>"u"&&(s="__default",!f._playLock)){for(var R=0,q=0;q<f._sounds.length;q++)f._sounds[q]._paused&&!f._sounds[q]._ended&&(R++,g=f._sounds[q]._id);R===1?s=null:g=null}}var H=g?f._soundById(g):f._inactiveSound();if(!H)return null;if(g&&!s&&(s=H._sprite||"__default"),f._state!=="loaded"){H._sprite=s,H._ended=!1;var te=H._id;return f._queue.push({event:"play",action:function(){f.play(te)}}),te}if(g&&!H._paused)return e||f._loadQueue("play"),H._id;f._webAudio&&c._autoResume();var re=Math.max(0,H._seek>0?H._seek:f._sprite[s][0]/1e3),ae=Math.max(0,(f._sprite[s][0]+f._sprite[s][1])/1e3-re),ne=ae*1e3/Math.abs(H._rate),oe=f._sprite[s][0]/1e3,le=(f._sprite[s][0]+f._sprite[s][1])/1e3;H._sprite=s,H._ended=!1;var ce=function(){H._paused=!1,H._seek=re,H._start=oe,H._stop=le,H._loop=!!(H._loop||f._sprite[s][2])};if(re>=le){f._ended(H);return}var ue=H._node;if(f._webAudio){var he=function(){f._playLock=!1,ce(),f._refreshBuffer(H);var Pe=H._muted||f._muted?0:H._volume;ue.gain.setValueAtTime(Pe,c.ctx.currentTime),H._playStart=c.ctx.currentTime,typeof ue.bufferSource.start>"u"?H._loop?ue.bufferSource.noteGrainOn(0,re,86400):ue.bufferSource.noteGrainOn(0,re,ae):H._loop?ue.bufferSource.start(0,re,86400):ue.bufferSource.start(0,re,ae),ne!==1/0&&(f._endTimers[H._id]=setTimeout(f._ended.bind(f,H),ne)),e||setTimeout(function(){f._emit("play",H._id),f._loadQueue()},0)};c.state==="running"&&c.ctx.state!=="interrupted"?he():(f._playLock=!0,f.once("resume",he),f._clearTimer(H._id))}else{var ge=function(){ue.currentTime=re,ue.muted=H._muted||f._muted||c._muted||ue.muted,ue.volume=H._volume*c.volume(),ue.playbackRate=H._rate;try{var Pe=ue.play();if(Pe&&typeof Promise<"u"&&(Pe instanceof Promise||typeof Pe.then=="function")?(f._playLock=!0,ce(),Pe.then(function(){f._playLock=!1,ue._unlocked=!0,e?f._loadQueue():f._emit("play",H._id)}).catch(function(){f._playLock=!1,f._emit("playerror",H._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."),H._ended=!0,H._paused=!0})):e||(f._playLock=!1,ce(),f._emit("play",H._id)),ue.playbackRate=H._rate,ue.paused){f._emit("playerror",H._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");return}s!=="__default"||H._loop?f._endTimers[H._id]=setTimeout(f._ended.bind(f,H),ne):(f._endTimers[H._id]=function(){f._ended(H),ue.removeEventListener("ended",f._endTimers[H._id],!1)},ue.addEventListener("ended",f._endTimers[H._id],!1))}catch(Le){f._emit("playerror",H._id,Le)}};ue.src==="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"&&(ue.src=f._src,ue.load());var Oe=window&&window.ejecta||!ue.readyState&&c._navigator.isCocoonJS;if(ue.readyState>=3||Oe)ge();else{f._playLock=!0,f._state="loading";var $e=function(){f._state="loaded",ge(),ue.removeEventListener(c._canPlayEvent,$e,!1)};ue.addEventListener(c._canPlayEvent,$e,!1),f._clearTimer(H._id)}}return H._id},pause:function(s){var e=this;if(e._state!=="loaded"||e._playLock)return e._queue.push({event:"pause",action:function(){e.pause(s)}}),e;for(var f=e._getSoundIds(s),g=0;g<f.length;g++){e._clearTimer(f[g]);var R=e._soundById(f[g]);if(R&&!R._paused&&(R._seek=e.seek(f[g]),R._rateSeek=0,R._paused=!0,e._stopFade(f[g]),R._node))if(e._webAudio){if(!R._node.bufferSource)continue;typeof R._node.bufferSource.stop>"u"?R._node.bufferSource.noteOff(0):R._node.bufferSource.stop(0),e._cleanBuffer(R._node)}else(!isNaN(R._node.duration)||R._node.duration===1/0)&&R._node.pause();arguments[1]||e._emit("pause",R?R._id:null)}return e},stop:function(s,e){var f=this;if(f._state!=="loaded"||f._playLock)return f._queue.push({event:"stop",action:function(){f.stop(s)}}),f;for(var g=f._getSoundIds(s),R=0;R<g.length;R++){f._clearTimer(g[R]);var q=f._soundById(g[R]);q&&(q._seek=q._start||0,q._rateSeek=0,q._paused=!0,q._ended=!0,f._stopFade(g[R]),q._node&&(f._webAudio?q._node.bufferSource&&(typeof q._node.bufferSource.stop>"u"?q._node.bufferSource.noteOff(0):q._node.bufferSource.stop(0),f._cleanBuffer(q._node)):(!isNaN(q._node.duration)||q._node.duration===1/0)&&(q._node.currentTime=q._start||0,q._node.pause(),q._node.duration===1/0&&f._clearSound(q._node))),e||f._emit("stop",q._id))}return f},mute:function(s,e){var f=this;if(f._state!=="loaded"||f._playLock)return f._queue.push({event:"mute",action:function(){f.mute(s,e)}}),f;if(typeof e>"u")if(typeof s=="boolean")f._muted=s;else return f._muted;for(var g=f._getSoundIds(e),R=0;R<g.length;R++){var q=f._soundById(g[R]);q&&(q._muted=s,q._interval&&f._stopFade(q._id),f._webAudio&&q._node?q._node.gain.setValueAtTime(s?0:q._volume,c.ctx.currentTime):q._node&&(q._node.muted=c._muted?!0:s),f._emit("mute",q._id))}return f},volume:function(){var s=this,e=arguments,f,g;if(e.length===0)return s._volume;if(e.length===1||e.length===2&&typeof e[1]>"u"){var R=s._getSoundIds(),q=R.indexOf(e[0]);q>=0?g=parseInt(e[0],10):f=parseFloat(e[0])}else e.length>=2&&(f=parseFloat(e[0]),g=parseInt(e[1],10));var H;if(typeof f<"u"&&f>=0&&f<=1){if(s._state!=="loaded"||s._playLock)return s._queue.push({event:"volume",action:function(){s.volume.apply(s,e)}}),s;typeof g>"u"&&(s._volume=f),g=s._getSoundIds(g);for(var te=0;te<g.length;te++)H=s._soundById(g[te]),H&&(H._volume=f,e[2]||s._stopFade(g[te]),s._webAudio&&H._node&&!H._muted?H._node.gain.setValueAtTime(f,c.ctx.currentTime):H._node&&!H._muted&&(H._node.volume=f*c.volume()),s._emit("volume",H._id))}else return H=g?s._soundById(g):s._sounds[0],H?H._volume:0;return s},fade:function(s,e,f,g){var R=this;if(R._state!=="loaded"||R._playLock)return R._queue.push({event:"fade",action:function(){R.fade(s,e,f,g)}}),R;s=Math.min(Math.max(0,parseFloat(s)),1),e=Math.min(Math.max(0,parseFloat(e)),1),f=parseFloat(f),R.volume(s,g);for(var q=R._getSoundIds(g),H=0;H<q.length;H++){var te=R._soundById(q[H]);if(te){if(g||R._stopFade(q[H]),R._webAudio&&!te._muted){var re=c.ctx.currentTime,ae=re+f/1e3;te._volume=s,te._node.gain.setValueAtTime(s,re),te._node.gain.linearRampToValueAtTime(e,ae)}R._startFadeInterval(te,s,e,f,q[H],typeof g>"u")}}return R},_startFadeInterval:function(s,e,f,g,R,q){var H=this,te=e,re=f-e,ae=Math.abs(re/.01),ne=Math.max(4,ae>0?g/ae:g),oe=Date.now();s._fadeTo=f,s._interval=setInterval(function(){var le=(Date.now()-oe)/g;oe=Date.now(),te+=re*le,te=Math.round(te*100)/100,re<0?te=Math.max(f,te):te=Math.min(f,te),H._webAudio?s._volume=te:H.volume(te,s._id,!0),q&&(H._volume=te),(f<e&&te<=f||f>e&&te>=f)&&(clearInterval(s._interval),s._interval=null,s._fadeTo=null,H.volume(f,s._id),H._emit("fade",s._id))},ne)},_stopFade:function(s){var e=this,f=e._soundById(s);return f&&f._interval&&(e._webAudio&&f._node.gain.cancelScheduledValues(c.ctx.currentTime),clearInterval(f._interval),f._interval=null,e.volume(f._fadeTo,s),f._fadeTo=null,e._emit("fade",s)),e},loop:function(){var s=this,e=arguments,f,g,R;if(e.length===0)return s._loop;if(e.length===1)if(typeof e[0]=="boolean")f=e[0],s._loop=f;else return R=s._soundById(parseInt(e[0],10)),R?R._loop:!1;else e.length===2&&(f=e[0],g=parseInt(e[1],10));for(var q=s._getSoundIds(g),H=0;H<q.length;H++)R=s._soundById(q[H]),R&&(R._loop=f,s._webAudio&&R._node&&R._node.bufferSource&&(R._node.bufferSource.loop=f,f&&(R._node.bufferSource.loopStart=R._start||0,R._node.bufferSource.loopEnd=R._stop,s.playing(q[H])&&(s.pause(q[H],!0),s.play(q[H],!0)))));return s},rate:function(){var s=this,e=arguments,f,g;if(e.length===0)g=s._sounds[0]._id;else if(e.length===1){var R=s._getSoundIds(),q=R.indexOf(e[0]);q>=0?g=parseInt(e[0],10):f=parseFloat(e[0])}else e.length===2&&(f=parseFloat(e[0]),g=parseInt(e[1],10));var H;if(typeof f=="number"){if(s._state!=="loaded"||s._playLock)return s._queue.push({event:"rate",action:function(){s.rate.apply(s,e)}}),s;typeof g>"u"&&(s._rate=f),g=s._getSoundIds(g);for(var te=0;te<g.length;te++)if(H=s._soundById(g[te]),H){s.playing(g[te])&&(H._rateSeek=s.seek(g[te]),H._playStart=s._webAudio?c.ctx.currentTime:H._playStart),H._rate=f,s._webAudio&&H._node&&H._node.bufferSource?H._node.bufferSource.playbackRate.setValueAtTime(f,c.ctx.currentTime):H._node&&(H._node.playbackRate=f);var re=s.seek(g[te]),ae=(s._sprite[H._sprite][0]+s._sprite[H._sprite][1])/1e3-re,ne=ae*1e3/Math.abs(H._rate);(s._endTimers[g[te]]||!H._paused)&&(s._clearTimer(g[te]),s._endTimers[g[te]]=setTimeout(s._ended.bind(s,H),ne)),s._emit("rate",H._id)}}else return H=s._soundById(g),H?H._rate:s._rate;return s},seek:function(){var s=this,e=arguments,f,g;if(e.length===0)s._sounds.length&&(g=s._sounds[0]._id);else if(e.length===1){var R=s._getSoundIds(),q=R.indexOf(e[0]);q>=0?g=parseInt(e[0],10):s._sounds.length&&(g=s._sounds[0]._id,f=parseFloat(e[0]))}else e.length===2&&(f=parseFloat(e[0]),g=parseInt(e[1],10));if(typeof g>"u")return 0;if(typeof f=="number"&&(s._state!=="loaded"||s._playLock))return s._queue.push({event:"seek",action:function(){s.seek.apply(s,e)}}),s;var H=s._soundById(g);if(H)if(typeof f=="number"&&f>=0){var te=s.playing(g);te&&s.pause(g,!0),H._seek=f,H._ended=!1,s._clearTimer(g),!s._webAudio&&H._node&&!isNaN(H._node.duration)&&(H._node.currentTime=f);var re=function(){te&&s.play(g,!0),s._emit("seek",g)};if(te&&!s._webAudio){var ae=function(){s._playLock?setTimeout(ae,0):re()};setTimeout(ae,0)}else re()}else if(s._webAudio){var ne=s.playing(g)?c.ctx.currentTime-H._playStart:0,oe=H._rateSeek?H._rateSeek-H._seek:0;return H._seek+(oe+ne*Math.abs(H._rate))}else return H._node.currentTime;return s},playing:function(s){var e=this;if(typeof s=="number"){var f=e._soundById(s);return f?!f._paused:!1}for(var g=0;g<e._sounds.length;g++)if(!e._sounds[g]._paused)return!0;return!1},duration:function(s){var e=this,f=e._duration,g=e._soundById(s);return g&&(f=e._sprite[g._sprite][1]/1e3),f},state:function(){return this._state},unload:function(){for(var s=this,e=s._sounds,f=0;f<e.length;f++)e[f]._paused||s.stop(e[f]._id),s._webAudio||(s._clearSound(e[f]._node),e[f]._node.removeEventListener("error",e[f]._errorFn,!1),e[f]._node.removeEventListener(c._canPlayEvent,e[f]._loadFn,!1),e[f]._node.removeEventListener("ended",e[f]._endFn,!1),c._releaseHtml5Audio(e[f]._node)),delete e[f]._node,s._clearTimer(e[f]._id);var g=c._howls.indexOf(s);g>=0&&c._howls.splice(g,1);var R=!0;for(f=0;f<c._howls.length;f++)if(c._howls[f]._src===s._src||s._src.indexOf(c._howls[f]._src)>=0){R=!1;break}return m&&R&&delete m[s._src],c.noAudio=!1,s._state="unloaded",s._sounds=[],s=null,null},on:function(s,e,f,g){var R=this,q=R["_on"+s];return typeof e=="function"&&q.push(g?{id:f,fn:e,once:g}:{id:f,fn:e}),R},off:function(s,e,f){var g=this,R=g["_on"+s],q=0;if(typeof e=="number"&&(f=e,e=null),e||f)for(q=0;q<R.length;q++){var H=f===R[q].id;if(e===R[q].fn&&H||!e&&H){R.splice(q,1);break}}else if(s)g["_on"+s]=[];else{var te=Object.keys(g);for(q=0;q<te.length;q++)te[q].indexOf("_on")===0&&Array.isArray(g[te[q]])&&(g[te[q]]=[])}return g},once:function(s,e,f){var g=this;return g.on(s,e,f,1),g},_emit:function(s,e,f){for(var g=this,R=g["_on"+s],q=R.length-1;q>=0;q--)(!R[q].id||R[q].id===e||s==="load")&&(setTimeout((function(H){H.call(this,e,f)}).bind(g,R[q].fn),0),R[q].once&&g.off(s,R[q].fn,R[q].id));return g._loadQueue(s),g},_loadQueue:function(s){var e=this;if(e._queue.length>0){var f=e._queue[0];f.event===s&&(e._queue.shift(),e._loadQueue()),s||f.action()}return e},_ended:function(s){var e=this,f=s._sprite;if(!e._webAudio&&s._node&&!s._node.paused&&!s._node.ended&&s._node.currentTime<s._stop)return setTimeout(e._ended.bind(e,s),100),e;var g=!!(s._loop||e._sprite[f][2]);if(e._emit("end",s._id),!e._webAudio&&g&&e.stop(s._id,!0).play(s._id),e._webAudio&&g){e._emit("play",s._id),s._seek=s._start||0,s._rateSeek=0,s._playStart=c.ctx.currentTime;var R=(s._stop-s._start)*1e3/Math.abs(s._rate);e._endTimers[s._id]=setTimeout(e._ended.bind(e,s),R)}return e._webAudio&&!g&&(s._paused=!0,s._ended=!0,s._seek=s._start||0,s._rateSeek=0,e._clearTimer(s._id),e._cleanBuffer(s._node),c._autoSuspend()),!e._webAudio&&!g&&e.stop(s._id,!0),e},_clearTimer:function(s){var e=this;if(e._endTimers[s]){if(typeof e._endTimers[s]!="function")clearTimeout(e._endTimers[s]);else{var f=e._soundById(s);f&&f._node&&f._node.removeEventListener("ended",e._endTimers[s],!1)}delete e._endTimers[s]}return e},_soundById:function(s){for(var e=this,f=0;f<e._sounds.length;f++)if(s===e._sounds[f]._id)return e._sounds[f];return null},_inactiveSound:function(){var s=this;s._drain();for(var e=0;e<s._sounds.length;e++)if(s._sounds[e]._ended)return s._sounds[e].reset();return new h(s)},_drain:function(){var s=this,e=s._pool,f=0,g=0;if(!(s._sounds.length<e)){for(g=0;g<s._sounds.length;g++)s._sounds[g]._ended&&f++;for(g=s._sounds.length-1;g>=0;g--){if(f<=e)return;s._sounds[g]._ended&&(s._webAudio&&s._sounds[g]._node&&s._sounds[g]._node.disconnect(0),s._sounds.splice(g,1),f--)}}},_getSoundIds:function(s){var e=this;if(typeof s>"u"){for(var f=[],g=0;g<e._sounds.length;g++)f.push(e._sounds[g]._id);return f}else return[s]},_refreshBuffer:function(s){var e=this;return s._node.bufferSource=c.ctx.createBufferSource(),s._node.bufferSource.buffer=m[e._src],s._panner?s._node.bufferSource.connect(s._panner):s._node.bufferSource.connect(s._node),s._node.bufferSource.loop=s._loop,s._loop&&(s._node.bufferSource.loopStart=s._start||0,s._node.bufferSource.loopEnd=s._stop||0),s._node.bufferSource.playbackRate.setValueAtTime(s._rate,c.ctx.currentTime),e},_cleanBuffer:function(s){var e=this,f=c._navigator&&c._navigator.vendor.indexOf("Apple")>=0;if(!s.bufferSource)return e;if(c._scratchBuffer&&s.bufferSource&&(s.bufferSource.onended=null,s.bufferSource.disconnect(0),f))try{s.bufferSource.buffer=c._scratchBuffer}catch{}return s.bufferSource=null,e},_clearSound:function(s){var e=/MSIE |Trident\//.test(c._navigator&&c._navigator.userAgent);e||(s.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var h=function(s){this._parent=s,this.init()};h.prototype={init:function(){var s=this,e=s._parent;return s._muted=e._muted,s._loop=e._loop,s._volume=e._volume,s._rate=e._rate,s._seek=0,s._paused=!0,s._ended=!0,s._sprite="__default",s._id=++c._counter,e._sounds.push(s),s.create(),s},create:function(){var s=this,e=s._parent,f=c._muted||s._muted||s._parent._muted?0:s._volume;return e._webAudio?(s._node=typeof c.ctx.createGain>"u"?c.ctx.createGainNode():c.ctx.createGain(),s._node.gain.setValueAtTime(f,c.ctx.currentTime),s._node.paused=!0,s._node.connect(c.masterGain)):c.noAudio||(s._node=c._obtainHtml5Audio(),s._errorFn=s._errorListener.bind(s),s._node.addEventListener("error",s._errorFn,!1),s._loadFn=s._loadListener.bind(s),s._node.addEventListener(c._canPlayEvent,s._loadFn,!1),s._endFn=s._endListener.bind(s),s._node.addEventListener("ended",s._endFn,!1),s._node.src=e._src,s._node.preload=e._preload===!0?"auto":e._preload,s._node.volume=f*c.volume(),s._node.load()),s},reset:function(){var s=this,e=s._parent;return s._muted=e._muted,s._loop=e._loop,s._volume=e._volume,s._rate=e._rate,s._seek=0,s._rateSeek=0,s._paused=!0,s._ended=!0,s._sprite="__default",s._id=++c._counter,s},_errorListener:function(){var s=this;s._parent._emit("loaderror",s._id,s._node.error?s._node.error.code:0),s._node.removeEventListener("error",s._errorFn,!1)},_loadListener:function(){var s=this,e=s._parent;e._duration=Math.ceil(s._node.duration*10)/10,Object.keys(e._sprite).length===0&&(e._sprite={__default:[0,e._duration*1e3]}),e._state!=="loaded"&&(e._state="loaded",e._emit("load"),e._loadQueue()),s._node.removeEventListener(c._canPlayEvent,s._loadFn,!1)},_endListener:function(){var s=this,e=s._parent;e._duration===1/0&&(e._duration=Math.ceil(s._node.duration*10)/10,e._sprite.__default[1]===1/0&&(e._sprite.__default[1]=e._duration*1e3),e._ended(s)),s._node.removeEventListener("ended",s._endFn,!1)}};var m={},p=function(s){var e=s._src;if(m[e]){s._duration=m[e].duration,A(s);return}if(/^data:[^;]+;base64,/.test(e)){for(var f=atob(e.split(",")[1]),g=new Uint8Array(f.length),R=0;R<f.length;++R)g[R]=f.charCodeAt(R);z(g.buffer,s)}else{var q=new XMLHttpRequest;q.open(s._xhr.method,e,!0),q.withCredentials=s._xhr.withCredentials,q.responseType="arraybuffer",s._xhr.headers&&Object.keys(s._xhr.headers).forEach(function(H){q.setRequestHeader(H,s._xhr.headers[H])}),q.onload=function(){var H=(q.status+"")[0];if(H!=="0"&&H!=="2"&&H!=="3"){s._emit("loaderror",null,"Failed loading audio file with status: "+q.status+".");return}z(q.response,s)},q.onerror=function(){s._webAudio&&(s._html5=!0,s._webAudio=!1,s._sounds=[],delete m[e],s.load())},w(q)}},w=function(s){try{s.send()}catch{s.onerror()}},z=function(s,e){var f=function(){e._emit("loaderror",null,"Decoding audio data failed.")},g=function(R){R&&e._sounds.length>0?(m[e._src]=R,A(e,R)):f()};typeof Promise<"u"&&c.ctx.decodeAudioData.length===1?c.ctx.decodeAudioData(s).then(g).catch(f):c.ctx.decodeAudioData(s,g,f)},A=function(s,e){e&&!s._duration&&(s._duration=e.duration),Object.keys(s._sprite).length===0&&(s._sprite={__default:[0,s._duration*1e3]}),s._state!=="loaded"&&(s._state="loaded",s._emit("load"),s._loadQueue())},y=function(){if(c.usingWebAudio){try{typeof AudioContext<"u"?c.ctx=new AudioContext:typeof webkitAudioContext<"u"?c.ctx=new webkitAudioContext:c.usingWebAudio=!1}catch{c.usingWebAudio=!1}c.ctx||(c.usingWebAudio=!1);var s=/iP(hone|od|ad)/.test(c._navigator&&c._navigator.platform),e=c._navigator&&c._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),f=e?parseInt(e[1],10):null;if(s&&f&&f<9){var g=/safari/.test(c._navigator&&c._navigator.userAgent.toLowerCase());c._navigator&&!g&&(c.usingWebAudio=!1)}c.usingWebAudio&&(c.masterGain=typeof c.ctx.createGain>"u"?c.ctx.createGainNode():c.ctx.createGain(),c.masterGain.gain.setValueAtTime(c._muted?0:c._volume,c.ctx.currentTime),c.masterGain.connect(c.ctx.destination)),c._setup()}};o.Howler=c,o.Howl=d,typeof commonjsGlobal<"u"?(commonjsGlobal.HowlerGlobal=n,commonjsGlobal.Howler=c,commonjsGlobal.Howl=d,commonjsGlobal.Sound=h):typeof window<"u"&&(window.HowlerGlobal=n,window.Howler=c,window.Howl=d,window.Sound=h)})();(function(){HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(c){var d=this;if(!d.ctx||!d.ctx.listener)return d;for(var h=d._howls.length-1;h>=0;h--)d._howls[h].stereo(c);return d},HowlerGlobal.prototype.pos=function(c,d,h){var m=this;if(!m.ctx||!m.ctx.listener)return m;if(d=typeof d!="number"?m._pos[1]:d,h=typeof h!="number"?m._pos[2]:h,typeof c=="number")m._pos=[c,d,h],typeof m.ctx.listener.positionX<"u"?(m.ctx.listener.positionX.setTargetAtTime(m._pos[0],Howler.ctx.currentTime,.1),m.ctx.listener.positionY.setTargetAtTime(m._pos[1],Howler.ctx.currentTime,.1),m.ctx.listener.positionZ.setTargetAtTime(m._pos[2],Howler.ctx.currentTime,.1)):m.ctx.listener.setPosition(m._pos[0],m._pos[1],m._pos[2]);else return m._pos;return m},HowlerGlobal.prototype.orientation=function(c,d,h,m,p,w){var z=this;if(!z.ctx||!z.ctx.listener)return z;var A=z._orientation;if(d=typeof d!="number"?A[1]:d,h=typeof h!="number"?A[2]:h,m=typeof m!="number"?A[3]:m,p=typeof p!="number"?A[4]:p,w=typeof w!="number"?A[5]:w,typeof c=="number")z._orientation=[c,d,h,m,p,w],typeof z.ctx.listener.forwardX<"u"?(z.ctx.listener.forwardX.setTargetAtTime(c,Howler.ctx.currentTime,.1),z.ctx.listener.forwardY.setTargetAtTime(d,Howler.ctx.currentTime,.1),z.ctx.listener.forwardZ.setTargetAtTime(h,Howler.ctx.currentTime,.1),z.ctx.listener.upX.setTargetAtTime(m,Howler.ctx.currentTime,.1),z.ctx.listener.upY.setTargetAtTime(p,Howler.ctx.currentTime,.1),z.ctx.listener.upZ.setTargetAtTime(w,Howler.ctx.currentTime,.1)):z.ctx.listener.setOrientation(c,d,h,m,p,w);else return A;return z},Howl.prototype.init=(function(c){return function(d){var h=this;return h._orientation=d.orientation||[1,0,0],h._stereo=d.stereo||null,h._pos=d.pos||null,h._pannerAttr={coneInnerAngle:typeof d.coneInnerAngle<"u"?d.coneInnerAngle:360,coneOuterAngle:typeof d.coneOuterAngle<"u"?d.coneOuterAngle:360,coneOuterGain:typeof d.coneOuterGain<"u"?d.coneOuterGain:0,distanceModel:typeof d.distanceModel<"u"?d.distanceModel:"inverse",maxDistance:typeof d.maxDistance<"u"?d.maxDistance:1e4,panningModel:typeof d.panningModel<"u"?d.panningModel:"HRTF",refDistance:typeof d.refDistance<"u"?d.refDistance:1,rolloffFactor:typeof d.rolloffFactor<"u"?d.rolloffFactor:1},h._onstereo=d.onstereo?[{fn:d.onstereo}]:[],h._onpos=d.onpos?[{fn:d.onpos}]:[],h._onorientation=d.onorientation?[{fn:d.onorientation}]:[],c.call(this,d)}})(Howl.prototype.init),Howl.prototype.stereo=function(c,d){var h=this;if(!h._webAudio)return h;if(h._state!=="loaded")return h._queue.push({event:"stereo",action:function(){h.stereo(c,d)}}),h;var m=typeof Howler.ctx.createStereoPanner>"u"?"spatial":"stereo";if(typeof d>"u")if(typeof c=="number")h._stereo=c,h._pos=[c,0,0];else return h._stereo;for(var p=h._getSoundIds(d),w=0;w<p.length;w++){var z=h._soundById(p[w]);if(z)if(typeof c=="number")z._stereo=c,z._pos=[c,0,0],z._node&&(z._pannerAttr.panningModel="equalpower",(!z._panner||!z._panner.pan)&&n(z,m),m==="spatial"?typeof z._panner.positionX<"u"?(z._panner.positionX.setValueAtTime(c,Howler.ctx.currentTime),z._panner.positionY.setValueAtTime(0,Howler.ctx.currentTime),z._panner.positionZ.setValueAtTime(0,Howler.ctx.currentTime)):z._panner.setPosition(c,0,0):z._panner.pan.setValueAtTime(c,Howler.ctx.currentTime)),h._emit("stereo",z._id);else return z._stereo}return h},Howl.prototype.pos=function(c,d,h,m){var p=this;if(!p._webAudio)return p;if(p._state!=="loaded")return p._queue.push({event:"pos",action:function(){p.pos(c,d,h,m)}}),p;if(d=typeof d!="number"?0:d,h=typeof h!="number"?-.5:h,typeof m>"u")if(typeof c=="number")p._pos=[c,d,h];else return p._pos;for(var w=p._getSoundIds(m),z=0;z<w.length;z++){var A=p._soundById(w[z]);if(A)if(typeof c=="number")A._pos=[c,d,h],A._node&&((!A._panner||A._panner.pan)&&n(A,"spatial"),typeof A._panner.positionX<"u"?(A._panner.positionX.setValueAtTime(c,Howler.ctx.currentTime),A._panner.positionY.setValueAtTime(d,Howler.ctx.currentTime),A._panner.positionZ.setValueAtTime(h,Howler.ctx.currentTime)):A._panner.setPosition(c,d,h)),p._emit("pos",A._id);else return A._pos}return p},Howl.prototype.orientation=function(c,d,h,m){var p=this;if(!p._webAudio)return p;if(p._state!=="loaded")return p._queue.push({event:"orientation",action:function(){p.orientation(c,d,h,m)}}),p;if(d=typeof d!="number"?p._orientation[1]:d,h=typeof h!="number"?p._orientation[2]:h,typeof m>"u")if(typeof c=="number")p._orientation=[c,d,h];else return p._orientation;for(var w=p._getSoundIds(m),z=0;z<w.length;z++){var A=p._soundById(w[z]);if(A)if(typeof c=="number")A._orientation=[c,d,h],A._node&&(A._panner||(A._pos||(A._pos=p._pos||[0,0,-.5]),n(A,"spatial")),typeof A._panner.orientationX<"u"?(A._panner.orientationX.setValueAtTime(c,Howler.ctx.currentTime),A._panner.orientationY.setValueAtTime(d,Howler.ctx.currentTime),A._panner.orientationZ.setValueAtTime(h,Howler.ctx.currentTime)):A._panner.setOrientation(c,d,h)),p._emit("orientation",A._id);else return A._orientation}return p},Howl.prototype.pannerAttr=function(){var c=this,d=arguments,h,m,p;if(!c._webAudio)return c;if(d.length===0)return c._pannerAttr;if(d.length===1)if(typeof d[0]=="object")h=d[0],typeof m>"u"&&(h.pannerAttr||(h.pannerAttr={coneInnerAngle:h.coneInnerAngle,coneOuterAngle:h.coneOuterAngle,coneOuterGain:h.coneOuterGain,distanceModel:h.distanceModel,maxDistance:h.maxDistance,refDistance:h.refDistance,rolloffFactor:h.rolloffFactor,panningModel:h.panningModel}),c._pannerAttr={coneInnerAngle:typeof h.pannerAttr.coneInnerAngle<"u"?h.pannerAttr.coneInnerAngle:c._coneInnerAngle,coneOuterAngle:typeof h.pannerAttr.coneOuterAngle<"u"?h.pannerAttr.coneOuterAngle:c._coneOuterAngle,coneOuterGain:typeof h.pannerAttr.coneOuterGain<"u"?h.pannerAttr.coneOuterGain:c._coneOuterGain,distanceModel:typeof h.pannerAttr.distanceModel<"u"?h.pannerAttr.distanceModel:c._distanceModel,maxDistance:typeof h.pannerAttr.maxDistance<"u"?h.pannerAttr.maxDistance:c._maxDistance,refDistance:typeof h.pannerAttr.refDistance<"u"?h.pannerAttr.refDistance:c._refDistance,rolloffFactor:typeof h.pannerAttr.rolloffFactor<"u"?h.pannerAttr.rolloffFactor:c._rolloffFactor,panningModel:typeof h.pannerAttr.panningModel<"u"?h.pannerAttr.panningModel:c._panningModel});else return p=c._soundById(parseInt(d[0],10)),p?p._pannerAttr:c._pannerAttr;else d.length===2&&(h=d[0],m=parseInt(d[1],10));for(var w=c._getSoundIds(m),z=0;z<w.length;z++)if(p=c._soundById(w[z]),p){var A=p._pannerAttr;A={coneInnerAngle:typeof h.coneInnerAngle<"u"?h.coneInnerAngle:A.coneInnerAngle,coneOuterAngle:typeof h.coneOuterAngle<"u"?h.coneOuterAngle:A.coneOuterAngle,coneOuterGain:typeof h.coneOuterGain<"u"?h.coneOuterGain:A.coneOuterGain,distanceModel:typeof h.distanceModel<"u"?h.distanceModel:A.distanceModel,maxDistance:typeof h.maxDistance<"u"?h.maxDistance:A.maxDistance,refDistance:typeof h.refDistance<"u"?h.refDistance:A.refDistance,rolloffFactor:typeof h.rolloffFactor<"u"?h.rolloffFactor:A.rolloffFactor,panningModel:typeof h.panningModel<"u"?h.panningModel:A.panningModel};var y=p._panner;y||(p._pos||(p._pos=c._pos||[0,0,-.5]),n(p,"spatial"),y=p._panner),y.coneInnerAngle=A.coneInnerAngle,y.coneOuterAngle=A.coneOuterAngle,y.coneOuterGain=A.coneOuterGain,y.distanceModel=A.distanceModel,y.maxDistance=A.maxDistance,y.refDistance=A.refDistance,y.rolloffFactor=A.rolloffFactor,y.panningModel=A.panningModel}return c},Sound.prototype.init=(function(c){return function(){var d=this,h=d._parent;d._orientation=h._orientation,d._stereo=h._stereo,d._pos=h._pos,d._pannerAttr=h._pannerAttr,c.call(this),d._stereo?h.stereo(d._stereo):d._pos&&h.pos(d._pos[0],d._pos[1],d._pos[2],d._id)}})(Sound.prototype.init),Sound.prototype.reset=(function(c){return function(){var d=this,h=d._parent;return d._orientation=h._orientation,d._stereo=h._stereo,d._pos=h._pos,d._pannerAttr=h._pannerAttr,d._stereo?h.stereo(d._stereo):d._pos?h.pos(d._pos[0],d._pos[1],d._pos[2],d._id):d._panner&&(d._panner.disconnect(0),d._panner=void 0,h._refreshBuffer(d)),c.call(this)}})(Sound.prototype.reset);var n=function(c,d){d=d||"spatial",d==="spatial"?(c._panner=Howler.ctx.createPanner(),c._panner.coneInnerAngle=c._pannerAttr.coneInnerAngle,c._panner.coneOuterAngle=c._pannerAttr.coneOuterAngle,c._panner.coneOuterGain=c._pannerAttr.coneOuterGain,c._panner.distanceModel=c._pannerAttr.distanceModel,c._panner.maxDistance=c._pannerAttr.maxDistance,c._panner.refDistance=c._pannerAttr.refDistance,c._panner.rolloffFactor=c._pannerAttr.rolloffFactor,c._panner.panningModel=c._pannerAttr.panningModel,typeof c._panner.positionX<"u"?(c._panner.positionX.setValueAtTime(c._pos[0],Howler.ctx.currentTime),c._panner.positionY.setValueAtTime(c._pos[1],Howler.ctx.currentTime),c._panner.positionZ.setValueAtTime(c._pos[2],Howler.ctx.currentTime)):c._panner.setPosition(c._pos[0],c._pos[1],c._pos[2]),typeof c._panner.orientationX<"u"?(c._panner.orientationX.setValueAtTime(c._orientation[0],Howler.ctx.currentTime),c._panner.orientationY.setValueAtTime(c._orientation[1],Howler.ctx.currentTime),c._panner.orientationZ.setValueAtTime(c._orientation[2],Howler.ctx.currentTime)):c._panner.setOrientation(c._orientation[0],c._orientation[1],c._orientation[2])):(c._panner=Howler.ctx.createStereoPanner(),c._panner.pan.setValueAtTime(c._stereo,Howler.ctx.currentTime)),c._panner.connect(c._node),c._paused||c._parent.pause(c._id,!0).play(c._id,!0)}})()})(howler)),howler}var howlerExports=requireHowler(),localforage$1={exports:{}};var hasRequiredLocalforage;function requireLocalforage(){return hasRequiredLocalforage||(hasRequiredLocalforage=1,(function(o,n){(function(c){o.exports=c()})(function(){return(function c(d,h,m){function p(A,y){if(!h[A]){if(!d[A]){var s=typeof commonjsRequire=="function"&&commonjsRequire;if(!y&&s)return s(A,!0);if(w)return w(A,!0);var e=new Error("Cannot find module '"+A+"'");throw e.code="MODULE_NOT_FOUND",e}var f=h[A]={exports:{}};d[A][0].call(f.exports,function(g){var R=d[A][1][g];return p(R||g)},f,f.exports,c,d,h,m)}return h[A].exports}for(var w=typeof commonjsRequire=="function"&&commonjsRequire,z=0;z<m.length;z++)p(m[z]);return p})({1:[function(c,d,h){(function(m){var p=m.MutationObserver||m.WebKitMutationObserver,w;if(p){var z=0,A=new p(g),y=m.document.createTextNode("");A.observe(y,{characterData:!0}
vendor: 21,330 bytes, line 2146
2146),w=function(){y.data=z=++z%2}}else if(!m.setImmediate&&typeof m.MessageChannel<"u"){var s=new m.MessageChannel;s.port1.onmessage=g,w=function(){s.port2.postMessage(0)}}else"document"in m&&"onreadystatechange"in m.document.createElement("script")?w=function(){var q=m.document.createElement("script");q.onreadystatechange=function(){g(),q.onreadystatechange=null,q.parentNode.removeChild(q),q=null},m.document.documentElement.appendChild(q)}:w=function(){setTimeout(g,0)};var e,f=[];function g(){e=!0;for(var q,H,te=f.length;te;){for(H=f,f=[],q=-1;++q<te;)H[q]();te=f.length}e=!1}d.exports=R;function R(q){f.push(q)===1&&!e&&w()}}).call(this,typeof commonjsGlobal<"u"?commonjsGlobal:typeof self<"u"?self:typeof window<"u"?window:{})},{}],2:[function(c,d,h){var m=c(1);function p(){}var w={},z=["REJECTED"],A=["FULFILLED"],y=["PENDING"];d.exports=s;function s(ne){if(typeof ne!="function")throw new TypeError("resolver must be a function");this.state=y,this.queue=[],this.outcome=void 0,ne!==p&&R(this,ne)}s.prototype.catch=function(ne){return this.then(null,ne)},s.prototype.then=function(ne,oe){if(typeof ne!="function"&&this.state===A||typeof oe!="function"&&this.state===z)return this;var le=new this.constructor(p);if(this.state!==y){var ce=this.state===A?ne:oe;f(le,ce,this.outcome)}else this.queue.push(new e(le,ne,oe));return le};function e(ne,oe,le){this.promise=ne,typeof oe=="function"&&(this.onFulfilled=oe,this.callFulfilled=this.otherCallFulfilled),typeof le=="function"&&(this.onRejected=le,this.callRejected=this.otherCallRejected)}e.prototype.callFulfilled=function(ne){w.resolve(this.promise,ne)},e.prototype.otherCallFulfilled=function(ne){f(this.promise,this.onFulfilled,ne)},e.prototype.callRejected=function(ne){w.reject(this.promise,ne)},e.prototype.otherCallRejected=function(ne){f(this.promise,this.onRejected,ne)};function f(ne,oe,le){m(function(){var ce;try{ce=oe(le)}catch(ue){return w.reject(ne,ue)}ce===ne?w.reject(ne,new TypeError("Cannot resolve promise with itself")):w.resolve(ne,ce)})}w.resolve=function(ne,oe){var le=q(g,oe);if(le.status==="error")return w.reject(ne,le.value);var ce=le.value;if(ce)R(ne,ce);else{ne.state=A,ne.outcome=oe;for(var ue=-1,he=ne.queue.length;++ue<he;)ne.queue[ue].callFulfilled(oe)}return ne},w.reject=function(ne,oe){ne.state=z,ne.outcome=oe;for(var le=-1,ce=ne.queue.length;++le<ce;)ne.queue[le].callRejected(oe);return ne};function g(ne){var oe=ne&&ne.then;if(ne&&(typeof ne=="object"||typeof ne=="function")&&typeof oe=="function")return function(){oe.apply(ne,arguments)}}function R(ne,oe){var le=!1;function ce(Oe){le||(le=!0,w.reject(ne,Oe))}function ue(Oe){le||(le=!0,w.resolve(ne,Oe))}function he(){oe(ue,ce)}var ge=q(he);ge.status==="error"&&ce(ge.value)}function q(ne,oe){var le={};try{le.value=ne(oe),le.status="success"}catch(ce){le.status="error",le.value=ce}return le}s.resolve=H;function H(ne){return ne instanceof this?ne:w.resolve(new this(p),ne)}s.reject=te;function te(ne){var oe=new this(p);return w.reject(oe,ne)}s.all=re;function re(ne){var oe=this;if(Object.prototype.toString.call(ne)!=="[object Array]")return this.reject(new TypeError("must be an array"));var le=ne.length,ce=!1;if(!le)return this.resolve([]);for(var ue=new Array(le),he=0,ge=-1,Oe=new this(p);++ge<le;)$e(ne[ge],ge);return Oe;function $e(Pe,Le){oe.resolve(Pe).then(me,function(we){ce||(ce=!0,w.reject(Oe,we))});function me(we){ue[Le]=we,++he===le&&!ce&&(ce=!0,w.resolve(Oe,ue))}}}s.race=ae;function ae(ne){var oe=this;if(Object.prototype.toString.call(ne)!=="[object Array]")return this.reject(new TypeError("must be an array"));var le=ne.length,ce=!1;if(!le)return this.resolve([]);for(var ue=-1,he=new this(p);++ue<le;)ge(ne[ue]);return he;function ge(Oe){oe.resolve(Oe).then(function($e){ce||(ce=!0,w.resolve(he,$e))},function($e){ce||(ce=!0,w.reject(he,$e))})}}},{1:1}],3:[function(c,d,h){(function(m){typeof m.Promise!="function"&&(m.Promise=c(2))}).call(this,typeof commonjsGlobal<"u"?commonjsGlobal:typeof self<"u"?self:typeof window<"u"?window:{})},{2:2}],4:[function(c,d,h){var m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ce){return typeof Ce}:function(Ce){return Ce&&typeof Symbol=="function"&&Ce.constructor===Symbol&&Ce!==Symbol.prototype?"symbol":typeof Ce};function p(Ce,Re){if(!(Ce instanceof Re))throw new TypeError("Cannot call a class as a function")}function w(){try{if(typeof indexedDB<"u")return indexedDB;if(typeof webkitIndexedDB<"u")return webkitIndexedDB;if(typeof mozIndexedDB<"u")return mozIndexedDB;if(typeof OIndexedDB<"u")return OIndexedDB;if(typeof msIndexedDB<"u")return msIndexedDB}catch{return}}var z=w();function A(){try{if(!z||!z.open)return!1;var Ce=typeof openDatabase<"u"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),Re=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!Ce||Re)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}function y(Ce,Re){Ce=Ce||[],Re=Re||{};try{return new Blob(Ce,Re)}catch(We){if(We.name!=="TypeError")throw We;for(var Me=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,rt=new Me,ut=0;ut<Ce.length;ut+=1)rt.append(Ce[ut]);return rt.getBlob(Re.type)}}typeof Promise>"u"&&c(3);var s=Promise;function e(Ce,Re){Re&&Ce.then(function(Me){Re(null,Me)},function(Me){Re(Me)})}function f(Ce,Re,Me){typeof Re=="function"&&Ce.then(Re),typeof Me=="function"&&Ce.catch(Me)}function g(Ce){return typeof Ce!="string"&&(console.warn(Ce+" used as a key, but it is not a string."),Ce=String(Ce)),Ce}function R(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var q="local-forage-detect-blob-support",H=void 0,te={},re=Object.prototype.toString,ae="readonly",ne="readwrite";function oe(Ce){for(var Re=Ce.length,Me=new ArrayBuffer(Re),rt=new Uint8Array(Me),ut=0;ut<Re;ut++)rt[ut]=Ce.charCodeAt(ut);return Me}function le(Ce){return new s(function(Re){var Me=Ce.transaction(q,ne),rt=y([""]);Me.objectStore(q).put(rt,"key"),Me.onabort=function(ut){ut.preventDefault(),ut.stopPropagation(),Re(!1)},Me.oncomplete=function(){var ut=navigator.userAgent.match(/Chrome\/(\d+)/),We=navigator.userAgent.match(/Edge\//);Re(We||!ut||parseInt(ut[1],10)>=43)}}).catch(function(){return!1})}function ce(Ce){return typeof H=="boolean"?s.resolve(H):le(Ce).then(function(Re){return H=Re,H})}function ue(Ce){var Re=te[Ce.name],Me={};Me.promise=new s(function(rt,ut){Me.resolve=rt,Me.reject=ut}),Re.deferredOperations.push(Me),Re.dbReady?Re.dbReady=Re.dbReady.then(function(){return Me.promise}):Re.dbReady=Me.promise}function he(Ce){var Re=te[Ce.name],Me=Re.deferredOperations.pop();if(Me)return Me.resolve(),Me.promise}function ge(Ce,Re){var Me=te[Ce.name],rt=Me.deferredOperations.pop();if(rt)return rt.reject(Re),rt.promise}function Oe(Ce,Re){return new s(function(Me,rt){if(te[Ce.name]=te[Ce.name]||Ie(),Ce.db)if(Re)ue(Ce),Ce.db.close();else return Me(Ce.db);var ut=[Ce.name];Re&&ut.push(Ce.version);var We=z.open.apply(z,ut);Re&&(We.onupgradeneeded=function(Lt){var Nt=We.result;try{Nt.createObjectStore(Ce.storeName),Lt.oldVersion<=1&&Nt.createObjectStore(q)}catch(Ut){if(Ut.name==="ConstraintError")console.warn('The database "'+Ce.name+'" has been upgraded from version '+Lt.oldVersion+" to version "+Lt.newVersion+', but the storage "'+Ce.storeName+'" already exists.');else throw Ut}}),We.onerror=function(Lt){Lt.preventDefault(),rt(We.error)},We.onsuccess=function(){var Lt=We.result;Lt.onversionchange=function(Nt){Nt.target.close()},Me(Lt),he(Ce)}})}function $e(Ce){return Oe(Ce,!1)}function Pe(Ce){return Oe(Ce,!0)}function Le(Ce,Re){if(!Ce.db)return!0;var Me=!Ce.db.objectStoreNames.contains(Ce.storeName),rt=Ce.version<Ce.db.version,ut=Ce.version>Ce.db.version;if(rt&&(Ce.version!==Re&&console.warn('The database "'+Ce.name+`" can't be downgraded from version `+Ce.db.version+" to version "+Ce.version+"."),Ce.version=Ce.db.version),ut||Me){if(Me){var We=Ce.db.version+1;We>Ce.version&&(Ce.version=We)}return!0}return!1}function me(Ce){return new s(function(Re,Me){var rt=new FileReader;rt.onerror=Me,rt.onloadend=function(ut){var We=btoa(ut.target.result||"");Re({__local_forage_encoded_blob:!0,data:We,type:Ce.type})},rt.readAsBinaryString(Ce)})}function we(Ce){var Re=oe(atob(Ce.data));return y([Re],{type:Ce.type})}function Se(Ce){return Ce&&Ce.__local_forage_encoded_blob}function ye(Ce){var Re=this,Me=Re._initReady().then(function(){var rt=te[Re._dbInfo.name];if(rt&&rt.dbReady)return rt.dbReady});return f(Me,Ce,Ce),Me}function ke(Ce){ue(Ce);for(var Re=te[Ce.name],Me=Re.forages,rt=0;rt<Me.length;rt++){var ut=Me[rt];ut._dbInfo.db&&(ut._dbInfo.db.close(),ut._dbInfo.db=null)}return Ce.db=null,$e(Ce).then(function(We){return Ce.db=We,Le(Ce)?Pe(Ce):We}).then(function(We){Ce.db=Re.db=We;for(var Lt=0;Lt<Me.length;Lt++)Me[Lt]._dbInfo.db=We}).catch(function(We){throw ge(Ce,We),We})}function Ae(Ce,Re,Me,rt){rt===void 0&&(rt=1);try{var ut=Ce.db.transaction(Ce.storeName,Re);Me(null,ut)}catch(We){if(rt>0&&(!Ce.db||We.name==="InvalidStateError"||We.name==="NotFoundError"))return s.resolve().then(function(){if(!Ce.db||We.name==="NotFoundError"&&!Ce.db.objectStoreNames.contains(Ce.storeName)&&Ce.version<=Ce.db.version)return Ce.db&&(Ce.version=Ce.db.version+1),Pe(Ce)}).then(function(){return ke(Ce).then(function(){Ae(Ce,Re,Me,rt-1)})}).catch(Me);Me(We)}}function Ie(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function qe(Ce){var Re=this,Me={db:null};if(Ce)for(var rt in Ce)Me[rt]=Ce[rt];var ut=te[Me.name];ut||(ut=Ie(),te[Me.name]=ut),ut.forages.push(Re),Re._initReady||(Re._initReady=Re.ready,Re.ready=ye);var We=[];function Lt(){return s.resolve()}for(var Nt=0;Nt<ut.forages.length;Nt++){var Ut=ut.forages[Nt];Ut!==Re&&We.push(Ut._initReady().catch(Lt))}var Xt=ut.forages.slice(0);return s.all(We).then(function(){return Me.db=ut.db,$e(Me)}).then(function(tn){return Me.db=tn,Le(Me,Re._defaultConfig.version)?Pe(Me):tn}).then(function(tn){Me.db=ut.db=tn,Re._dbInfo=Me;for(var hn=0;hn<Xt.length;hn++){var wn=Xt[hn];wn!==Re&&(wn._dbInfo.db=Me.db,wn._dbInfo.version=Me.version)}})}function Ge(Ce,Re){var Me=this;Ce=g(Ce);var rt=new s(function(ut,We){Me.ready().then(function(){Ae(Me._dbInfo,ae,function(Lt,Nt){if(Lt)return We(Lt);try{var Ut=Nt.objectStore(Me._dbInfo.storeName),Xt=Ut.get(Ce);Xt.onsuccess=function(){var tn=Xt.result;tn===void 0&&(tn=null),Se(tn)&&(tn=we(tn)),ut(tn)},Xt.onerror=function(){We(Xt.error)}}catch(tn){We(tn)}})}).catch(We)});return e(rt,Re),rt}function Je(Ce,Re){var Me=this,rt=new s(function(ut,We){Me.ready().then(function(){Ae(Me._dbInfo,ae,function(Lt,Nt){if(Lt)return We(Lt);try{var Ut=Nt.objectStore(Me._dbInfo.storeName),Xt=Ut.openCursor(),tn=1;Xt.onsuccess=function(){var hn=Xt.result;if(hn){var wn=hn.value;Se(wn)&&(wn=we(wn));var yn=Ce(wn,hn.key,tn++);yn!==void 0?ut(yn):hn.continue()}else ut()},Xt.onerror=function(){We(Xt.error)}}catch(hn){We(hn)}})}).catch(We)});return e(rt,Re),rt}function Te(Ce,Re,Me){var rt=this;Ce=g(Ce);var ut=new s(function(We,Lt){var Nt;rt.ready().then(function(){return Nt=rt._dbInfo,re.call(Re)==="[object Blob]"?ce(Nt.db).then(function(Ut){return Ut?Re:me(Re)}):Re}).then(function(Ut){Ae(rt._dbInfo,ne,function(Xt,tn){if(Xt)return Lt(Xt);try{var hn=tn.objectStore(rt._dbInfo.storeName);Ut===null&&(Ut=void 0);var wn=hn.put(Ut,Ce);tn.oncomplete=function(){Ut===void 0&&(Ut=null),We(Ut)},tn.onabort=tn.onerror=function(){var yn=wn.error?wn.error:wn.transaction.error;Lt(yn)}}catch(yn){Lt(yn)}})}).catch(Lt)});return e(ut,Me),ut}function ve(Ce,Re){var Me=this;Ce=g(Ce);var rt=new s(function(ut,We){Me.ready().then(function(){Ae(Me._dbInfo,ne,function(Lt,Nt){if(Lt)return We(Lt);try{var Ut=Nt.objectStore(Me._dbInfo.storeName),Xt=Ut.delete(Ce);Nt.oncomplete=function(){ut()},Nt.onerror=function(){We(Xt.error)},Nt.onabort=function(){var tn=Xt.error?Xt.error:Xt.transaction.error;We(tn)}}catch(tn){We(tn)}})}).catch(We)});return e(rt,Re),rt}function et(Ce){var Re=this,Me=new s(function(rt,ut){Re.ready().then(function(){Ae(Re._dbInfo,ne,function(We,Lt){if(We)return ut(We);try{var Nt=Lt.objectStore(Re._dbInfo.storeName),Ut=Nt.clear();Lt.oncomplete=function(){rt()},Lt.onabort=Lt.onerror=function(){var Xt=Ut.error?Ut.error:Ut.transaction.error;ut(Xt)}}catch(Xt){ut(Xt)}})}).catch(ut)});return e(Me,Ce),Me}function mt(Ce){var Re=this,Me=new s(function(rt,ut){Re.ready().then(function(){Ae(Re._dbInfo,ae,function(We,Lt){if(We)return ut(We);try{var Nt=Lt.objectStore(Re._dbInfo.storeName),Ut=Nt.count();Ut.onsuccess=function(){rt(Ut.result)},Ut.onerror=function(){ut(Ut.error)}}catch(Xt){ut(Xt)}})}).catch(ut)});return e(Me,Ce),Me}function ht(Ce,Re){var Me=this,rt=new s(function(ut,We){if(Ce<0){ut(null);return}Me.ready().then(function(){Ae(Me._dbInfo,ae,function(Lt,Nt){if(Lt)return We(Lt);try{var Ut=Nt.objectStore(Me._dbInfo.storeName),Xt=!1,tn=Ut.openKeyCursor();tn.onsuccess=function(){var hn=tn.result;if(!hn){ut(null);return}Ce===0||Xt?ut(hn.key):(Xt=!0,hn.advance(Ce))},tn.onerror=function(){We(tn.error)}}catch(hn){We(hn)}})}).catch(We)});return e(rt,Re),rt}function ct(Ce){var Re=this,Me=new s(function(rt,ut){Re.ready().then(function(){Ae(Re._dbInfo,ae,function(We,Lt){if(We)return ut(We);try{var Nt=Lt.objectStore(Re._dbInfo.storeName),Ut=Nt.openKeyCursor(),Xt=[];Ut.onsuccess=function(){var tn=Ut.result;if(!tn){rt(Xt);return}Xt.push(tn.key),tn.continue()},Ut.onerror=function(){ut(Ut.error)}}catch(tn){ut(tn)}})}).catch(ut)});return e(Me,Ce),Me}function Ue(Ce,Re){Re=R.apply(this,arguments);var Me=this.config();Ce=typeof Ce!="function"&&Ce||{},Ce.name||(Ce.name=Ce.name||Me.name,Ce.storeName=Ce.storeName||Me.storeName);var rt=this,ut;if(!Ce.name)ut=s.reject("Invalid arguments");else{var We=Ce.name===Me.name&&rt._dbInfo.db,Lt=We?s.resolve(rt._dbInfo.db):$e(Ce).then(function(Nt){var Ut=te[Ce.name],Xt=Ut.forages;Ut.db=Nt;for(var tn=0;tn<Xt.length;tn++)Xt[tn]._dbInfo.db=Nt;return Nt});Ce.storeName?ut=Lt.then(function(Nt){if(Nt.objectStoreNames.contains(Ce.storeName)){var Ut=Nt.version+1;ue(Ce);var Xt=te[Ce.name],tn=Xt.forages;Nt.close();for(var hn=0;hn<tn.length;hn++){var wn=tn[hn];wn._dbInfo.db=null,wn._dbInfo.version=Ut}var yn=new s(function(Pn,Fn){var zn=z.open(Ce.name,Ut);zn.onerror=function(cn){var $n=zn.result;$n.close(),Fn(cn)},zn.onupgradeneeded=function(){var cn=zn.result;cn.deleteObjectStore(Ce.storeName)},zn.onsuccess=function(){var cn=zn.result;cn.close(),Pn(cn)}});return yn.then(function(Pn){Xt.db=Pn;for(var Fn=0;Fn<tn.length;Fn++){var zn=tn[Fn];zn._dbInfo.db=Pn,he(zn._dbInfo)}}).catch(function(Pn){throw(ge(Ce,Pn)||s.resolve()).catch(function(){}),Pn})}}):ut=Lt.then(function(Nt){ue(Ce);var Ut=te[Ce.name],Xt=Ut.forages;Nt.close();for(var tn=0;tn<Xt.length;tn++){var hn=Xt[tn];hn._dbInfo.db=null}var wn=new s(function(yn,Pn){var Fn=z.deleteDatabase(Ce.name);Fn.onerror=function(){var zn=Fn.result;zn&&zn.close(),Pn(Fn.error)},Fn.onblocked=function(){console.warn('dropInstance blocked for database "'+Ce.name+'" until all open connections are closed')},Fn.onsuccess=function(){var zn=Fn.result;zn&&zn.close(),yn(zn)}});return wn.then(function(yn){Ut.db=yn;for(var Pn=0;Pn<Xt.length;Pn++){var Fn=Xt[Pn];he(Fn._dbInfo)}}).catch(function(yn){throw(ge(Ce,yn)||s.resolve()).catch(function(){}),yn})})}return e(ut,Re),ut}var ot={_driver:"asyncStorage",_initStorage:qe,_support:A(),iterate:Je,getItem:Ge,setItem:Te,removeItem:ve,clear:et,length:mt,key:ht,keys:ct,dropInstance:Ue};function bt(){return typeof openDatabase=="function"}var At="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ft="~~local_forage_type~",be=/^~~local_forage_type~([^~]+)~/,Et="__lfsc__:",St=Et.length,Jt="arbf",Bt="blob",Vt="si08",Tt="ui08",Be="uic8",Xe="si16",Ke="si32",nt="ur16",xt="ui32",Mt="fl32",Ye="fl64",at=St+Jt.length,st=Object.prototype.toString;function vt(Ce){var Re=Ce.length*.75,Me=Ce.length,rt,ut=0,We,Lt,Nt,Ut;Ce[Ce.length-1]==="="&&(Re--,Ce[Ce.length-2]==="="&&Re--);var Xt=new ArrayBuffer(Re),tn=new Uint8Array(Xt);for(rt=0;rt<Me;rt+=4)We=At.indexOf(Ce[rt]),Lt=At.indexOf(Ce[rt+1]),Nt=At.indexOf(Ce[rt+2]),Ut=At.indexOf(Ce[rt+3]),tn[ut++]=We<<2|Lt>>4,tn[ut++]=(Lt&15)<<4|Nt>>2,tn[ut++]=(Nt&3)<<6|Ut&63;return Xt}function gt(Ce){var Re=new Uint8Array(Ce),Me="",rt;for(rt=0;rt<Re.length;rt+=3)Me+=At[Re[rt]>>2],Me+=At[(Re[rt]&3)<<4|Re[rt+1]>>4],Me+=At[(Re[rt+1]&15)<<2|Re[rt+2]>>6],Me+=At[Re[rt+2]&63];return Re.length%3===2?Me=Me.substring(0,Me.length-1)+"=":Re.length%3===1&&(Me=Me.substring(0,Me.length-2)+"=="),Me}function Ot(Ce,Re){var Me="";if(Ce&&(Me=st.call(Ce)),Ce&&(Me==="[object ArrayBuffer]"||Ce.buffer&&st.call(Ce.buffer)==="[object ArrayBuffer]")){var rt,ut=Et;Ce instanceof ArrayBuffer?(rt=Ce,ut+=Jt):(rt=Ce.buffer,Me==="[object Int8Array]"?ut+=Vt:Me==="[object Uint8Array]"?ut+=Tt:Me==="[object Uint8ClampedArray]"?ut+=Be:Me==="[object Int16Array]"?ut+=Xe:Me==="[object Uint16Array]"?ut+=nt:Me==="[object Int32Array]"?ut+=Ke:Me==="[object Uint32Array]"?ut+=xt:Me==="[object Float32Array]"?ut+=Mt:Me==="[object Float64Array]"?ut+=Ye:Re(new Error("Failed to get type for BinaryArray"))),Re(ut+gt(rt))}else if(Me==="[object Blob]"){var We=new FileReader;We.onload=function(){var Lt=ft+Ce.type+"~"+gt(this.result);Re(Et+Bt+Lt)},We.readAsArrayBuffer(Ce)}else try{Re(JSON.stringify(Ce))}catch(Lt){console.error("Couldn't convert value into a JSON string: ",Ce),Re(null,Lt)}}function Dt(Ce){if(Ce.substring(0,St)!==Et)return JSON.parse(Ce);var Re=Ce.substring(at),Me=Ce.substring(St,at),rt;if(Me===Bt&&be.test(Re)){var ut=Re.match(be);rt=ut[1],Re=Re.substring(ut[0].length)}var We=vt(Re);switch(Me){case Jt:return We;case Bt:return y([We],{type:rt});case Vt:return new Int8Array(We);case Tt:return new Uint8Array(We);case Be:return new Uint8ClampedArray(We);case Xe:return new Int16Array(We);case nt:return new Uint16Array(We);case Ke:return new Int32Array(We);case xt:return new Uint32Array(We);case Mt:return new Float32Array(We);case Ye:return new Float64Array(We);default:throw new Error("Unkown type: "+Me)}}var Gt={serialize:Ot,deserialize:Dt,stringToBuffer:vt,bufferToString:gt};function Ft(Ce,Re,Me,rt){Ce.executeSql("CREATE TABLE IF NOT EXISTS "+Re.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],Me,rt)}function Pt(Ce){var Re=this,Me={db:null};if(Ce)for(var rt in Ce)Me[rt]=typeof Ce[rt]!="string"?Ce[rt].toString():Ce[rt];var ut=new s(function(We,Lt){try{Me.db=openDatabase(Me.name,String(Me.version),Me.description,Me.size)}catch(Nt){return Lt(Nt)}Me.db.transaction(function(Nt){Ft(Nt,Me,function(){Re._dbInfo=Me,We()},function(Ut,Xt){Lt(Xt)})},Lt)});return Me.serializer=Gt,ut}function qt(Ce,Re,Me,rt,ut,We){Ce.executeSql(Me,rt,ut,function(Lt,Nt){Nt.code===Nt.SYNTAX_ERR?Lt.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[Re.storeName],function(Ut,Xt){Xt.rows.length?We(Ut,Nt):Ft(Ut,Re,function(){Ut.executeSql(Me,rt,ut,We)},We)},We):We(Lt,Nt)},We)}function on(Ce,Re){var Me=this;Ce=g(Ce);var rt=new s(function(ut,We){Me.ready().then(function(){var Lt=Me._dbInfo;Lt.db.transaction(function(Nt){qt(Nt,Lt,"SELECT * FROM "+Lt.storeName+" WHERE key = ? LIMIT 1",[Ce],function(Ut,Xt){var tn=Xt.rows.length?Xt.rows.item(0).value:null;tn&&(tn=Lt.serializer.deserialize(tn)),ut(tn)},function(Ut,Xt){We(Xt)})})}).catch(We)});return e(rt,Re),rt}function He(Ce,Re){var Me=this,rt=new s(function(ut,We){Me.ready().then(function(){var Lt=Me._dbInfo;Lt.db.transaction(function(Nt){qt(Nt,Lt,"SELECT * FROM "+Lt.storeName,[],function(Ut,Xt){for(var tn=Xt.rows,hn=tn.length,wn=0;wn<hn;wn++){var yn=tn.item(wn),Pn=yn.value;if(Pn&&(Pn=Lt.serializer.deserialize(Pn)),Pn=Ce(Pn,yn.key,wn+1),Pn!==void 0){ut(Pn);return}}ut()},function(Ut,Xt){We(Xt)})})}).catch(We)});return e(rt,Re),rt}function Ve(Ce,Re,Me,rt){var ut=this;Ce=g(Ce);var We=new s(function(Lt,Nt){ut.ready().then(function(){Re===void 0&&(Re=null);var Ut=Re,Xt=ut._dbInfo;Xt.serializer.serialize(Re,function(tn,hn){hn?Nt(hn):Xt.db.transaction(function(wn){qt(wn,Xt,"INSERT OR REPLACE INTO "+Xt.storeName+" (key, value) VALUES (?, ?)",[Ce,tn],function(){Lt(Ut)},function(yn,Pn){Nt(Pn)})},function(wn){if(wn.code===wn.QUOTA_ERR){if(rt>0){Lt(Ve.apply(ut,[Ce,Ut,Me,rt-1]));return}Nt(wn)}})})}).catch(Nt)});return e(We,Me),We}function pt(Ce,Re,Me){return Ve.apply(this,[Ce,Re,Me,1])}function wt(Ce,Re){var Me=this;Ce=g(Ce);var rt=new s(function(ut,We){Me.ready().then(function(){var Lt=Me._dbInfo;Lt.db.transaction(function(Nt){qt(Nt,Lt,"DELETE FROM "+Lt.storeName+" WHERE key = ?",[Ce],function(){ut()},function(Ut,Xt){We(Xt)})})}).catch(We)});return e(rt,Re),rt}function nn(Ce){var Re=this,Me=new s(function(rt,ut){Re.ready().then(function(){var We=Re._dbInfo;We.db.transaction(function(Lt){qt(Lt,We,"DELETE FROM "+We.storeName,[],function(){rt()},function(Nt,Ut){ut(Ut)})})}).catch(ut)});return e(Me,Ce),Me}function Wt(Ce){var Re=this,Me=new s(function(rt,ut){Re.ready().then(function(){var We=Re._dbInfo;We.db.transaction(function(Lt){qt(Lt,We,"SELECT COUNT(key) as c FROM "+We.storeName,[],function(Nt,Ut){var Xt=Ut.rows.item(0).c;rt(Xt)},function(Nt,Ut){ut(Ut)})})}).catch(ut)});return e(Me,Ce),Me}function ln(Ce,Re){var Me=this,rt=new s(function(ut,We){Me.ready().then(function(){var Lt=Me._dbInfo;Lt.db.transaction(function(Nt){qt(Nt,Lt,"SELECT key FROM "+Lt.storeName+" WHERE id = ? L
2146IMIT 1",[Ce+1],function(Ut,Xt){var tn=Xt.rows.length?Xt.rows.item(0).key:null;ut(tn)},function(Ut,Xt){We(Xt)})})}).catch(We)});return e(rt,Re),rt}function _n(Ce){var Re=this,Me=new s(function(rt,ut){Re.ready().then(function(){var We=Re._dbInfo;We.db.transaction(function(Lt){qt(Lt,We,"SELECT key FROM "+We.storeName,[],function(Nt,Ut){for(var Xt=[],tn=0;tn<Ut.rows.length;tn++)Xt.push(Ut.rows.item(tn).key);rt(Xt)},function(Nt,Ut){ut(Ut)})})}).catch(ut)});return e(Me,Ce),Me}function xn(Ce){return new s(function(Re,Me){Ce.transaction(function(rt){rt.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(ut,We){for(var Lt=[],Nt=0;Nt<We.rows.length;Nt++)Lt.push(We.rows.item(Nt).name);Re({db:Ce,storeNames:Lt})},function(ut,We){Me(We)})},function(rt){Me(rt)})})}function rn(Ce,Re){Re=R.apply(this,arguments);var Me=this.config();Ce=typeof Ce!="function"&&Ce||{},Ce.name||(Ce.name=Ce.name||Me.name,Ce.storeName=Ce.storeName||Me.storeName);var rt=this,ut;return Ce.name?ut=new s(function(We){var Lt;Ce.name===Me.name?Lt=rt._dbInfo.db:Lt=openDatabase(Ce.name,"","",0),Ce.storeName?We({db:Lt,storeNames:[Ce.storeName]}):We(xn(Lt))}).then(function(We){return new s(function(Lt,Nt){We.db.transaction(function(Ut){function Xt(yn){return new s(function(Pn,Fn){Ut.executeSql("DROP TABLE IF EXISTS "+yn,[],function(){Pn()},function(zn,cn){Fn(cn)})})}for(var tn=[],hn=0,wn=We.storeNames.length;hn<wn;hn++)tn.push(Xt(We.storeNames[hn]));s.all(tn).then(function(){Lt()}).catch(function(yn){Nt(yn)})},function(Ut){Nt(Ut)})})}):ut=s.reject("Invalid arguments"),e(ut,Re),ut}var vn={_driver:"webSQLStorage",_initStorage:Pt,_support:bt(),iterate:He,getItem:on,setItem:pt,removeItem:wt,clear:nn,length:Wt,key:ln,keys:_n,dropInstance:rn};function Yn(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function Nn(Ce,Re){var Me=Ce.name+"/";return Ce.storeName!==Re.storeName&&(Me+=Ce.storeName+"/"),Me}function gn(){var Ce="_localforage_support_test";try{return localStorage.setItem(Ce,!0),localStorage.removeItem(Ce),!1}catch{return!0}}function pr(){return!gn()||localStorage.length>0}function Ln(Ce){var Re=this,Me={};if(Ce)for(var rt in Ce)Me[rt]=Ce[rt];return Me.keyPrefix=Nn(Ce,Re._defaultConfig),pr()?(Re._dbInfo=Me,Me.serializer=Gt,s.resolve()):s.reject()}function Xn(Ce){var Re=this,Me=Re.ready().then(function(){for(var rt=Re._dbInfo.keyPrefix,ut=localStorage.length-1;ut>=0;ut--){var We=localStorage.key(ut);We.indexOf(rt)===0&&localStorage.removeItem(We)}});return e(Me,Ce),Me}function Tr(Ce,Re){var Me=this;Ce=g(Ce);var rt=Me.ready().then(function(){var ut=Me._dbInfo,We=localStorage.getItem(ut.keyPrefix+Ce);return We&&(We=ut.serializer.deserialize(We)),We});return e(rt,Re),rt}function De(Ce,Re){var Me=this,rt=Me.ready().then(function(){for(var ut=Me._dbInfo,We=ut.keyPrefix,Lt=We.length,Nt=localStorage.length,Ut=1,Xt=0;Xt<Nt;Xt++){var tn=localStorage.key(Xt);if(tn.indexOf(We)===0){var hn=localStorage.getItem(tn);if(hn&&(hn=ut.serializer.deserialize(hn)),hn=Ce(hn,tn.substring(Lt),Ut++),hn!==void 0)return hn}}});return e(rt,Re),rt}function Ze(Ce,Re){var Me=this,rt=Me.ready().then(function(){var ut=Me._dbInfo,We;try{We=localStorage.key(Ce)}catch{We=null}return We&&(We=We.substring(ut.keyPrefix.length)),We});return e(rt,Re),rt}function _t(Ce){var Re=this,Me=Re.ready().then(function(){for(var rt=Re._dbInfo,ut=localStorage.length,We=[],Lt=0;Lt<ut;Lt++){var Nt=localStorage.key(Lt);Nt.indexOf(rt.keyPrefix)===0&&We.push(Nt.substring(rt.keyPrefix.length))}return We});return e(Me,Ce),Me}function dt(Ce){var Re=this,Me=Re.keys().then(function(rt){return rt.length});return e(Me,Ce),Me}function lt(Ce,Re){var Me=this;Ce=g(Ce);var rt=Me.ready().then(function(){var ut=Me._dbInfo;localStorage.removeItem(ut.keyPrefix+Ce)});return e(rt,Re),rt}function Ct(Ce,Re,Me){var rt=this;Ce=g(Ce);var ut=rt.ready().then(function(){Re===void 0&&(Re=null);var We=Re;return new s(function(Lt,Nt){var Ut=rt._dbInfo;Ut.serializer.serialize(Re,function(Xt,tn){if(tn)Nt(tn);else try{localStorage.setItem(Ut.keyPrefix+Ce,Xt),Lt(We)}catch(hn){(hn.name==="QuotaExceededError"||hn.name==="NS_ERROR_DOM_QUOTA_REACHED")&&Nt(hn),Nt(hn)}})})});return e(ut,Me),ut}function en(Ce,Re){if(Re=R.apply(this,arguments),Ce=typeof Ce!="function"&&Ce||{},!Ce.name){var Me=this.config();Ce.name=Ce.name||Me.name,Ce.storeName=Ce.storeName||Me.storeName}var rt=this,ut;return Ce.name?ut=new s(function(We){Ce.storeName?We(Nn(Ce,rt._defaultConfig)):We(Ce.name+"/")}).then(function(We){for(var Lt=localStorage.length-1;Lt>=0;Lt--){var Nt=localStorage.key(Lt);Nt.indexOf(We)===0&&localStorage.removeItem(Nt)}}):ut=s.reject("Invalid arguments"),e(ut,Re),ut}var mn={_driver:"localStorageWrapper",_initStorage:Ln,_support:Yn(),iterate:De,getItem:Tr,setItem:Ct,removeItem:lt,clear:Xn,length:dt,key:Ze,ke
vendor: 4,712 bytes, line 2146
2146ys:_t,dropInstance:en},fn=function(Re,Me){return Re===Me||typeof Re=="number"&&typeof Me=="number"&&isNaN(Re)&&isNaN(Me)},In=function(Re,Me){for(var rt=Re.length,ut=0;ut<rt;){if(fn(Re[ut],Me))return!0;ut++}return!1},Mn=Array.isArray||function(Ce){return Object.prototype.toString.call(Ce)==="[object Array]"},nr={},sr={},Rt={INDEXEDDB:ot,WEBSQL:vn,LOCALSTORAGE:mn},bn=[Rt.INDEXEDDB._driver,Rt.WEBSQL._driver,Rt.LOCALSTORAGE._driver],Rn=["dropInstance"],ir=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(Rn),Hn={description:"",driver:bn.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function lr(Ce,Re){Ce[Re]=function(){var Me=arguments;return Ce.ready().then(function(){return Ce[Re].apply(Ce,Me)})}}function ii(){for(var Ce=1;Ce<arguments.length;Ce++){var Re=arguments[Ce];if(Re)for(var Me in Re)Re.hasOwnProperty(Me)&&(Mn(Re[Me])?arguments[0][Me]=Re[Me].slice():arguments[0][Me]=Re[Me])}return arguments[0]}var di=(function(){function Ce(Re){p(this,Ce);for(var Me in Rt)if(Rt.hasOwnProperty(Me)){var rt=Rt[Me],ut=rt._driver;this[Me]=ut,nr[ut]||this.defineDriver(rt)}this._defaultConfig=ii({},Hn),this._config=ii({},this._defaultConfig,Re),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return Ce.prototype.config=function(Me){if((typeof Me>"u"?"undefined":m(Me))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var rt in Me){if(rt==="storeName"&&(Me[rt]=Me[rt].replace(/\W/g,"_")),rt==="version"&&typeof Me[rt]!="number")return new Error("Database version must be a number.");this._config[rt]=Me[rt]}return"driver"in Me&&Me.driver?this.setDriver(this._config.driver):!0}else return typeof Me=="string"?this._config[Me]:this._config},Ce.prototype.defineDriver=function(Me,rt,ut){var We=new s(function(Lt,Nt){try{var Ut=Me._driver,Xt=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!Me._driver){Nt(Xt);return}for(var tn=ir.concat("_initStorage"),hn=0,wn=tn.length;hn<wn;hn++){var yn=tn[hn],Pn=!In(Rn,yn);if((Pn||Me[yn])&&typeof Me[yn]!="function"){Nt(Xt);return}}var Fn=function(){for(var $n=function(Kr){return function(){var Mr=new Error("Method "+Kr+" is not implemented by the current driver"),kr=s.reject(Mr);return e(kr,arguments[arguments.length-1]),kr}},En=0,On=Rn.length;En<On;En++){var xr=Rn[En];Me[xr]||(Me[xr]=$n(xr))}};Fn();var zn=function($n){nr[Ut]&&console.info("Redefining LocalForage driver: "+Ut),nr[Ut]=Me,sr[Ut]=$n,Lt()};"_support"in Me?Me._support&&typeof Me._support=="function"?Me._support().then(zn,Nt):zn(!!Me._support):zn(!0)}catch(cn){Nt(cn)}});return f(We,rt,ut),We},Ce.prototype.driver=function(){return this._driver||null},Ce.prototype.getDriver=function(Me,rt,ut){var We=nr[Me]?s.resolve(nr[Me]):s.reject(new Error("Driver not found."));return f(We,rt,ut),We},Ce.prototype.getSerializer=function(Me){var rt=s.resolve(Gt);return f(rt,Me),rt},Ce.prototype.ready=function(Me){var rt=this,ut=rt._driverSet.then(function(){return rt._ready===null&&(rt._ready=rt._initDriver()),rt._ready});return f(ut,Me,Me),ut},Ce.prototype.setDriver=function(Me,rt,ut){var We=this;Mn(Me)||(Me=[Me]);var Lt=this._getSupportedDrivers(Me);function Nt(){We._config.driver=We.driver()}function Ut(hn){return We._extend(hn),Nt(),We._ready=We._initStorage(We._config),We._ready}function Xt(hn){return function(){var wn=0;function yn(){for(;wn<hn.length;){var Pn=hn[wn];return wn++,We._dbInfo=null,We._ready=null,We.getDriver(Pn).then(Ut).catch(yn)}Nt();var Fn=new Error("No available storage method found.");return We._driverSet=s.reject(Fn),We._driverSet}return yn()}}var tn=this._driverSet!==null?this._driverSet.catch(function(){return s.resolve()}):s.resolve();return this._driverSet=tn.then(function(){var hn=Lt[0];return We._dbInfo=null,We._ready=null,We.getDriver(hn).then(function(wn){We._driver=wn._driver,Nt(),We._wrapLibraryMethodsWithReady(),We._initDriver=Xt(Lt)})}).catch(function(){Nt();var hn=new Error("No available storage method found.");return We._driverSet=s.reject(hn),We._driverSet}),f(this._driverSet,rt,ut),this._driverSet},Ce.prototype.supports=function(Me){return!!sr[Me]},Ce.prototype._extend=function(Me){ii(this,Me)},Ce.prototype._getSupportedDrivers=function(Me){for(var rt=[],ut=0,We=Me.length;ut<We;ut++){var Lt=Me[ut];this.supports(Lt)&&rt.push(Lt)}return rt},Ce.prototype._wrapLibraryMethodsWithReady=function(){for(var Me=0,rt=ir.length;Me<rt;Me++)lr(this,ir[Me])},Ce.prototype.createInstance=function(Me){return new Ce(Me)},Ce})(),Bn=new di;d.exports=Bn},{3:3}]},{},[4])(4)}
2146)})(localforage$1)),localforage$1.exports}var localforageExports=requireLocalforage();const localforage=getDefaultExportFromCjs(localforageExports);var root_2$g=from_html("<p> </p>"),root_6$7=from_html(`<p style="font-family:museosans;margin-top:8rem;line-height:1.7rem" class="svelte-191uvz2">Diese Unterhaltung wird anonym gespeichert – sonst funktioniert es nicht. Es besteht freilich die Möglichkeit, sie zu <span class="button" style="padding: 3px 5px 2px 8px; font-size: .8rem; vertical-align: 1px;cursor: pointer;}"> </span> .
2147		Der BrechtBot ist ein Projekt des Digitaltheaters in Kooperation mit dem <a href="https://brechtfestival.de">Brechtfestival</a>, konzipiert und programmiert von Jan-Pieter Fuhr.</p>`),root$u=from_html('<!> <div style="margin-left:7rem;"><!></div> <p style="text-align:right" class="svelte-191uvz2"><button style="background:#004122;padding:1rem 1.2rem;border-radius:8px"><!></button></p> <!>',1);function Fragbrecht(o,n){push(n,!0);const c=Pe=>new Promise(Le=>{const me=setTimeout(()=>{Le(),clearTimeout(me)},Pe)});let d=state(void 0),h=state(""),m=proxy({}),p=state(!1),w=state(!1),z=state(void 0);user_effect(()=>{window.thr=get(z)});async function A(Pe,Le,me){const we={method:Le,art:Pe,thread_id:get(d
2147)};return Pe=="messages"&&Le==="POST"&&(we.role="user",we.content=get(h)),me&&(we.run_id=me),(await fetch("https://staatstheater-augsburg.de/api/fragbrecht",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(we)})).json()}const y=async()=>{if(!get(p)&&!get(w)&&get(h)){m.text="Ähm  …  Moment  …  ",set(p,!0),await A("messages","POST");let Pe=await A("runs","POST"),Le,me=0,we;for(;Le!="completed"&&me<100;)me+=1,await c(200),we=await A("runs","GET",Pe.id),Le=we.status;set(z,await A("messages","GET"),!0),set(p,!1),set(h,"")}};let s=state(!1),e=user_derived(()=>get(s)?"MOMENT …":"LÖSCHEN");const f=async()=>{get(s)||(set(s,!0),await A("deletethread"),set(s,!1),await localforage.setItem("thread_id",null),set(d,null),g(),set(h,""))};new howlerExports.Howl({src:["https://staatstheater-augsburg.de/audio/mixkit-old-typewriter-typing-1372.mp3"],sprite:{1:[64,50],2:[285,50],3:[457,50],4:[770,50],5:[1005,50],6:[1778,50],7:[2212,50],8:[7088,50],9:[7748,50],10:[3422,50],11:[3645,50],12:[7969,50],13:[5165,50],14:[5426,50],15:[5780,50],16:[5963,50],17:[6153,50],18:[8139,50],19:[6721,50],20:[6935,50],leer:[8251,50]}});async function g(){if(set(d,await localforage.getItem("thread_id"),!0),!get(d)){let Pe=await A("generatethread");set(d,Pe.id,!0),await localforage.setItem("thread_id",get(d))}set(z,await A("messages","GET"),!0)}g();var R=root$u(),q=first_child(R);{var H=Pe=>{var Le=comment$1(),me=first_child(Le);each(me,17,()=>_.reverse(get(z).thread),index,(we,Se)=>{var ye=root_2$g(),ke=child(ye);template_effect(Ae=>{set_class(ye,1,get(Se).role,"svelte-191uvz2"),set_text(ke,Ae)},[()=>get(Se).content[0].text.value.replace(/【.*?】/g,"")]),append(we,ye)}),append(Pe,Le)},te=user_derived(()=>get(z)&&get(z).thread&&!_.isEmpty(get(z).thread));if_block(q,Pe=>{get(te)&&Pe(H)})}var re=sibling(q,2),ae=child(re);Textarea(ae,{class:"user",get value(){return get(h)},set value(Pe){set(h,Pe,!0)}});var ne=sibling(re,2),oe=child(ne),le=child(oe);{var ce=Pe=>{var Le=text$1("er denkt…");append(Pe,Le)},ue=Pe=>{var Le=text$1("er schreibt…");append(Pe,Le)},he=Pe=>{var Le=text$1("frag' Brecht");append(Pe,Le)};if_block(le,Pe=>{get(p)?Pe(ce):get(w)?Pe(ue,1):Pe(he,-1)})}var ge=sibling(ne,2);{var Oe=Pe=>{var Le=root_6$7(),me=sibling(child(Le)),we=child(me);template_effect(()=>set_text(we,get(e))),delegated("click",me,f),append(Pe,Le)},$e=user_derived(()=>get(z)&&get(z).thread&&!_.isEmpty(get(z).thread));if_block(ge,Pe=>{get($e)&&Pe(Oe)})}delegated("click",oe,y),append(o,R),pop()}delegate(["click"]);var root$t=from_html('<!> <p style="text-align:center" class="svelte-19eyh0t"><button style="background:#004122;padding:1rem 1.2rem;border-radius:8px"><!></button></p> <div style="margin-top:2rem; background:url(/img/altespapier.jpg); --aspect-ratio: 21/29.7; border-radius:4px;box-shadow:2px 2px 6px #bbb"><div class="papier svelte-19eyh0t"> </div></div>',1);function Fragfleisser(o,n){push(n,!0);const c=he=>new Promise(ge=>{const Oe=setTimeout(()=>{ge(),clearTimeout(Oe)},he)});let d=proxy({frequency_penalty:0,presence_penalty:0,temperature:1,top_p:.5,model:"text-davinci-003",laenge:"",max_tokens:500}),h=proxy({}),m=state(""),p=20,w=60,z=state(0);const A=async()=>{for(set(s,!0);get(z)<h.text?.length;){await c(Math.random()*(w-p)+p);let he=h.text[get(z)]==" ";g(he),set(m,get(m)+h.text[get(z)]),console.log(get(m)),get(z)==h.text?.length-1&&set(s,!1),set(z,get(z)+1)}};let y=state(!1),s=state(!1);const e=async()=>{if(!get(y)&&!get(s)&&d.text){set(y,!0),set(m,""),set(z,0);const ge=await(await fetch("https://staatstheater-augsburg.de/api/fragfleisser",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(d)})).json();h.text=ge.text.replace(/\"/g,""),set(y,!1),A()}},f=new howlerExports.Howl({src:["https://staatstheater-augsburg.de/audio/mixkit-old-typewriter-typing-1372.mp3"],sprite:{1:[64,50],2:[285,50],3:[457,50],4:[770,50],5:[1005,50],6:[1778,50],7:[2212,50],8:[7088,50],9:[7748,50],10:[3422,50],11:[3645,50],12:[7969,50],13:[5165,50],14:[5426,50],15:[5780,50],16:[5963,50],17:[6153,50],18:[8139,50],19:[6721,50],20:[6935,50],leer:[8251,50]}}),g=he=>{let ge=he?"leer":Math.floor(Math.random()*20+1)+"";f.play(ge)};onMount(()=>{});var R=root$t(),q=first_child(R);Textarea(q,{get value(){return d.text},set value(he){d.text=he}});
2147var H=sibling(q,2),te=child(H),re=child(te);{var ae=he=>{var ge=text$1("sie denkt…");append(he,ge)},ne=he=>{var ge=text$1("sie schreibt…");append(he,ge)},oe=he=>{var ge=text$1("frag' Marie-Luise");append(he,ge)};if_block(re,he=>{get(y)?he(ae):get(s)?he(ne,1):he(oe,-1)})}var le=sibling(H,2),ce=child(le),ue=child(ce);template_effect(()=>set_text(ue,get(m))),delegated("click",te,e),append(o,R),pop()}delegate(["click"]);var root$s=from_html('<!> <p style="text-align:center" class="svelte-musa78"><button style="background:#004122;padding:1rem 1.2rem;border-radius:8px"><!></button></p> <div style="margin-top:2rem; background:url(/img/altespapier.jpg); --aspect-ratio: 21/29.7; border-radius:4px;box-shadow:2px 2px 6px #bbb"><div class="papier svelte-musa78"> </div></div>',1);function Fragbrecht2(o,n){push(n,!0);const c=he=>new Promise(ge=>{const Oe=setTimeout(()=>{ge(),clearTimeout(Oe)},he)});let d=proxy({frequency_penalty:1,presence_penalty:1,temperature:0,top_p:1,model:"davinci:ft-staatstheater-augsburg:brechtbot-2023-01-26-12-00-28",laenge:"",max_tokens:500}),h=proxy({}),m=state(""),p=80,w=200,z=state(0);const A=async()=>{for(set(s,!0);get(z)<h.text?.length;){await c(Math.random()*(w-p)+p);let he=h.text[get(z)]==" ";g(he),set(m,get(m)+h.text[get(z)]),console.log(get(m)),get(z)==h.text?.length-1&&set(s,!1),set(z,get(z)+1)}};let y=state(!1),s=state(!1);const e=async()=>{if(!get(y)&&!get(s)&&d.text){set(y,!0),set(m,""),set(z,0);const ge=await(await fetch("https://staatstheater-augsburg.de/api/fragbrecht2",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(d)})).json();h.text=ge.text.replace(/\"/g,""),set(y,!1),A()}},f=new howlerExports.Howl({src:["https://staatstheater-augsburg.de/audio/mixkit-old-typewriter-typing-1372.mp3"],sprite:{1:[64,50],2:[285,50],3:[457,50],4:[770,50],5:[1005,50],6:[1778,50],7:[2212,50],8:[7088,50],9:[7748,50],10:[3422,50],11:[3645,50],12:[7969,50],13:[5165,50],14:[5426,50],15:[5780,50],16:[5963,50],17:[6153,50],18:[8139,50],19:[6721,50],20:[6935,50],leer:[8251,50]}}),g=he=>{let ge=he?"leer":Math.floor(Math.random()*20+1)+"";f.play(ge)};onMount(()=>{});var R=root$s(),q=first_child(R);Textarea(q,{get value(){return d.text},set value(he){d.text=he}});
2147var H=sibling(q,2),te=child(H),re=child(te);{var ae=he=>{var ge=text$1("er denkt…");append(he,ge)},ne=he=>{var ge=text$1("er schreibt…");append(he,ge)},oe=he=>{var ge=text$1("frag' Brecht");append(he,ge)};if_block(re,he=>{get(y)?he(ae):get(s)?he(ne,1):he(oe,-1)})}var le=sibling(H,2),ce=child(le),ue=child(ce);template_effect(()=>set_text(ue,get(m))),delegated("click",te,e),append(o,R),pop()}delegate(["click"]);var root$r=from_html('<label class="switch svelte-xhonoe"><input type="checkbox" class="svelte-xhonoe"/> <span class="slider svelte-xhonoe"></span></label>');function Switch(o,n){push(n,!0);let c=prop(n,"checked",15,!1);prop(n,"color",3,"#004122");var d=root$r(),h=child(d);bind_checked(h,c),append(o,d),pop()}var root_3$b=from_html('<div><div class="svelte-1l5zlq3"><div class="svelte-1l5zlq3"><!></div></div></div>'),root_4$e=from_html('<div><div class="svelte-1l5zlq3"></div></div>'),root_2$f=from_html('<a class="keingelb"><!></a>'),root_6$6=from_html('<div><div class="svelte-1l5zlq3"><div class="svelte-1l5zlq3"><!></div></div></div>'),root_7$4=from_html("<div></div>");function Block(o,n){push(n,!0);let c=prop(n,"block",19,()=>({}));var d=comment$1(),h=first_child(d);{var m=p=>{var w=comment$1(),z=first_child(w);{var A=s=>{var e=root_2$f(),f=child(e);{var g=q=>{var H=root_3$b(),te=child(H),re=child(te),ae=child(re);component(ae,()=>n.module[c().modul],(ne,oe)=>{oe(ne,spread_props(c))}),template_effect(()=>{set_class(H,1,`stein ${(c().art||"w2")??""} ${(c().class?c().class:"")??""}`,"svelte-1l5zlq3"),set_style(H,c().style),set_style(te,c().sv?"--sv:"+c().sv:"")}),append(q,H)},R=q=>{var H=root_4$e(),te=child(H);html(te,()=>markdownit(c().text),!0),template_effect(()=>{set_class(H,1,`stein ${(c().art||"w2")??""} ${(c().class?c().class:"")??""}`,"svelte-1l5zlq3"),set_style(H,c().style),set_style(te,c().sv?"--sv:"+c().sv:"")}),append(q,H)};if_block(f,q=>{c().modul?q(g):q(R,-1)})}template_effect(q=>{set_attribute(e,"aria-label",c().text),set_attribute(e,"href",q)},[()=>/^https?:\/\//.test(c().ziel)||/^\//.test(c().ziel)?c().ziel:"/"+c().ziel]),append(s,e)},y=s=>{var e=comment$1(),f=first_child(e);{var g=q=>{var H=root_6$6(),te=child(H),re=child(te),ae=child(re);component(ae,()=>n.module[c().modul],(ne,oe)=>{oe(ne,spread_props(c))}),template_effect(()=>{set_class(H,1,`stein ${(c().art||"w2")??""} ${(c().class?c().class:"")??""}`,"svelte-1l5zlq3"),set_style(H,c().style),set_style(te,c().sv?"--sv:"+c().sv:"")}),append(q,H)},R=q=>{var H=root_7$4();html(H,()=>markdownit(c().text),!0),template_effect(()=>{set_class(H,1,`stein ${(c().art||"w2")??""} ${(c().class?c().class:"")??""}`,"svelte-1l5zlq3"),set_style(H,c().style)}),append(q,H)};if_block(f,q=>{c().modul?q(g):q(R,-1)})}append(s,e)};if_block(z,s=>{c().ziel?s(A):s(y,-1)})}append(p,w)};if_block(h,p=>{(c().text||c().modul)&&p(m)})}append(o,d),pop()}delegate(["keydown","mousedown","touchstart","mouseover","mouseout"]);var root$q=from_html('<div class="textareacontainer svelte-1e3lda4"><pre class="svelte-1e3lda4"> </pre> <textarea class="svelte-1e3lda4"></textarea></div>');function Textarea(o,n){push(n,!0);let c=prop(n,"value",15),d=prop(n,"minRows",3,1),h=user_derived(()=>`${1+d()*1.2}em`),m=user_derived(()=>n.maxRows?`${1+n.maxRows*1.2}em`:"auto"),p=state(void 0);onMount(function(){get(p).focus()});var w=root$q(),z=child(w),A=child(z),y=sibling(z,2);autofocus(y,!0),bind_this(y,s=>set(p,s),()=>get(p)),template_effect(()=>{set_style(z,`min-height: ${get(h)??""}; max-height: ${get(m)??""}`),set_text(A,c()+`
2148`),set_attribute(y,"title",n.title)}),bind_value(y,c),append(o,w),pop()}var root_4$d=from_html('<p class="frage svelte-a9zq6k"> </p><p class="antwort svelte-a9zq6k"> </p>',1),root_2$e=from_html('<p class="date svelte-a9zq6k"> </p> <!> <hr class="svelte-a9zq6k"/>',1),root_1$d=from_html('<hr class="svelte-a9zq6k"/> <!>',1),root$p=from_html("<h2>Antworten</h2> <!>",1);function Antworten(o,n){push(n,!0),prop(n,"fragen",19,()=>[]);let c=state(proxy([]));user_effect(()=>{window.ant=get(c)});function d(w){var z=new XDate(w,!0),A=z.getFullYear(),y=new XDate(A,2,31-(Math.floor(5*A/4)+4)%7,1,!0)<=z&&z<new XDate(A,9,31-(Math.floor(5*A/4)+1)%7,1,!0)?2:1;return z.addHours(y)}onMount(async()=>{const z=await(await fetch("/api/alleantworten")).json();set(c,_.map(z,A=>A.doc),!0)});var h=root$p(),m=sibling(first_child(h),2);{var p=w=>
2148{var z=root_1$d(),A=sibling(first_child(z),2);each(A,17,()=>get(c),index,(y,s)=>{var e=root_2$e(),f=first_child(e),g=child(f),R=sibling(f,2);each(R,17,()=>get(s).antworten,index,(q,H,te,re)=>{var ae=comment$1(),ne=first_child(ae);{var oe=le=>{var ce=root_4$d(),ue=first_child(ce),he=child(ue),ge=sibling(ue),Oe=child(ge);template_effect(()=>{set_text(he,get(s).fragen[te]),set_text(Oe,get(H))}),append(le,ce)};if_block(ne,le=>{get(H)&&le(oe)})}append(q,ae)}),template_effect(q=>set_text(g,q),[()=>d(get(s).beantwortet).toString("d.M.yyyy, HH:mm")]),append(y,e)}),append(w,z)};if_block(m,w=>{get(c).length&&w(p)})}append(o,h),pop()}var root_1$c=from_html('<p class="svelte-2s6pa7"> </p>'),root_4$c=from_html('<label class="svelte-2s6pa7"> </label> <!>',1),root_2$d=from_html("<!> <button>antworten</button>",1);function Fragen(o,n){push(n,!0);let c=prop(n,"fragen",19,()=>[]),d="de",h=proxy({antworten:[]});user_effect(()=>{window.ant=h}),onMount(async()=>{});let m;const p=async()=>{m=orderlang[d].NOTIFY_PATIENCE,m=(await(await fetch("/api/antworten",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({...h,fragen:c()})})).json()).message};var w=comment$1(),z=first_child(w);{var A=s=>{var e=root_1$c(),f=child(e);template_effect(()=>set_text(f,m)),append(s,e)},y=s=>{var e=root_2$d(),f=first_child(e);{var g=q=>{var H=comment$1(),te=first_child(H);each(te,17,c,index,(re,ae,ne)=>{var oe=root_4$c(),le=first_child(oe),ce=child(le),ue=sibling(le,2);Textarea(ue,{get value(){return h.antworten[ne]},set value(he){h.antworten[ne]=he}}),template_effect(()=>set_text(ce,get(ae))),append(re,oe)}),append(q,H)};if_block(f,q=>{c().length&&q(g)})}var R=sibling(f,2);delegated("click",R,p),append(s,e)};if_block(z,s=>{m?s(A):s(y,-1)})}append(o,w),pop()}delegate(["click"]);var root_6$5=from_html("<a> </a>"),root_5$9=from_html("<!> <!> <!>",1);function Seiten(o,n){push(n,!0);let c=state(proxy([]));const d=async w=>{try{const A=await(await fetch("https://staatstheater-augsburg.de/db/fuer_uebersicht")).json();set(c,_.map(A.rows,y=>y.value),!0),console.log(get(c))}catch(z){console.log(z)}};onMount(()=>{d()});var h=comment$1(),m=first_child(h);{var p=w=>{Table(w,{children:(z,A)=>{TableBody(z,{class:"divide-y",children:(y,s)=>{var e=comment$1(),f=first_child(e);each(f,17,()=>get(c),index,(g,R)=>{TableBodyRow(g,{children:(q,H)=>{var te=root_5$9(),re=first_child(te);TableBodyCell(re,{children:(ce,ue)=>{var he=root_6$5(),ge=child(he);template_effect(()=>{set_attribute(he,"href",get(R).uri),set_text(ge,get(R).uri??"")}),append(ce,he)},$$slots:{default:!0}});var ae=sibling(re,2);{var ne=ce=>{TableBodyCell(ce,{children:(ue,he)=>{var ge=text$1();template_effect(()=>set_text(ge,get(R).name)),append(ue,ge)},$$slots:{default:!0}})},oe=ce=>{TableBodyCell(ce,{children:(ue,he)=>{var ge=text$1();template_effect(()=>set_text(ge,get(R).titel??"")),append(ue,ge)},$$slots:{default:!0}})};if_block(ae,ce=>{get(R).name?ce(ne):ce(oe,-1)})}var le=sibling(ae,2);TableBodyCell(le,{children:(ce,ue)=>{var he=text$1();template_effect(()=>set_text(he,get(R).zuletztdran??"")),append(ce,he)},$$slots:{default:!0}}),append(q,te)},$$slots:{default:!0}})}),append(y,e)},$$slots:{default:!0}})},$$slots:{default:!0}})};if_block(m,w=>{get(c).length&&w(p)})}append(o,h),pop()}var $$_import_appState=reactive_import(()=>appState),root$o=from_html('<div style="z-index:1002" class="bg-[#333] bg-opacity-80 fixed left-0 top-0 w-screen h-screen flex justify-center align-middle"><div class="relative bg-white rounded w-3/4 max-h-[90vh] overflow-y-auto overflow-x-hidden max-w-lg m-auto flex flex-col align-middle"><div class="sticky top-0 right-0 text-right cursor-pointer"><svg class="m-0 h-8 w-8" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="#004000" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg></div> <p class="text-md pt-0 pb-8 pr-8 pl-8 font-sans text-left"></p></div></div>');function Modal(o,n){push(n,!1);const c=()=>{$$_import_appState($$_import_appState().modal.offen=!1),$$_import_appState($$_import_appState().modal.text=null)};init();var d=root$o(),h=child(d),m=child(h),p=sibling(m,2);html(p,()=>markdownit($$_import_appState().modal.text),!0),action(h,w=>clickOutside?.(w)),effect(()=>event("click_outside",h,c)),event("click",m,c),append(o,d),pop()}var t;function u(o){return typeof o<"u"?o:!0}function v(o){const n=Array(o);for(let c=0;c<o;c++)n[c]=x();return n}function x(){return Object.create(null)}function aa(o,n){return n.length-o.length}
2148function C(o){return typeof o=="string"}function D(o){return typeof o=="object"}function E(o){return typeof o=="function"}function F(o,n){var c=ba;if(o&&(n&&(o=G(o,n)),this.H&&(o=G(o,this.H)),this.J&&1<o.length&&(o=G(o,this.J)),c||c==="")){if(n=o.split(c),this.filter){o=this.filter,c=n.length;const d=[];for(let h=0,m=0;h<c;h++){const p=n[h];p&&!o[p]&&(d[m++]=p)}o=d}else o=n;return o}return o}const ba=/[\p{Z}\p{S}\p{P}\p{C}]+/u,ca=/[\u0300-\u036f]/g;function I(o,n){const c=Object.keys(o),d=c.length,h=[];let m="",p=0;for(let w=0,z,A;w<d;w++)z=c[w],(A=o[z])?(h[p++]=J(n?"(?!\\b)"+z+"(\\b|_)":z),h[p++]=A):m+=(m?"|":"")+z;return m&&(h[p++]=J(n?"(?!\\b)("+m+")(\\b|_)":"("+m+")"),h[p]=""),h}function G(o,n){for(let c=0,d=n.length;c<d&&(o=o.replace(n[c],n[c+1]),o);c+=2);return o}function J(o){return new RegExp(o,"g")}function da(o){let n="",c="";for(let d=0,h=o.length,m;d<h;d++)(m=o[d])!==c&&(n+=c=m);return n}var fa={encode:ea,F:!1,G:""};function ea(o){return F.call(this,(""+o).toLowerCase(),!1)}const ha={},K={};function ia(o){L$1(o,"add"),L$1(o,"append"),L$1(o,"search"),L$1(o,"update"),L$1(o,"remove")}function L$1(o,n){o[n+"Async"]=function(){const c=this,d=arguments;var h=d[d.length-1];let m;return E(h)&&(m=h,delete d[d.length-1]),h=new Promise(function(p){setTimeout(function(){c.async=!0;const w=c[n].apply(c,d);c.async=!1,p(w)})}),m?(h.then(m),this):h}}function ja(o,n,c,d){const h=o.length;let m=[],p,w,z=0;d&&(d=[]);for(let A=h-1;0<=A;A--){const y=o[A],s=y.length,e=x();let f=!p;for(let g=0;g<s;g++){const R=y[g],q=R.length;if(q)for(let H=0,te,re;H<q;H++)if(re=R[H],p){if(p[re]){if(!A){if(c)c--;else if(m[z++]=re,z===n)return m}(A||d)&&(e[re]=1),f=!0}if(d&&(te=(w[re]||0)+1,w[re]=te,te<h)){const ae=d[te-2]||(d[te-2]=[]);ae[ae.length]=re}}else e[re]=1}if(d)p||(w=e);else if(!f)return[];p=e}if(d)for(let A=d.length-1,y,s;0<=A;A--){y=d[A],s=y.length;for(let e=0,f;e<s;e++)if(f=y[e],!p[f]){if(c)c--;else if(m[z++]=f,z===n)return m;p[f]=1}}return m}function ka(o,n){const c=x(),d=x(),h=[];for(let m=0;m<o.length;m++)c[o[m]]=1;for(let m=0,p;m<n.length;m++){p=n[m];for(let w=0,z;w<p.length;w++)z=p[w],c[z]&&!d[z]&&(d[z]=1,h[h.length]=z)}return h}function M(o){this.l=o!==!0&&o,this.cache=x(),this.h=[]}function la(o,n,c){D(o)&&(o=o.query);let d=this.cache.get(o);return d||(d=this.search(o,n,c),this.cache.set(o,d)),d}M.prototype.set=function(o,n){if(!this.cache[o]){var c=this.h.length;for(c===this.l?delete this.cache[this.h[c-1]]:c++,--c;0<c;c--)this.h[c]=this.h[c-1];this.h[0]=o}this.cache[o]=n};M.prototype.get=function(o){const n=this.cache[o];if(this.l&&n&&(o=this.h.indexOf(o))){const c=this.h[o-1];this.h[o-1]=this.h[o],this.h[o]=c}return n};
2148const na={memory:{charset:"latin:extra",D:3,B:4,m:!1},performance:{D:3,B:3,s:!1,context:{depth:2,D:1}},match:{charset:"latin:extra",G:"reverse"},score:{charset:"latin:advanced",D:20,B:3,context:{depth:3,D:9}},default:{}};function oa(o,n,c,d,h,m,p,w){setTimeout(function(){const z=o(c?c+"."+d:d,JSON.stringify(p));z&&z.then?z.then(function(){n.export(o,n,c,h,m+1,w)}):n.export(o,n,c,h,m+1,w)})}function N(o,n){if(!(this instanceof N))return new N(o);var c;if(o){C(o)?o=na[o]:(c=o.preset)&&(o=Object.assign({},c[c],o)),c=o.charset;var d=o.lang;C(c)&&(c.indexOf(":")===-1&&(c+=":default"),c=K[c]),C(d)&&(d=ha[d])}else o={};let h,m,p=o.context||{};if(this.encode=o.encode||c&&c.encode||ea,this.register=n||x(),this.D=h=o.resolution||9,this.G=n=c&&c.G||o.tokenize||"strict",this.depth=n==="strict"&&p.depth,this.l=u(p.bidirectional),this.s=m=u(o.optimize),this.m=u(o.fastupdate),this.B=o.minlength||1,this.C=o.boost,this.map=m?v(h):x(),this.A=h=p.resolution||1,this.h=m?v(h):x(),this.F=c&&c.F||o.rtl,this.H=(n=o.matcher||d&&d.H)&&I(n,!1),this.J=(n=o.stemmer||d&&d.J)&&I(n,!0),c=n=o.filter||d&&d.filter){c=n,d=x();for(let w=0,z=c.length;w<z;w++)d[c[w]]=1;c=d}this.filter=c,this.cache=(n=o.cache)&&new M(n)}t=N.prototype;t.append=function(o,n){return this.add(o,n,!0)};t.add=function(o,n,c,d){if(n&&(o||o===0)){if(!d&&!c&&this.register[o])return this.update(o,n);if(n=this.encode(n),d=n.length){const A=x(),y=x(),s=this.depth,e=this.D;for(let f=0;f<d;f++){let g=n[this.F?d-1-f:f];var h=g.length;if(g&&h>=this.B&&(s||!y[g])){var m=O(e,d,f),p="";switch(this.G){case"full":if(2<h){for(m=0;m<h;m++)for(var w=h;w>m;w--)if(w-m>=this.B){var z=O(e,d,f,h,m);p=g.substring(m,w),P(this,y,p,z,o,c)}break}case"reverse":if(1<h){for(w=h-1;0<w;w--)p=g[w]+p,p.length>=this.B&&P(this,y,p,O(e,d,f,h,w),o,c);p=""}case"forward":if(1<h){for(w=0;w<h;w++)p+=g[w],p.length>=this.B&&P(this,y,p,m,o,c);break}default:if(this.C&&(m=Math.min(m/this.C(n,g,f)|0,e-1)),P(this,y,g,m,o,c),s&&1<d&&f<d-1){for(h=x(),p=this.A,m=g,w=Math.min(s+1,d-f),h[m]=1,z=1;z<w;z++)if((g=n[this.F?d-1-f-z:f+z])&&g.length>=this.B&&!h[g]){h[g]=1;const R=this.l&&g>m;P(this,A,R?m:g,O(p+(d/2>p?0:1),d,f,w-1,z-1),o,c,R?g:m)}}}}}this.m||(this.register[o]=1)}}return this};function O(o,n,c,d,h){return c&&1<o?n+(d||0)<=o?c+(h||0):(o-1)/(n+(d||0))*(c+(h||0))+1|0:0}function P(o,n,c,d,h,m,p){let w=p?o.h:o.map;(!n[c]||p&&!n[c][p])&&(o.s&&(w=w[d]),p?(n=n[c]||(n[c]=x()),n[p]=1,w=w[p]||(w[p]=x())):n[c]=1,w=w[c]||(w[c]=[]),o.s||(w=w[d]||(w[d]=[])),m&&w.includes(h)||(w[w.length]=h,o.m&&(o=o.register[h]||(o.register[h]=[]),o[o.length]=w)))}t.search=function(o,n,c){c||(!n&&D(o)?(c=o,o=c.query):D(n)&&(c=n));let d=[],h,m,p=0;if(c){o=c.query||o,n=c.limit,p=c.offset||0;var w=c.context;m=c.suggest}if(o&&(o=this.encode(""+o),h=o.length,1<h)){c=x();var z=[];for(let y=0,s=0,e;y<h;y++)if((e=o[y])&&e.length>=this.B&&!c[e])if(this.s||m||this.map[e])z[s++]=e,c[e]=1;else return d;o=z,h=o.length}if(!h)return d;n||(n=100),w=this.depth&&1<h&&w!==!1,c=0;let A;w?(A=o[0],c=1):1<h&&o.sort(aa);for(let y,s;c<h;c++){if(s=o[c],w?(y=pa(this,d,m,n,p,h===2,s,A),m&&y===!1&&d.length||(A=s)):y=pa(this,d,m,n,p,h===1,s),y)return y;if(m&&c===h-1){if(z=d.length,!z){if(w){w=0,c=-1;continue}return d}if(z===1)return qa(d[0],n,p)}}return ja(d,n,p,m)};function pa(o,n,c,d,h,m,p,w){let z=[],A=w?o.h:o.map;if(o.s||(A=ra(A,p,w,o.l)),A){let y=0;const s=Math.min(A.length,w?o.A:o.D);for(let e=0,f=0,g,R;e<s&&!((g=A[e])&&(o.s&&(g=ra(g,p,w,o.l)),h&&g&&m&&(R=g.length,R<=h?(h-=R,g=null):(g=g.slice(h),h=0)),g&&(z[y++]=g,m&&(f+=g.length,f>=d))));e++);if(y){if(m)return qa(z,d,0);n[n.length]=z;return}}return!c&&z}function qa(o,n,c){return o=o.length===1?o[0]:[].concat.apply([],o),c||o.length>n?o.slice(c,c+n):o}function ra(o,n,c,d){return c?(d=d&&n>c,o=(o=o[d?n:c])&&o[d?c:n]):o=o[n],o}t.contain=function(o){return!!this.register[o]};t.update=function(o,n){return this.remove(o).add(o,n)};t.remove=function(o,n){const c=this.register[o];if(c){if(this.m)for(let d=0,h;d<c.length;d++)h=c[d],h.splice(h.indexOf(o),1);else Q(this.map,o,this.D,this.s),this.depth&&Q(this.h,o,this.A,this.s);if(n||delete this.register[o],this.cache){n=this.cache;for(let d=0,h,m;d<n.h.length;d++)m=n.h[d],h=n.cache[m],h.includes(o)&&(n.h.splice(d--,1),delete n.cache[m])}}return this};function Q(o,n,c,d,h){let m=0;if(o.constructor===Array)if(h)n=o.indexOf(n),n!==-1?1<o.length&&(o.splice(n,1),m++):m++;else{h=Math.min(o.length,c);for(let p=0,w;p<h;p++)(w=o[p])&&(m=Q(w,n,c,d,h),d||m||delete o[p])}else for(let p in o)(m=Q(o[p],n,c,d,h))||delete o[p];return m}t.searchCache=la;t.export=function(o,n,c,d,h,m){let p=!0;typeof m>"u"&&(p=new Promise(A=>{m=A}));let w,z;switch(h||(h=0)){case 0:if(w="reg",this.m){z=x();for(let A in this.register)z[A]=1}else z=this.register;break;case 1:w="cfg",z={doc:0,opt:this.s?1:0};break;case 2:w="map",z=this.map;break;case 3:w="ctx",z=this.h;break;default:typeof c>"u"&&m&&m();return}return oa(o,n||this,c,w,d,h,z,m),p};t.import=function(o,n){if(n)switch(C(n)&&(n=JSON.parse(n)),o){case"cfg":this.s=!!n.opt;break;case"reg":this.m=!1,this.register=n;break;case"map":this.map=n;break;case"ctx":this.h=n}};ia(N.prototype);function sa(o){o=o.data;var n=self._index;const c=o.args;var d=o.task;d==="init"?(d=o.options||{},o=o.factory,n=d.encode,d.cache=!1,n&&n.indexOf("function")===0&&(
2148d.encode=Function("return "+n)()),o?(Function("return "+o)()(self),self._index=new self.FlexSearch.Index(d),delete self.FlexSearch):self._index=new N(d)):(o=o.id,n=n[d].apply(n,c),postMessage(d==="search"?{id:o,msg:n}:{id:o}))}let ta=0;function S(o){if(!(this instanceof S))return new S(o);var n;o?E(n=o.encode)&&(o.encode=n.toString()):o={},(n=(self||window)._factory)&&(n=n.toString());const c=typeof window>"u"&&self.exports,d=this;this.o=ua(n,c,o.worker),this.h=x(),this.o&&(c?this.o.on("message",function(h){d.h[h.id](h.msg),delete d.h[h.id]}):this.o.onmessage=function(h){h=h.data,d.h[h.id](h.msg),delete d.h[h.id]},this.o.postMessage({task:"init",factory:n,options:o}))}T("add");T("append");T("search");T("update");T("remove");function T(o){S.prototype[o]=S.prototype[o+"Async"]=function(){const n=this,c=[].slice.call(arguments);var d=c[c.length-1];let h;return E(d)&&(h=d,c.splice(c.length-1,1)),d=new Promise(function(m){setTimeout(function(){n.h[++ta]=m,n.o.postMessage({task:o,id:ta,args:c})})}),h?(d.then(h),this):d}}function ua(o,n,c){let d;try{d=n?new(require("worker_threads")).Worker(__dirname+"/node/node.js"):o?new Worker(URL.createObjectURL(new Blob(["onmessage="+sa.toString()],{type:"text/javascript"}))):new Worker(C(c)?c:"worker/worker.js",{type:"module"})}catch{}return d}function U(o){if(!(this instanceof U))return new U(o);var n=o.document||o.doc||o,c;this.K=[],this.h=[],this.A=[],this.register=x(),this.key=(c=n.key||n.id)&&V(c,this.A)||"id",this.m=u(o.fastupdate),this.C=(c=n.store)&&c!==!0&&[],this.store=c&&x(),this.I=(c=n.tag)&&V(c,this.A),this.l=c&&x(),this.cache=(c=o.cache)&&new M(c),o.cache=!1,this.o=o.worker,this.async=!1,c=x();let d=n.index||n.field||n;C(d)&&(d=[d]);for(let h=0,m,p;h<d.length;h++)m=d[h],C(m)||(p=m,m=m.field),p=D(p)?Object.assign({},o,p):o,this.o&&(c[m]=new S(p),c[m].o||(this.o=!1)),this.o||(c[m]=new N(p,this.register)),this.K[h]=V(m,this.A),this.h[h]=m;if(this.C)for(o=n.store,C(o)&&(o=[o]),n=0;n<o.length;n++)this.C[n]=V(o[n],this.A);this.index=c}function V(o,n){const c=o.split(":");let d=0;for(let h=0;h<c.length;h++)o=c[h],0<=o.indexOf("[]")&&(o=o.substring(0,o.length-2))&&(n[d]=!0),o&&(c[d++]=o);return d<c.length&&(c.length=d),1<d?c:c[0]}function X$1(o,n){if(C(n))o=o[n];else for(let c=0;o&&c<n.length;c++)o=o[n[c]];return o}function Y(o,n,c,d,h){if(o=o[h],d===c.length-1)n[h]=o;else if(o)if(o.constructor===Array)for(n=n[h]=Array(o.length),h=0;h<o.length;h++)Y(o,n,c,d,h);else n=n[h]||(n[h]=x()),h=c[++d],Y(o,n,c,d,h)}function Z(o,n,c,d,h,m,p,w){if(o=o[p])if(d===n.length-1){if(o.constructor===Array){if(c[d]){for(n=0;n<o.length;n++)h.add(m,o[n],!0,!0);return}o=o.join(" ")}h.add(m,o,w,!0)}else if(o.constructor===Array)for(p=0;p<o.length;p++)Z(o,n,c,d,h,m,p,w);else p=n[++d],Z(o,n,c,d,h,m,p,w)}t=U.prototype;t.add=function(o,n,c){if(D(o)&&(n=o,o=X$1(n,this.key)),n&&(o||o===0)){if(!c&&this.register[o])return this.update(o,n);for(let d=0,h,m;d<this.h.length;d++)m=this.h[d],h=this.K[d],C(h)&&(h=[h]),Z(n,h,this.A,0,this.index[m],o,h[0],c);if(this.I){let d=X$1(n,this.I),h=x();C(d)&&(d=[d]);for(let m=0,p,w;m<d.length;m++)if(p=d[m],!h[p]&&(h[p]=1,w=this.l[p]||(this.l[p]=[]),!c||!w.includes(o))&&(w[w.length]=o,this.m)){const z=this.register[o]||(this.register[o]=[]);z[z.length]=w}}if(this.store&&(!c||!this.store[o])){let d;if(this.C){d=x();for(let h=0,m;h<this.C.length;h++)m=this.C[h],C(m)?d[m]=n[m]:Y(n,d,m,0,m[0])}this.store[o]=d||n}}return this};t.append=function(o,n){return this.add(o,n,!0)};t.update=function(o,n){return this.remove(o).add(o,n)};t.remove=function(o){if(D(o)&&(o=X$1(o,this.key)),this.register[o]){for(var n=0;n<this.h.length&&(this.index[this.h[n]].remove(o,!this.o),!this.m);n++);if(this.I&&!this.m)for(let c in this.l){n=this.l[c];const d=n.indexOf(o);d!==-1&&(1<n.length?n.splice(d,1):delete this.l[c])}this.store&&delete this.store[o],delete this.register[o]}return this};t.search=function(o,n,c,d){c||(!n&&D(o)?(c=o,o=""):D(n)&&(c=n,n=0));let h=[],m=[],p,w,z,A,y,s,e=0;if(c)if(c.constructor===Array)z=c,c=null;else{if(o=c.query||o,z=(p=c.pluck)||c.index||c.field,A=c.tag,w=this.store&&c.enrich,y=c.bool==="and",n=c.limit||n||100,s=c.offset||0,A&&(C(A)&&(A=[A]),!o)){for(let g=0,R;g<A.length;g++)(R=va.call(this,A[g],n,s,w))&&(h[h.length]=R,e++);return e?h:[]}C(z)&&(z=[z])}z||(z=this.h),y=y&&(1<z.length||A&&1<A.length);const f=!d&&(this.o||this.async)&&[];for(let g=0,R,q,H;g<z.length;g++){let te;if(q=z[g],C(q)||(te=q,q=te.field,o=te.query||o,n=te.limit||n,w=te.enrich||w),f)f[g]=this.index[q].searchAsync(o,n,te||c);else{if(d?R=d[g]:R=this.index[q].search(o,n,te||c),H=R&&R.length,A&&H){const re=[];let ae=0;y&&(re[0]=[R]);for(let ne=0,oe,le;ne<A.length;ne++)oe=A[ne],(H=(le=this.l[oe])&&le.length)&&(ae++,re[re.length]=y?[le]:le);ae&&(R=y?ja(re,n||100,s||0):ka(R,re),H=R.length)}
2148if(H)m[e]=q,h[e++]=R;else if(y)return[]}}if(f){const g=this;return new Promise(function(R){Promise.all(f).then(function(q){R(g.search(o,n,c,q))})})}if(!e)return[];if(p&&(!w||!this.store))return h[0];for(let g=0,R;g<m.length;g++){if(R=h[g],R.length&&w&&(R=wa.call(this,R)),p)return R;h[g]={field:m[g],result:R}}return h};function va(o,n,c,d){let h=this.l[o],m=h&&h.length-c;if(m&&0<m)return(m>n||c)&&(h=h.slice(c,c+n)),d&&(h=wa.call(this,h)),{tag:o,result:h}}function wa(o){const n=Array(o.length);for(let c=0,d;c<o.length;c++)d=o[c],n[c]={id:d,doc:this.store[d]};return n}t.contain=function(o){return!!this.register[o]};t.get=function(o){return this.store[o]};t.set=function(o,n){return this.store[o]=n,this};t.searchCache=la;t.export=function(o,n,c,d,h,m){let p;if(typeof m>"u"&&(p=new Promise(w=>{m=w})),h||(h=0),d||(d=0),d<this.h.length){const w=this.h[d],z=this.index[w];n=this,setTimeout(function(){z.export(o,n,h?w:"",d,h++,m)||(d++,h=1,n.export(o,n,w,d,h,m))})}else{let w,z;switch(h){case 1:w="tag",z=this.l,c=null;break;case 2:w="store",z=this.store,c=null;break;default:m();return}oa(o,this,c,w,d,h,z,m)}return p};t.import=function(o,n){if(n)switch(C(n)&&(n=JSON.parse(n)),o){case"tag":this.l=n;break;case"reg":this.m=!1,this.register=n;for(let d=0,h;d<this.h.length;d++)h=this.index[this.h[d]],h.register=n,h.m=!1;break;case"store":this.store=n;break;default:o=o.split(".");const c=o[0];o=o[1],c&&o&&this.index[c].import(o,n)}};ia(U.prototype);var ya={encode:xa,F:!1,G:""};const za=[J("[àáâãäå]"),"a",J("[èéêë]"),"e",J("[ìíîï]"),"i",J("[òóôõöő]"),"o",J("[ùúûüű]"),"u",J("[ýŷÿ]"),"y",J("ñ"),"n",J("[çc]"),"k",J("ß"),"s",J(" & ")," and "];function xa(o){var n=o=""+o;return n.normalize&&(n=n.normalize("NFD").replace(ca,"")),F.call(this,n.toLowerCase(),!o.normalize&&za)}var Ba={encode:Aa,F:!1,G:"strict"};const Ca=/[^a-z0-9]+/,Da={b:"p",v:"f",w:"f",z:"s",x:"s",ß:"s",d:"t",n:"m",c:"k",g:"k",j:"k",q:"k",i:"e",y:"e",u:"o"};function Aa(o){o=xa.call(this,o).join(" ");const n=[];if(o){const c=o.split(Ca),d=c.length;for(let h=0,m,p=0;h<d;h++)if((o=c[h])&&(!this.filter||!this.filter[o])){m=o[0];let w=Da[m]||m,z=w;for(let A=1;A<o.length;A++){m=o[A];const y=Da[m]||m;y&&y!==z&&(w+=y,z=y)}n[p++]=w}}return n}var Fa={encode:Ea,F:!1,G:""};const Ga=[J("ae"),"a",J("oe"),"o",J("sh"),"s",J("th"),"t",J("ph"),"f",J("pf"),"f",J("(?![aeo])h(?![aeo])"),"",J("(?!^[aeo])h(?!^[aeo])"),""];function Ea(o,n){return o&&(o=Aa.call(this,o).join(" "),2<o.length&&(o=G(o,Ga)),n||(1<o.length&&(o=da(o)),o&&(o=o.split(" ")))),o||[]}var Ia={encode:Ha,F:!1,G:""};const Ja=J("(?!\\b)[aeo]");function Ha(o){return o&&(o=Ea.call(this,o,!0),1<o.length&&(o=o.replace(Ja,"")),1<o.length&&(o=da(o)),o&&(o=o.split(" "))),o||[]}K["latin:default"]=fa;K["latin:simple"]=ya;K["latin:balance"]=Ba;K["latin:advanced"]=Fa;K["latin:extra"]=Ia;const Flexsearch={Index:N,Document:U,Worker:S,registerCharset:function(o,n){K[o]=n},registerLanguage:function(o,n){ha[o]=n}};function Test(o,n){push(n,!0);const c={charset:"latin:extra",preset:"match",tokenize:"strict",cache:!1},d=new Flexsearch(c),h=[{id:1,title:"Orange cake"},{id:2,title:"New York-Style Bacon Egg and Cheese Sandwich"},{id:3,title:"Bacon Wrapped Cheese Stuffed Meatloaf"},{id:4,title:"French Yogurt Cake"},{id:5,title:"Gougeres (French Cheese Puffs)"},{id:6,title:"Authentic Brazilian Cheese Bread (Pão de Queijo)"},{id:7,title:"Camarão na Moranga (Brazilian Shrimp Stuffed Pumpkin)"},{id:8,title:"Parmesan Cheese Muffins"},{id:9,title:"Cookie Dough Stuffed Oreos"}];h.forEach(A=>{d.add(A.id,A.title)});let m=proxy(d.search("Cookie",5));console.debug(m);let p=proxy(h.filter(A=>m.includes(A.id)));console.debug(p);const w=[{state:"California"},{state:"North Carolina"},{state:"North Dakota"},{state:"South Carolina"},{state:"South Dakota"},{state:"Michigan"},{state:"Tennessee"},{state:"Nevada"},{state:"New Hampshire"},{state:"New Jersey"}];Typeahead(o,{get data(){return w},extract:A=>A.state}),pop()}var fuzzy$1={exports:{}},hasRequiredFuzzy;function requireFuzzy(){return hasRequiredFuzzy||(hasRequiredFuzzy=1,(function(o,n){(function(){var c={};o.exports=c,c.simpleFilter=function(d,h){return h.filter(function(m){return c.test(d,m)})},c.test=function(d,h){return c.match(d,h)!==null},c.match=function(d,h,m){m=m||{};var p=0,w=[],z=h.length,A=0,y=0,s=m.pre||"",e=m.post||"",f=m.caseSensitive&&h||h.toLowerCase(),g;d=m.caseSensitive&&d||d.toLowerCase();for(var R=0;R<z;R++)g=h[R],f[R]===d[p]?(g=s+g+e,p+=1,y+=1+y):y=0,A+=y,w[w.length]=g;return p===d.length?(A=f===d?1/0:A,{rendered:w.join(""),score:A}):null},c.filter=function(d,h,m){return!h||h.length===0?[]:typeof d!="string"?h:(m=m||{},h.reduce(function(p,w,z,A){var y=w;m.extract&&(y=m.extract(w));var s=c.match(d,y,m);return s!=null&&(p[p.length]={string:s.rendered,score:s.score,index:z,original:w}),p},[]).sort(function(p,w){var z=w.score-p.score;return z||p.index-w.index}))}})()})(fuzzy$1)),fuzzy$1.exports}var fuzzyExports=requireFuzzy();const fuzzy=getDefaultExportFromCjs(fuzzyExports);var root$n=from_html('<form data-svelte-search="" action=""><label><!></label> <input/></form>');function Search(o,n){const c=legacy_rest_props(n,["children","$$slots","$$events","$$legacy"]),d=legacy_rest_props(c,["value","autofocus","debounce","label","hideLabel","id","ref","removeFormAriaAttributes"]);push(n,!1);
2148let h=prop(n,"value",12,""),m=prop(n,"autofocus",8,!1),p=prop(n,"debounce",8,0),w=prop(n,"label",8,"Label"),z=prop(n,"hideLabel",8,!1),A=prop(n,"id",24,()=>"search"+Math.random().toString(36)),y=prop(n,"ref",12,null),s=prop(n,"removeFormAriaAttributes",8,!1);const e=createEventDispatcher();let f=h(),g,R=!1;function q(ne){R||(R=!0,g=setTimeout(()=>{ne(),R=!1},p()))}onMount(()=>(m()&&window.requestAnimationFrame(()=>y().focus()),()=>clearTimeout(g))),afterUpdate(()=>{h().length>0&&h()!==f&&(p()>0?q(()=>e("type",h())):e("type",h())),h().length===0&&f.length>0&&e("clear"),f=h()}),init();var H=root$n(),te=child(H),re=child(te);slot(re,n,"label",{},ne=>{var oe=text$1();template_effect(()=>set_text(oe,w())),append(ne,oe)});var ae=sibling(te,2);attribute_effect(ae,()=>({name:"search",type:"search",placeholder:"Search...",autocomplete:"off",spellcheck:"false",...d,id:A()}),void 0,void 0,void 0,void 0,!0),bind_this(ae,ne=>y(ne),()=>y()),template_effect(()=>{set_attribute(H,"role",s()?null:"search"),set_attribute(H,"aria-labelledby",s()?null:A()),set_attribute(te,"id",`${A()??""}-label`),set_attribute(te,"for",A()),set_style(te,z()&&"position: absolute;height: 1px;width: 1px;overflow: hidden;clip: rect(1px 1px 1px 1px);clip: rect(1px, 1px, 1px, 1px);white-space: nowrap;")}),bind_value(ae,h),event("input",ae,function(ne){bubble_event.call(this,n,ne)}),event("change",ae,function(ne){bubble_event.call(this,n,ne)}),event("focus",ae,function(ne){bubble_event.call(this,n,ne)}),event("blur",ae,function(ne){bubble_event.call(this,n,ne)}),event("keydown",ae,function(ne){bubble_event.call(this,n,ne)}),event("submit",H,preventDefault(function(ne){bubble_event.call(this,n,ne)})),append(o,H),pop()}var root_2$c=from_html('<li role="option"><!></li>'),root_4$b=from_html("<div><!></div>"),root$m=from_html('<div data-svelte-typeahead="" role="combobox" aria-haspopup="listbox"><!> <ul role="listbox"><!> <!></ul></div>');function Typeahead(o,n){const c=sanitize_slots(n);push(n,!0);let d=prop(n,"id",19,()=>"typeahead-"+Math.random().toString(36)),h=prop(n,"value",15,""),m=prop(n,"data",19,()=>[]),p=prop(n,"extract",3,Te=>Te),w=prop(n,"disable",3,Te=>!1),z=prop(n,"filter",3,Te=>!1),A=prop(n,"autoselect",3,!0),y=prop(n,"inputAfterSelect",3,"update"),s=prop(n,"results",31,()=>proxy([])),e=prop(n,"focusAfterSelect",3,!1),f=prop(n,"showDropdownOnFocus",3,!1),g=prop(n,"showAllResultsOnFocus",3,!1),R=prop(n,"limit",3,1/0),q=rest_props(n,["$$slots","$$events","$$legacy","id","value","data","extract","disable","filter","autoselect","inputAfterSelect","results","focusAfterSelect","showDropdownOnFocus","showAllResultsOnFocus","limit"]);const H=createEventDispatcher();let te=state(null),re=state(null),ae=state(!1),ne=state(-1),oe=state(""),le=state(!1),ce=user_derived(()=>({pre:"<mark>",post:"</mark>",extract:p()})),ue=user_derived(()=>fuzzy.filter(h(),m(),get(ce)).filter(({score:Te})=>Te>0).slice(0,R()).filter(Te=>!z()(Te.original)).map(Te=>({...Te,disabled:w()(Te.original)})));user_effect(()=>{s(get(ue))});let he=user_derived(()=>s().map(Te=>p()(Te.original)).join("")),ge=user_derived(()=>!get(ae)&&s().length>0);user_effect(()=>{f()}),user_effect(()=>{get(oe)!==get(he)&&A()&&set(ne,$e(),!0),get(oe)!==get(he)&&!c["no-results"]&&set(ae,s().length===0),set(oe,get(he),!0)});async function Oe(){const Te=s()[get(ne)];if(Te.disabled)return;const ve=p()(Te.original),et=h();y()=="clear"&&h(""),y()=="update"&&h(ve),H("select",{selectedIndex:get(ne),searched:et,selected:ve,original:Te.original,originalIndex:Te.index}),await tick(),e()&&get(re).focus(),me()}function $e(){let Te=0,ve=s()[Te]?.disabled??!1;for(;ve;)Te===s().length?Te=0:Te+=1,ve=s()[Te]?.disabled??!1;return Te}function Pe(Te){let ve=Te===1&&get(ne)===s().length-1?0:get(ne)+Te;ve<0&&(ve=s().length-1);let et=s()[ve].disabled;for(;et;)ve===s().length?ve=0:ve+=Te,et=s()[ve].disabled;set(ne,ve,!0)}const Le=()=>set(ae,!1),me=()=>{set(ae,!0),set(le,!1)};let we=user_derived(()=>f()?get(ge)&&get(le):get(ge));user_effect(()=>{get(le)&&g()&&h().length===0&&s(m().filter(Te=>!z()(Te)).map((Te,ve)=>({disabled:w()(Te),index:ve,original:Te,score:0,string:p()(Te)})))});var Se=root$m();event("click",$window,({target:Te})=>{!get(ae)&&!get(te)?.contains(Te)&&me()});let ye;var ke=child(Se);{let Te=user_derived(()=>get(ne)>=0&&!get(ae)&&s().length>0?`${d()}-result-${get(ne)}`:null);Search(ke,spread_props({get id(){return d()},removeFormAriaAttributes:!0},()=>q,{"aria-autocomplete":"list",get"aria-controls"(){return`${d()??""}-listbox`},get"aria-labelledby"(){return`${d()??""}-label`},get"aria-activedescendant"(){return get(Te)},get ref(){return get(re)},set ref(ve){set(re,ve,!0)},get value(){return h()},set value(ve){h(ve)},$$events:{type(ve){bubble_event.call(this,n,ve)},input(ve){bubble_event.call(this,n,ve)},change(ve){bubble_event.call(this,n,ve)},focus:[function(ve){bubble_event.call(this,n,ve)},()=>{Le(),(f()||g())&&set(le,!0)}],clear:[function(ve){bubble_event.call(this,n,ve)},Le],blur(ve){bubble_event.call(this,n,ve)},keydown:[function(ve){bubble_event.call(this,n,ve)},ve=>{if(s().length!==0)switch(ve.key){case"Enter":Oe();break;case"ArrowDown":ve.preventDefault(),Pe(1);break;case"ArrowUp":ve.preventDefault(),Pe(-1);break;case"Escape":ve.preventDefault(),h(""),get(re)?.focus(),me();break}}]}}))}var Ae=sibling(ke,2);set_class(Ae,1,"svelte-hiinzj",null,{},{"svelte-typeahead-list":!0});var Ie=child(Ae);{var qe=Te=>{var ve=comment$1(),et=first_child(ve);each(et,17,s,index,(mt,ht,ct)=>{var Ue=root_2$c();let ot;var bt=child(Ue);
2148slot(bt,n,"default",{get result(){return get(ht)},index:ct,get value(){return h()}},At=>{var ft=comment$1(),be=first_child(ft);html(be,()=>get(ht).string),append(At,ft)}),template_effect(()=>{set_attribute(Ue,"id",`${d()??""}-result-${ct}`),set_attribute(Ue,"aria-selected",get(ne)===ct),ot=set_class(Ue,1,"svelte-hiinzj",null,ot,{selected:get(ne)===ct,disabled:get(ht).disabled})}),delegated("click",Ue,()=>{get(ht).disabled||(set(ne,ct,!0),Oe())}),event("mouseenter",Ue,()=>{get(ht).disabled||set(ne,ct,!0)}),append(mt,Ue)}),append(Te,ve)};if_block(Ie,Te=>{get(we)&&Te(qe)})}var Ge=sibling(Ie,2);{var Je=Te=>{var ve=root_4$b();set_class(ve,1,"svelte-hiinzj",null,{},{"no-results":!0});var et=child(ve);slot(et,n,"no-results",{get value(){return h()}},null),append(Te,ve)};if_block(Ge,Te=>{c["no-results"]&&!get(ae)&&h().length>0&&s().length===0&&Te(Je)})}bind_this(Se,Te=>set(te,Te),()=>get(te)),template_effect(()=>{set_attribute(Se,"aria-controls",`${d()??""}-listbox`),set_attribute(Se,"aria-expanded",get(we)),set_attribute(Se,"id",`${d()??""}-typeahead`),ye=set_class(Se,1,"svelte-hiinzj",null,ye,{dropdown:s().length>0}),set_attribute(Ae,"aria-labelledby",`${d()??""}-label`),set_attribute(Ae,"id",`${d()??""}-listbox`)}),append(o,Se),pop()}delegate(["click"]);var root$l=from_html('<div class="cnbutton svelte-13etz1o"></div>');function ContentNotes(o,n){push(n,!0);var c=root$l();html(c,()=>markdownit(n.text),!0),delegated("click",c,()=>{appState.modal.offen=!0,appState.modal.text=n.contentnotes}),append(o,c),pop()}delegate(["click"]);var root$k=from_html('<div class="cnbutton svelte-lm5bcv"></div>');function Modalbutton(o,n){push(n,!0);var c=root$k();html(c,()=>markdownit(n.text),!0),delegated("click",c,()=>{appState.modal.offen=!0,appState.modal.text=n.contentnotes}),append(o,c),pop()}delegate(["click"]);var root_3$a=from_html("<h5> </h5>"),root_5$8=from_html('<li style=""><a style="font-family: cooper; font-size: 1.5rem"> </a><br/> </li>'),root_4$a=from_html('<h5 class="mt-4 mb-2">Basierend auf Ihren Eingaben empfehlen wir Ihnen die folgenden Aufführungen:</h5> <ul><li style=""><a style="font-family: cooper; font-size: 1.5rem"> </a><br/> </li> <li style=""><a style="font-family: cooper; font-size: 1.5rem"> </a><br/> </li> <!></ul>',1),root$j=from_html('<!> <button>Senden</button> <!> <!> <h4 class="mt-8">So nutzen Sie den Theaterkompass:</h4> <p><strong>Werke eingeben:</strong><br/> Tragen Sie in die Eingabezeile Werke ein, die Ihnen gefallen. Das können beliebte Bücher (z. B. Harry Potter), Filme (z. B. Der Pate), Serien (z. B. Star Trek), Theaterstücke (z. B. Madame Butterfly), Songs (z. B. Dancing Queen) oder andere öffentlich bekannte Werke sein. Sie können die Titel einfach hintereinanderschreiben oder durch Kommas, Bindestriche oder Leerzeichen trennen.</p> <p><strong>Senden:</strong><br/> Sobald Sie Ihre Auswahl eingetragen haben, klicken Sie auf den Button »Senden«. Die Analyse kann einen Moment dauern.</p> <p><strong>Was passiert im Hintergrund?</strong><br/> Die KI analysiert Ihre eingegebenen Werke nach verschiedenen Faktoren wie Humor, Emotionalität, Komplexität oder Modernität. Daraus entsteht ein persönliches Profil, das Ihre Vorlieben widerspiegelt und das mit unserem Spielplan abgeglichen wird. Die besten Übereinstimmungen werden Ihnen als Empfehlung angezeigt.</p> <p><strong>Hinweis:</strong><br/> Die Ergebnisse sind nicht replizierbar und basieren auf einer kreativen Einschätzung der KI. Sie sollen vor allem zeigen, wie vielfältig unser Programm ist – und vielleicht überraschen und inspirieren Sie unsere Vorschläge!</p>',1);function Empfehlungen(o){let n=proxy({});const c=f=>({method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(f)});let d=state(void 0),h=state(!1);async function m(){set(h,!0);const f=await fetch("/api/recommend",c(n));set(d,await f.json(),!0),set(h,!1)}var p=root$j(),w=first_child(p);Textarea(w,{title:"Stücktitel",get value(){return n.stuecke},set value(f){n.stuecke=f}});var z=sibling(w,2),A=sibling(z,2);{var y=f=>{var g=text$1("läuft…");append(f,g)};if_block(A,f=>{get(h)&&!get(d)&&f(y)})}var s=sibling(A,2);{var e=f=>{var g=comment$1(),R=first_child(g);{var q=te=>{var re=root_3$a(),ae=child(re);template_effect(()=>set_text(ae,get(d).answer)),append(te,re)},H=te=>{var re=root_4$a(),ae=sibling(first_child(re),2),ne=child(ae),oe=child(ne),le=child(oe),ce=sibling(oe,2,!0),ue=sibling(ne,2),he=child(ue),ge=child(he),Oe=sibling(he,2,!0),$e=sibling(ue,2);each($e,17,()=>get(d).Rest,index,(Pe,Le)=>{var me=root_5$8(),we=child(me),Se=child(we),ye=sibling(we,2,!0);template_effect(()=>{set_attribute(we,"href",`/${get(Le).uri??""}`),set_text(Se,get(Le)?.titel),set_text(ye,get(Le)?.untertitel)}),append(Pe,me)}),template_effect(()=>{set_attribute(oe,"href",`/${get(d).r1?.uri??""}`),set_text(le,get(d).r1?.titel),set_text(ce,get(d).r1?.untertitel),set_attribute(he,"href",`/${get(d).r2?.uri??""}`),set_text(ge,get(d).r2?.titel),set_text(Oe,get(d).r2?.untertitel)}),append(te,re)};if_block(R,te=>{get(d).answer?te(q):te(H,-1)})}append(f,g)};if_block(s,f=>{get(d)&&f(e)})}delegated("click",z,m),append(o,p)}delegate(["click"]);var root_1$b=from_html('Lösungswort: <input type="text"/>',1),root_2$b=from_html('<div style="--aspect-ratio: 9/16"><iframe frameborder="0" src="/dreiqvideo/f8e87fb0-e4e5-4eab-b4b4-13502313ff33" style="width:100%"></iframe></div> <br/>',1);function Videopassword(o,n){push(n,!0);let c=state(void 0),d=user_derived(()=>/tannenbaum/i.test(get(c)));var h=comment$1(),m=first_child(h);{var p=z=>{var A=root_1$b(),y=sibling(first_child(A));bind_value(y,()=>get(c),s=>set(c,s)),append(z,A)},w=z=>{var A=root_2$b();append(z,A)};if_block(m,z=>{get(d)?z(w,-1):z(p)})}append(o,h),pop()}var root$i=from_html('<div class="sepa-section"><div class="form-group svelte-16bnk4v"><label for="sepa-kontoinhaber"> </label> <input id="sepa-kontoinhaber" type="text"/></div> <div class="form-group svelte-16bnk4v"><label for="sepa-iban"> </label> <input id="sepa-iban" type="text"/></div> <div style="display: grid; grid-template-columns: 1fr 1fr; gap: 16px;"><div class="form-group svelte-16bnk4v"><label for="sepa-bic"> </label> <input id="sepa-bic" type="text"/></div> <div class="form-group svelte-16bnk4v"><label for="sepa-bankname"> </label> <input id="sepa-bankname" type="text"/></div></div> <div class="form-group checkbox-wrapper svelte-16bnk4v"><label class="checkbox-label svelte-16bnk4v"><input type="checkbox" class="svelte-16bnk4v"/> <span class="checkmark svelte-16bnk4v"></span> <span>Ich ermächtige das Staatstheater Augsburg, Zahlungen von meinem Konto mittels Lastschrift einzuziehen. Zugleich weise ich mein Kreditinstitut an, die vom Staatstheater Augsburg auf mein Konto gezogenen Lastschriften einzulösen. Ich nehme zur Kenntnis, dass ich innerhalb von acht Wochen, beginnend mit dem Belastungsdatum, die Erstattung des belasteten Betrages verlangen kann. Es gelten dabei die mit meinem Kreditinstitut vereinbarten Bedingungen.</span></label></div></div>');function FormularSEPA(o,n){push(n,!0);let c=prop(n,"data",7),d=prop(n,"errors",7);function h(Se){const ye=Se.replace(/\s/g,"").toUpperCase();return ye.match(/.{1,4}/g)?.join(" ")||ye}
2148function m(Se,ye){c()[Se]=ye,d()[Se]&&(d()[Se]="")}function p(Se){c().iban=h(Se),d().iban&&(d().iban="")}function w(){c().sepaEinverstaendnis=!c().sepaEinverstaendnis,d().sepaEinverstaendnis&&(d().sepaEinverstaendnis="")}var z=root$i(),A=child(z),y=child(A),s=child(y),e=sibling(y,2);let f;var g=sibling(A,2),R=child(g),q=child(R),H=sibling(R,2);let te;var re=sibling(g,2),ae=child(re),ne=child(ae),oe=child(ne),le=sibling(ne,2);let ce;var ue=sibling(ae,2),he=child(ue),ge=child(he),Oe=sibling(he,2);let $e;var Pe=sibling(re,2),Le=child(Pe),me=child(Le),we=sibling(me,4);template_effect(()=>{set_class(y,1,clsx(d().kontoinhaber?"rot":""),"svelte-16bnk4v"),set_text(s,d().kontoinhaber||"Kontoinhaber"),set_value(e,c().kontoinhaber),f=set_class(e,1,"svelte-16bnk4v",null,f,{error:d().kontoinhaber}),set_class(R,1,clsx(d().iban?"rot":""),"svelte-16bnk4v"),set_text(q,d().iban||"IBAN"),set_value(H,c().iban),te=set_class(H,1,"svelte-16bnk4v",null,te,{error:d().iban}),set_class(ne,1,clsx(d().bic?"rot":""),"svelte-16bnk4v"),set_text(oe,d().bic||"BIC (optional)"),set_value(le,c().bic),ce=set_class(le,1,"svelte-16bnk4v",null,ce,{error:d().bic}),set_class(he,1,clsx(d().bankname?"rot":""),"svelte-16bnk4v"),set_text(ge,d().bankname||"Name der Bank (optional)"),set_value(Oe,c().bankname),$e=set_class(Oe,1,"svelte-16bnk4v",null,$e,{error:d().bankname}),set_checked(me,c().sepaEinverstaendnis),set_class(we,1,clsx(d().sepaEinverstaendnis?"rot":""),"svelte-16bnk4v")}),delegated("input",e,Se=>m("kontoinhaber",Se.target.value)),delegated("input",H,Se=>p(Se.target.value)),delegated("input",le,Se=>m("bic",Se.target.value)),delegated("input",Oe,Se=>m("bankname",Se.target.value)),delegated("click",me,w),append(o,z),pop()}delegate(["input","click"]);const checkbox$3=(o,n=noop,c=noop,d=noop)=>{var h=root_8$1(),m=child(h),p=child(m),w=sibling(p,4);html(w,c),template_effect(()=>set_checked(p,n())),delegated("click",p,function(...z){d()?.apply(this,z)}),append(o,h)},successMessage$3=(o,n=noop)=>{var c=root_9$3(),d=sibling(child(c),2),h=child(d);template_effect(()=>set_text(h,n())),append(o,c)};var root_1$a=from_html('<div class="form-group svelte-1pqduhk"><label> </label> <input/></div>'),root_2$a=from_html('<div class="form-group svelte-1pqduhk"><label> </label> <textarea></textarea></div>'),root_5$7=from_html("<option> </option>"),root_6$4=from_html("<option> </option>"),root_7$3=from_html('<button type="button" class="remove-abo-btn svelte-1pqduhk">✕</button>'),root_4$9=from_html('<div class="abo-row svelte-1pqduhk"><select><option>Bitte wählen …</option><!></select> <div class="field-wrapper svelte-1pqduhk"><label class="svelte-1pqduhk">erm.</label> <select><option>Normalpreis</option><option>ermäßigt</option></select></div> <div class="field-wrapper svelte-1pqduhk"><label class="svelte-1pqduhk">Anz.</label> <input style="width: 55px" type="number" min="1" max="99"/></div> <div class="field-wrapper svelte-1pqduhk"><label class="svelte-1pqduhk">Preisgr.</label> <select><option>Bitte wählen …</option><!></select></div> <!></div>'),root_3$9=from_html('<div class="form-group svelte-1pqduhk"><label> </label> <div class="abo-list svelte-1pqduhk"></div> <button type="button" class="add-abo-btn svelte-1pqduhk">+ Weiteres Abo hinzufügen</button></div>'),root_8$1=from_html('<div class="form-group checkbox-wrapper svelte-1pqduhk"><label class="checkbox-label svelte-1pqduhk"><input type="checkbox" class="svelte-1pqduhk"/> <span class="checkmark svelte-1pqduhk"></span> <!></label></div>'),root_9$3=from_html('<div class="success-message"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor"><path d="M20 6L9 17l-5-5" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg> <p> </p></div>'),root_10$6=from_html('<div class="button-group svelte-1pqduhk"><button type="submit" class="btn-primary"><!></button></div>'),root_17$3=from_html('<div class="review-row svelte-1pqduhk"><span class="review-label svelte-1pqduhk">Telefon</span><span class="review-value svelte-1pqduhk"> </span></div>'),root_16$4=from_html('<div class="review-section svelte-1pqduhk"><h3 class="svelte-1pqduhk">Persönliche Daten</h3> <div class="review-row svelte-1pqduhk"><span class="review-label svelte-1pqduhk">Name</span><span class="review-value svelte-1pqduhk"> </span></div> <div class="review-row svelte-1pqduhk"><span class="review-label svelte-1pqduhk">E-Mail</span><span class="review-value svelte-1pqduhk"> </span></div> <!> <div class="review-row svelte-1pqduhk"><span class="review-label svelte-1pqduhk">Straße</span><span class="review-value svelte-1pqduhk"> </span></div> <div class="review-row svelte-1pqduhk"><span class="review-label svelte-1pqduhk">PLZ / Ort</span><span class="review-value svelte-1pqduhk"> </span></div></div>'),root_18$3=from_html('<div class="review-row svelte-1pqduhk"><span class="review-label svelte-1pqduhk"> </span> <span class="review-value svelte-1pqduhk"> </span></div>'),root_19$3=from_html('<div class="review-section svelte-1pqduhk"><h3 class="svelte-1pqduhk">Bemerkungen</h3> <div class="review-row svelte-1pqduhk"><span class="review-value svelte-1pqduhk" style="text-align:left; max-width:100%;"> </span></div></div>'),root_21$4=from_html('<div class="review-row svelte-1pqduhk"><span class="review-label svelte-1pqduhk">BIC</span><span class="review-value svelte-1pqduhk"> </span></div>'),root_22$3=from_html('<div class="review-row svelte-1pqduhk"><span class="review-label svelte-1pqduhk">Bank</span><span class="review-value svelte-1pqduhk"> </span></div>'),root_20$4=from_html('<div class="review-section svelte-1pqduhk"><h3 class="svelte-1pqduhk">Bankdaten</h3> <div class="review-row svelte-1pqduhk"><span class="review-label svelte-1pqduhk">Kontoinhaber</span><span class="review-value svelte-1pqduhk"> </span></div> <div class="review-row svelte-1pqduhk"><span class="review-label svelte-1pqduhk">IBAN</span><span class="review-value svelte-1pqduhk"> </span></div> <!> <!></div>'),root_15$3=from_html('<div class="review-heading svelte-1pqduhk">Bitte überprüfen Sie Ihre Angaben</div> <!> <div class="review-section svelte-1pqduhk"><h3 class="svelte-1pqduhk">Abonnements</h3> <!></div> <!> <!> <div class="review-section svelte-1pqduhk"><h3 class="svelte-1pqduhk">Bestätigungen</h3> <div class="review-row svelte-1pqduhk"><span class="review-label svelte-1pqduhk">Newsletter</span><span class="review-value svelte-1pqduhk"> </span></div> <div class="review-row svelte-1pqduhk"><span class="review-label svelte-1pqduhk">SEPA-Einverständnis</span><span class="review-value svelte-1pqduhk">Ja</span></div> <div class="review-row svelte-1pqduhk"><span class="review-label svelte-1pqduhk">AGB</span><span class="review-value svelte-1pqduhk">Akzeptiert</span></div></div> <div class="button-group svelte-1pqduhk"><button type="button" class="btn-secondary svelte-1pqduhk">Zurück zur Bearbeitung</button> <button type="button" class="btn-primary"><!></button></div>',1),root_26$2=from_html('<!> <!> <!> <div style="display: grid; grid-template-columns: 1fr 2fr; gap: 16px;"><!> <!></div>',1),root_25$2=from_html('<form><!> <!> <!> <div class="form-group checkbox-wrapper svelte-1pqduhk"><label class="checkbox-label svelte-1pqduhk"><input type="checkbox" class="svelte-1pqduhk"/> <span class="checkmark svelte-1pqduhk"></span> <span>Ich habe bereits eine Einzugsermächtigung erteilt</span></label></div> <!> <div class="form-group checkbox-wrapper svelte-1pqduhk"><label class="checkbox-label svelte-1pqduhk"><input type="checkbox" class="svelte-1pqduhk"/> <span class="checkmark svelte-1pqduhk"></span> <span>Hiermit bestätige ich, dass ich die Abo-Bedingungen und Allgemeinen Geschäftsbedingungen des Staatstheater Augsburg gelesen habe und stimme ihrer Geltung ausdrücklich zu.</span></label></div> <!> <!></form>'),root$h=from_html('<div class="form-wrapper"><!></div>');function Form(o,n){push(n,!0);const c=(Te,ve=noop,et=noop,mt=noop,ht=noop,ct)=>{let Ue=derived_safe_equal(()=>fallback(ct?.(),"text"));var ot=root_1$a(),bt=child(ot),At=child(bt),ft=sibling(bt,2);let be;template_effect(()=>
2148{set_attribute(bt,"for",ve()),set_class(bt,1,clsx(ht()?"rot":""),"svelte-1pqduhk"),set_text(At,ht()||et()),set_attribute(ft,"id",ve()),set_attribute(ft,"type",get(Ue)),set_value(ft,mt()),be=set_class(ft,1,"svelte-1pqduhk",null,be,{error:ht()})}),delegated("input",ft,Et=>ke(ve(),Et.target.value)),append(Te,ot)},d=(Te,ve=noop,et=noop,mt=noop,ht=noop,ct)=>{let Ue=derived_safe_equal(()=>fallback(ct?.(),4));var ot=root_2$a(),bt=child(ot),At=child(bt),ft=sibling(bt,2);let be;template_effect(()=>{set_attribute(bt,"for",ve()),set_class(bt,1,clsx(ht()?"rot":""),"svelte-1pqduhk"),set_text(At,ht()||et()),set_attribute(ft,"id",ve()),set_value(ft,mt()),set_attribute(ft,"rows",get(Ue)),be=set_class(ft,1,"svelte-1pqduhk",null,be,{error:ht()})}),delegated("input",ft,Et=>ke(ve(),Et.target.value)),append(Te,ot)},h=Te=>{var ve=root_3$9(),et=child(ve),mt=child(et),ht=sibling(et,2);each(ht,21,()=>ce.abos,index,(Ue,ot,bt)=>{var At=root_4$9(),ft=child(At);let be;var Et=child(ft);Et.value=Et.__value="";var St=sibling(Et);each(St,17,()=>y,index,(Ft,Pt)=>{var qt=root_5$7(),on=child(qt),He={};template_effect(()=>{set_text(on,get(Pt)),He!==(He=get(Pt))&&(qt.value=(qt.__value=get(Pt))??"")}),append(Ft,qt)});var Jt;init_select(ft);var Bt=sibling(ft,2),Vt=sibling(child(Bt),2);let Tt;var Be=child(Vt);Be.value=Be.__value="Normalpreis";var Xe=sibling(Be);Xe.value=Xe.__value="ermäßigt";var Ke;init_select(Vt);var nt=sibling(Bt,2),xt=sibling(child(nt),2);let Mt;var Ye=sibling(nt,2),at=sibling(child(Ye),2);let st;var vt=child(at);vt.value=vt.__value="";var gt=sibling(vt);each(gt,17,()=>$e(get(ot).name),index,(Ft,Pt)=>{var qt=root_6$4(),on=child(qt),He={};template_effect(()=>{set_text(on,get(Pt)),He!==(He=get(Pt))&&(qt.value=(qt.__value=get(Pt))??"")}),append(Ft,qt)});var Ot;init_select(at);var Dt=sibling(Ye,2);{var Gt=Ft=>{var Pt=root_7$3();delegated("click",Pt,()=>ge(bt)),append(Ft,Pt)};if_block(Dt,Ft=>{ce.abos.length>1&&Ft(Gt)})}template_effect(()=>{be=set_class(ft,1,"svelte-1pqduhk",null,be,{error:get(ue).abos}),Jt!==(Jt=get(ot).name)&&(ft.value=(ft.__value=get(ot).name)??"",select_option(ft,get(ot).name)),Tt=set_class(Vt,1,"svelte-1pqduhk",null,Tt,{error:get(ue).abos}),Ke!==(Ke=get(ot).preisart)&&(Vt.value=(Vt.__value=get(ot).preisart)??"",select_option(Vt,get(ot).preisart)),set_value(xt,get(ot).anzahl),Mt=set_class(xt,1,"svelte-1pqduhk",null,Mt,{error:get(ue).abos}),at.disabled=get(ot).name==="",st=set_class(at,1,"svelte-1pqduhk",null,st,{error:get(ue).abos}),Ot!==(Ot=get(ot).preisgruppe)&&(at.value=(at.__value=get(ot).preisgruppe)??"",select_option(at,get(ot).preisgruppe))}),delegated("change",ft,Ft=>Oe(bt,Ft.currentTarget.value)),delegated("change",Vt,Ft=>Le(bt,Ft.currentTarget.value)),delegated("input",xt,Ft=>Pe(bt,Ft.target.value)),delegated("change",at,Ft=>{ce.abos=ce.abos.map((Pt,qt)=>qt===bt?{...Pt,preisgruppe:Ft.currentTarget.value}:Pt),get(ue).abos&&(get(ue).abos="")}),append(Ue,At)});var ct=sibling(ht,2);template_effect(()=>{set_class(et,1,clsx(get(ue).abos?"rot":""),"svelte-1pqduhk"),set_text(mt,get(ue).abos||"Abonnements")}),delegated("click",ct,he),append(Te,ve)},m=(Te,ve=noop)=>{var et=root_10$6(),mt=child(et),ht=child(mt);{var ct=ot=>{var bt=text$1("Wird gesendet…");append(ot,bt)},Ue=ot=>{var bt=text$1();template_effect(()=>set_text(bt,ve())),append(ot,bt)};if_block(ht,ot=>{get(f)?ot(ct):ot(Ue,-1)})}template_effect(()=>mt.disabled=get(f)),append(Te,et)};console.log("appState:",appState);function p(Te){return/^[0-9]{5}$/.test(Te)}function w(Te){const ve=Te.replace(/\s/g,"").toUpperCase();return/^DE[0-9]{20}$/.test(ve)}function z(Te){const ve=Te.replace(/\s/g,"").toUpperCase();return/^[A-Z]{6}[A-Z0-9]{2}([A-Z0-9]{3})?$/.test(ve)}function A(Te){return Te>=1&&Te<=99}const y=abomat$1.abos.map(Te=>Te.name).filter(Te=>!/theaterbus/i.test(Te));let s=state(!1),e=state(""),f=state(!1),g=state(!1),R=prop(n,"embedded",3,!1),q=prop(n,"uuid",3,""),H=prop(n,"adresse",19,()=>({name:"",email:"",strasse:"",plz:"",ort:""})),te=prop(n,"onSelectTheaterbus",3,void 0),re=prop(n,"agbAkzeptiert",3,!1),ae=prop(n,"agbError",3,""),ne=prop(n,"onAGBError",3,void 0),oe=prop(n,"setAddressError",3,void 0),le=prop(n,"onSubmitted",3,void 0),ce=proxy({name:H().name||"",email:H().email||"",strasse:H().strasse||"",plz:H().plz||"",ort:H().ort||"",telefon:H().telefon||"",abos:[{name:"",anzahl:1,preisart:"Normalpreis",preisgruppe:""}],newsletter:!1,bemerkungen:"",kontoinhaber:"",iban:"",bic:"",bankname:"",sepaEinverstaendnis:!1,sepaBereitsErteilt:!1,typ:"abo"});user_effect(()=>{R()&&H()&&(ce.name=H().name||"",ce.email=H().email||"",ce.telefon=H().telefon||"",ce.strasse=H().strasse||"",ce.plz=H().plz||"",ce.ort=H().ort||"")});let ue=state(proxy({name:"",email:"",abos:"",plz:"",strasse:"",ort:"",bemerkungen:"",kontoinhaber:"",iban:"",bic:"",bankname:"",sepaEinverstaendnis:"",sepaBereitsErteilt:""}));function he(){ce.abos=[...ce.abos,{name:"",anzahl:1,preisart:"Normalpreis",preisgruppe:""}]}function ge(Te){ce.abos=ce.abos.filter((ve,et)=>et!==Te)}function Oe(Te,ve){if(/theaterbus/i.test(ve)){te()?.();return}ce.abos=ce.abos.map((et,mt)=>mt===Te?{...et,name:ve,preisgruppe:""}:et)}function $e(Te){const ve=abomat$1.abos.find(mt=>mt.name===Te);if(!ve||!ve.preise)return["PG1","PG2","PG3","PG4"];const et=ve.preise.match(/PG\d+/g);return et?[...new Set(et)]:["PG1","PG2","PG3","PG4"]}function Pe(Te,ve){const et=parseInt(ve,10)||1;ce.abos=ce.abos.map((mt,ht)=>ht===Te?{...mt,anzahl:et}:mt)}function Le(Te,ve){ce.abos=ce.abos.map((et,mt)=>mt===Te?{...et,preisart:ve}:et)}function me(){let Te=!0;const ve={name:"",email:"",abos:"",plz:"",strasse:"",ort:"",bemerkungen:"",kontoinhaber:"",iban:"",bic:"",bankname:"",sepaEinverstaendnis:""};return ce.name.trim()===""?(ve.name="Name ist erforderlich",oe()?.("name","Name ist erforderlich"),Te=!1):oe()?.("name",""),ce.abos.length===0||ce.abos.every(et=>et.name==="")?(ve.abos="Bitte mindestens ein Abo auswählen",Te=!1):ce.abos.find(mt=>mt.name===""||!A(mt.anzahl)||mt.preisgruppe==="")&&(ve.abos="Bitte alle Abos vollständig ausfüllen (Abo, Anzahl, Preisgruppe)",Te=!1),ce.email.trim()===""?(ve.email="E-Mail ist erforderlich",oe()?.("email","E-Mail ist erforderlich"),Te=!1):/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(ce.email)?oe()?.("email",""):(ve.email="Bitte geben Sie eine gültige E-Mail-Adresse ein",oe()?.("email","Bitte geben Sie eine gültige E-Mail-Adresse ein"),Te=!1),ce.strasse.trim()===""?(ve.strasse="Straße ist erforderlich",oe()?.("strasse","Straße ist erforderlich"),Te=!1):oe()?.("strasse",""),ce.plz.trim()===""?(ve.plz="PLZ ist erforderlich",oe()?.("plz","PLZ ist erforderlich"),Te=!1):p(ce.plz)?oe()?.("plz",""):(ve.plz="Bitte geben Sie eine gültige 5-stellige PLZ ein",oe()?.("plz","Bitte geben Sie eine gültige 5-stellige PLZ ein"),Te=!1),ce.ort.trim()===""?(ve.ort="Ort ist erforderlich",oe()?.("ort","Ort ist erforderlich"),Te=!1):oe()?.("ort",""),ce.sepaBereitsErteilt||(ce.kontoinhaber.trim()===""&&(ve.kontoinhaber="Kontoinhaber ist erforderlich",Te=!1),ce.iban.trim()===""?(ve.iban="IBAN ist erforderlich",Te=!1):w(ce.iban)||(ve.iban="Bitte geben Sie eine gültige deutsche IBAN ein (DE + 20 Ziffern)",Te=!1),ce.bic.trim()!==""&&!z(ce.bic)&&(ve.bic="Bitte geben Sie eine gültige BIC ein (8 oder 11 Zeichen)",Te=!1),ce.sepaEinverstaendnis||(ve.sepaEinverstaendnis="Ich ermächtige das Staatstheater Augsburg, Zahlungen von meinem Konto mittels Lastschrift einzuziehen. Zugleich weise ich mein Kreditinstitut an, die vom Staatstheater Augsburg auf mein Konto gezogenen Lastschriften einzulösen. Ich nehme zur Kenntnis, dass ich innerhalb von acht Wochen, beginnend mit dem Belastungsdatum, die Erstattung des belasteten Betrages verlangen kann. Es gelten dabei die mit meinem Kreditinstitut vereinbarten Bedingungen.",Te=!1)),re()?ne()?.(""):(ne()?.("Bitte bestätigen Sie die Abo-Bedingungen und AGB"),Te=!1),set(ue,ve,!0),Te}function we(Te){Te.preventDefault(),me()&&set(g,!0)}function Se(){set(g,!1)}async function ye(Te){Te.preventDefault(),set(f,!0);const ve=await fetch("https://staatstheater-augsburg.de/formeingang",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({...ce,uuid:q()})}),et=await ve.text();let mt;try{mt=JSON.parse(et)}catch{mt=null}set(f,!1),!ve.ok||!mt||!mt.success?(console.error("Server error:",ve.status,et,mt),alert("Fehler: "+(mt?.error||"Server-Fehler "+ve.status)),set(s,!1)):(set(e,mt.msg||"",!0),set(s,!0),le()?.(mt.msg||""))}function ke(Te,ve){ce[Te]=ve,get(ue)[Te]&&(get(ue)[Te]="")}user_effect(()=>{window.data=ce});var Ae=root$h(),Ie=child(Ae);{var qe=Te=>{successMessage$3(Te,()=>get(e)||"Vielen Dank! Ihre Daten wurden erfolgreich übermittelt.")},Ge=Te=>{var ve=root_15$3(),et=sibling(first_child(ve),2);{var mt=Ke=>{var nt=root_16$4(),xt=sibling(child(nt),2),Mt=sibling(child(xt)),Ye=child(Mt),at=sibling(xt,2),st=sibling(child(at)),vt=child(st),gt=sibling(at,2);{var Ot=He=>{var Ve=root_17$3(),pt=sibling(child(Ve)),wt=child(pt);template_effect(()=>set_text(wt,ce.telefon)),append(He,Ve)};if_block(gt,He=>{ce.telefon&&He(Ot)})}var Dt=sibling(gt,2),Gt=sibling(child(Dt)),Ft=child(Gt),Pt=sibling(Dt,2),qt=sibling(child(Pt)),on=child(qt);template_effect(()=>{set_text(Ye,ce.name),set_text(vt,ce.email),set_text(Ft,ce.strasse),set_text(on,`${ce.plz??""} ${ce.ort??""}`)}),append(Ke,nt)};if_block(et,Ke=>{R()||Ke(mt)})}var ht=sibling(et,2),ct=sibling(child(ht),2);each(ct,17,()=>ce.abos,index,(Ke,nt)=>{var xt=root_18$3(),Mt=child(xt),Ye=child(Mt),at=sibling(Mt,2),st=child(at);template_effect(()=>{set_text(Ye,get(nt).name),set_text(st,`${get(nt).anzahl??""}× ${get(nt).preisart??""} ${get(nt).preisgruppe??""}`)}),append(Ke,xt)});var Ue=sibling(ht,2);{var ot=Ke=>{var nt=root_19$3(),xt=sibling(child(nt),2),Mt=child(xt),Ye=child(Mt);template_effect(()=>set_text(Ye,ce.bemerkungen)),append(Ke,nt)};if_block(Ue,Ke=>{ce.bemerkungen&&Ke(ot)})}var bt=sibling(Ue,2);{var At=Ke=>{var nt=root_20$4(),xt=sibling(child(nt),2),Mt=sibling(child(xt)),Ye=child(Mt),at=sibling(xt,2),st=sibling(child(at)),vt=child(st),gt=sibling(at,2);{var Ot=Ft=>{var Pt=root_21$4(),qt=sibling(child(Pt)),on=child(qt);template_effect(()=>set_text(on,ce.bic)),append(Ft,Pt)};if_block(gt,Ft=>{ce.bic&&Ft(Ot)}
2148)}var Dt=sibling(gt,2);{var Gt=Ft=>{var Pt=root_22$3(),qt=sibling(child(Pt)),on=child(qt);template_effect(()=>set_text(on,ce.bankname)),append(Ft,Pt)};if_block(Dt,Ft=>{ce.bankname&&Ft(Gt)})}template_effect(()=>{set_text(Ye,ce.kontoinhaber),set_text(vt,ce.iban)}),append(Ke,nt)};if_block(bt,Ke=>{ce.sepaBereitsErteilt||Ke(At)})}var ft=sibling(bt,2),be=sibling(child(ft),2),Et=sibling(child(be)),St=child(Et),Jt=sibling(ft,2),Bt=child(Jt),Vt=sibling(Bt,2),Tt=child(Vt);{var Be=Ke=>{var nt=text$1("Wird gesendet…");append(Ke,nt)},Xe=Ke=>{var nt=text$1("Kostenpflichtig bestellen");append(Ke,nt)};if_block(Tt,Ke=>{get(f)?Ke(Be):Ke(Xe,-1)})}template_effect(()=>{set_text(St,ce.newsletter?"Ja":"Nein"),Vt.disabled=get(f)}),delegated("click",Bt,Se),delegated("click",Vt,ye),append(Te,ve)},Je=Te=>{var ve=root_25$2(),et=child(ve);{var mt=Tt=>{var Be=root_26$2(),Xe=first_child(Be);c(Xe,()=>"name",()=>"Name",()=>ce.name,()=>get(ue).name);var Ke=sibling(Xe,2);c(Ke,()=>"email",()=>"E-Mail",()=>ce.email,()=>get(ue).email);var nt=sibling(Ke,2);c(nt,()=>"strasse",()=>"Straße und Hausnummer",()=>ce.strasse,()=>get(ue).strasse);var xt=sibling(nt,2),Mt=child(xt);c(Mt,()=>"plz",()=>"PLZ",()=>ce.plz,()=>get(ue).plz);var Ye=sibling(Mt,2);c(Ye,()=>"ort",()=>"Ort",()=>ce.ort,()=>get(ue).ort),append(Tt,Be)};if_block(et,Tt=>{R()||Tt(mt)})}var ht=sibling(et,2);h(ht);var ct=sibling(ht,2);d(ct,()=>"bemerkungen",()=>"Bemerkungen (Sitzplatzwünsche u.dgl.)",()=>ce.bemerkungen,()=>get(ue).bemerkungen);var Ue=sibling(ct,2),ot=child(Ue),bt=child(ot),At=sibling(Ue,2);{var ft=Tt=>{FormularSEPA(Tt,{get data(){return ce},get errors(){return get(ue)}})};if_block(At,Tt=>{ce.sepaBereitsErteilt||Tt(ft)})}var be=sibling(At,2),Et=child(be),St=child(Et),Jt=sibling(St,4),Bt=sibling(be,2);checkbox$3(Bt,()=>!!ce.newsletter,()=>'Ich möchte den Newsletter erhalten. <a href="/datenschutz">Informationen zum Datenschutz</a>',()=>()=>ce.newsletter=!ce.newsletter);var Vt=sibling(Bt,2);m(Vt,()=>"Weiter zum Überprüfen ihrer Bestellung"),template_effect(()=>{set_checked(bt,ce.sepaBereitsErteilt),set_checked(St,re()),set_class(Jt,1,clsx(ae()?"rot":""),"svelte-1pqduhk")}),event("submit",ve,we),delegated("click",bt,()=>{ce.sepaBereitsErteilt=!ce.sepaBereitsErteilt,get(ue).sepaBereitsErteilt&&(get(ue).sepaBereitsErteilt="")}),delegated("click",St,function(...Tt){n.onToggleAGB?.apply(this,Tt)}),append(Te,ve)};if_block(Ie,Te=>{get(s)?Te(qe):get(g)?Te(Ge,1):Te(Je,-1)})}append(o,Ae),pop()}delegate(["input","change","click"]);const termine=[{datum:"16.11.2026",zeit:"19:30",titel:"2. Sinfoniekonzert »Fabelhaft«"},{datum:"19.12.2026",zeit:"19:30",titel:"Die Verwandlung"},{datum:"08.01.2027",zeit:"19:30",titel:"Die verlorene Ehre der Katharina Blum"},{datum:"22.01.2027",zeit:"19:30",titel:"Cinderella"},{datum:"12.02.2027",zeit:"19:30",titel:"Luisa Miller"},{datum:"24.04.2027",zeit:"19:30",titel:"Die Tragödie des Macbeth"},{datum:"10.05.2027",zeit:"19:30",titel:"7. Sinfoniekonzert »Romantisch«"},{datum:"05.06.2027",zeit:"19:30",titel:"Cathedral / Minus 16"},{datum:"10.07.2027",zeit:"19:30",titel:"The Boys Are Kissing"},{datum:"30.07.2027",zeit:"19:30",titel:"Iphigénie en Aulide (Iphigenie in Aulis)"}],einstiegsstellen=[{group:"Nord",options:["Dillingen Abzweigung Hausen","Dillingen Rosenstraße","Steinheim Egaubrücke","Höchstädt Marktplatz","Wertingen Stadthalle","Gottmannshofen Staatsstraße","Biberbach Marktplatz","Langweid Waage","Stettenhofen"]},{group:"Süd",options:["Schwabmünchen Taubentalstraße","Schwabmünchen Altes Rathaus","Schwabmünchen Sägewerk","Großaitingen Süd","Großaitingen Mitte","Großaitingen Nord","Wehringen Rathaus","Bobingen Siedlung Kirche","Bobingen Venusberg","Bobingen Raiffeisenbank","Bobingen Nord"]}],preise3er=[{pg:"PG1",normal:"175,–",erm:"132,–"},{pg:"PG2",normal:"152,–",erm:"119,–"},{pg:"PG3",normal:"149,–",erm:"116,–"},{pg:"PG4",normal:"126,–",erm:"100,–"},{pg:"PG5",normal:"123,–",erm:"98,–"},{pg:"PG6",normal:"94,–",erm:"78,–"}],preise8er=[{pg:"PG1",normal:"418,–",erm:"324,–"},{pg:"PG2",normal:"371,–",erm:"292,–"}
2148,{pg:"PG3",normal:"365,–",erm:"287,–"},{pg:"PG4",normal:"309,–",erm:"248,–"},{pg:"PG5",normal:"302,–",erm:"243,–"},{pg:"PG6",normal:"234,–",erm:"195,–"}],preiseEinzel={"2. Sinfoniekonzert »Fabelhaft«":{PG1:5950,PG2:5350,PG3:4850,PG4:4250,PG5:3650,PG6:2750},"Die Verwandlung":{PG1:6650,PG2:5750,PG3:4750,PG4:3450},"Die verlorene Ehre der Katharina Blum":{PG1:4150,PG2:3550},Cinderella:{PG1:7450,PG2:6550,PG3:5450,PG4:4050},"Luisa Miller":{PG1:6650,PG2:5750,PG3:4750,PG4:3450},"Die Tragödie des Macbeth":{PG1:5850,PG2:5050,PG3:4150,PG4:3050},"7. Sinfoniekonzert »Romantisch«":{PG1:5950,PG2:5350,PG3:4850,PG4:4250,PG5:3650,PG6:2750},"Cathedral / Minus 16":{PG1:7450,PG2:6550,PG3:5450,PG4:4050},"The Boys Are Kissing":{PG1:5450,PG2:4650,PG3:3850,PG4:2950},"Iphigénie en Aulide (Iphigenie in Aulis)":{PG1:6650,PG2:5750,PG3:4750,PG4:3450}};function getPreisProKarte(o,n,c="normal"){const d=preiseEinzel[o];if(!d||!d[n])return 0;const h=d[n];return c==="erm"?Math.round(h*.7):h}const checkbox$2=(o,n=noop,c=noop,d=noop,h)=>{let m=derived_safe_equal(()=>fallback(h?.(),""));var p=root_3$8(),w=child(p),z=child(w),A=sibling(z,4);html(A,()=>get(m)||c(),!0),template_effect(()=>{set_checked(z,n()),set_class(A,1,clsx(get(m)?"rot":""),"svelte-16n7dkv")}),delegated("click",z,function(...y){d()?.apply(this,y)}),append(o,p)},successMessage$2=(o,n=noop)=>{var c=root_4$8(),d=sibling(child(c),2),h=child(d);template_effect(()=>set_text(h,n())),append(o,c)};var root_1$9=from_html('<div class="form-group svelte-16n7dkv"><label> </label> <input/></div>'),root_2$9=from_html('<div class="form-group svelte-16n7dkv"><label> </label> <textarea></textarea></div>'),root_3$8=from_html('<div class="form-group checkbox-wrapper svelte-16n7dkv"><label class="checkbox-label svelte-16n7dkv"><input type="checkbox" class="svelte-16n7dkv"/> <span class="checkmark svelte-16n7dkv"></span> <span></span></label></div>'),root_4$8=from_html('<div class="success-message svelte-16n7dkv"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor"><path d="M20 6L9 17l-5-5" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg> <p> </p></div>'),root_12$5=from_html('<div class="review-row svelte-16n7dkv"><span class="review-label svelte-16n7dkv">Telefon</span><span class="review-value svelte-16n7dkv"> </span></div>'),root_11$5=from_html('<div class="review-section svelte-16n7dkv"><h3 class="svelte-16n7dkv">Persönliche Daten</h3> <div class="review-row svelte-16n7dkv"><span class="review-label svelte-16n7dkv">Name</span><span class="review-value svelte-16n7dkv"> </span></div> <div class="review-row svelte-16n7dkv"><span class="review-label svelte-16n7dkv">E-Mail</span><span class="review-value svelte-16n7dkv"> </span></div> <!> <div class="review-row svelte-16n7dkv"><span class="review-label svelte-16n7dkv">Straße</span><span class="review-value svelte-16n7dkv"> </span></div> <div class="review-row svelte-16n7dkv"><span class="review-label svelte-16n7dkv">PLZ / Ort</span><span class="review-value svelte-16n7dkv"> </span></div></div>'),root_13$4=from_html('<div class="review-row svelte-16n7dkv"><span class="review-label svelte-16n7dkv">Termine</span><span class="review-value svelte-16n7dkv"> </span></div>'),root_14$1=from_html('<div class="review-section svelte-16n7dkv"><h3 class="svelte-16n7dkv">Bemerkungen</h3> <div class="review-row svelte-16n7dkv"><span class="review-value svelte-16n7dkv" style="text-align: left; max-width: 100%;"> </span></div></div>'),root_16$3=from_html('<div class="review-row svelte-16n7dkv"><span class="review-label svelte-16n7dkv">BIC</span><span class="review-value svelte-16n7dkv"> </span></div>'),root_17$2=from_html('<div class="review-row svelte-16n7dkv"><span class="review-label svelte-16n7dkv">Bank</span><span class="review-value svelte-16n7dkv"> </span></div>'),root_15$2=from_html('<div class="review-section svelte-16n7dkv"><h3 class="svelte-16n7dkv">Bankdaten</h3> <div class="review-row svelte-16n7dkv"><span class="review-label svelte-16n7dkv">Kontoinhaber</span><span class="review-value svelte-16n7dkv"> </span></div> <div class="review-row svelte-16n7dkv"><span class="review-label svelte-16n7dkv">IBAN</span><span class="review-value svelte-16n7dkv"> </span></div> <!> <!></div>'),root_10$5=from_html('<div class="review-heading svelte-16n7dkv">
2148Bitte überprüfen Sie Ihre Angaben</div> <!> <div class="review-section svelte-16n7dkv"><h3 class="svelte-16n7dkv">Theaterbus-Abo</h3> <div class="review-row svelte-16n7dkv"><span class="review-label svelte-16n7dkv">Abo-Art</span><span class="review-value svelte-16n7dkv"> </span></div> <div class="review-row svelte-16n7dkv"><span class="review-label svelte-16n7dkv">Preisgruppe</span><span class="review-value svelte-16n7dkv"> </span></div> <div class="review-row svelte-16n7dkv"><span class="review-label svelte-16n7dkv">Preisart</span><span class="review-value svelte-16n7dkv"> </span></div> <div class="review-row svelte-16n7dkv"><span class="review-label svelte-16n7dkv">Einstiegsstelle</span><span class="review-value svelte-16n7dkv"> </span></div> <!></div> <!> <!> <div class="review-section svelte-16n7dkv"><h3 class="svelte-16n7dkv">Bestätigungen</h3> <div class="review-row svelte-16n7dkv"><span class="review-label svelte-16n7dkv">SEPA-Einverständnis</span><span class="review-value svelte-16n7dkv">Ja</span></div> <div class="review-row svelte-16n7dkv"><span class="review-label svelte-16n7dkv">AGB</span><span class="review-value svelte-16n7dkv">Akzeptiert</span></div> <div class="review-row svelte-16n7dkv"><span class="review-label svelte-16n7dkv">Newsletter</span><span class="review-value svelte-16n7dkv"> </span></div></div> <div class="button-group svelte-16n7dkv"><button type="button" class="btn-secondary svelte-16n7dkv">Zurück zur Bearbeitung</button> <button type="button" class="btn-primary svelte-16n7dkv"><!></button></div>',1),root_21$3=from_html('<!> <!> <!> <div style="display: grid; grid-template-columns: 1fr 2fr; gap: 16px;"><!> <!></div>',1),root_22$2=from_html("<option> </option>"),root_23$1=from_html("<div> </div>"),root_24$1=from_html('<div class="termin-counter svelte-16n7dkv">Bitte wählen Sie zuerst die Art des Abos</div>'),root_25$1=from_html('<p class="error-message svelte-16n7dkv" style="margin-bottom: 8px;"> </p>'),root_26$1=from_html('<div class="termin-row svelte-16n7dkv"><label class="checkbox-label svelte-16n7dkv"><input type="checkbox" class="svelte-16n7dkv"/> <span class="checkmark svelte-16n7dkv"></span></label> <div class="termin-info svelte-16n7dkv"><strong> </strong> </div></div>'),root_28$1=from_html("<option> </option>"),root_27$1=from_html("<optgroup></optgroup>"),root_20$3=from_html('<form><!> <div class="form-group svelte-16n7dkv"><label for="aboArt"> </label> <select id="aboArt"><option>Bitte wählen …</option><option>3 aus 10</option><option>8 aus 10</option></select></div> <div class="form-group svelte-16n7dkv"><label for="preisgruppe"> </label> <select id="preisgruppe"><option>Bitte wählen …</option><!></select></div> <div class="form-group svelte-16n7dkv"><label for="preisTyp"> </label> <select id="preisTyp"><option>Bitte wählen …</option><option>Normalpreis</option><option>Ermäßigt</option></select></div> <!> <div class="form-group svelte-16n7dkv"><!> <div class="termine-grid svelte-16n7dkv"></div></div> <div class="form-group svelte-16n7dkv"><label for="einstiegsstelle"> </label> <select id="einstiegsstelle"><option>Bitte wählen …</option><!></select></div> <!> <div class="form-group checkbox-wrapper svelte-16n7dkv"><label class="checkbox-label svelte-16n7dkv"><input type="checkbox" class="svelte-16n7dkv"/> <span class="checkmark svelte-16n7dkv"></span> <span>Ich habe bereits eine Einzugsermächtigung erteilt</span></label></div> <!> <div class="form-group checkbox-wrapper svelte-16n7dkv"><label class="checkbox-label svelte-16n7dkv"><input type="checkbox" class="svelte-16n7dkv"/> <span class="checkmark svelte-16n7dkv"></span> <span>Hiermit bestätige ich, dass ich die Abo-Bedingungen und Allgemeinen Geschäftsbedingungen des Staatstheater Augsburg gelesen habe und stimme ihrer Geltung ausdrücklich zu.</span></label></div> <!> <div class="button-group svelte-16n7dkv"><button type="submit" class="btn-primary svelte-16n7dkv"><!></button></div></form>'),root$g=from_html('<div class="form-wrapper"><!></div>');function FormTheaterbus(o,n){push(n,!0);const c=(Ie,qe=noop,Ge=noop,Je=noop,Te=noop,ve)=>{let et=derived_safe_equal(()=>fallback(ve?.(),"text"));var mt=root_1$9(),ht=child(mt),ct=child(ht),Ue=sibling(ht,2);let ot;template_effect(()=>{set_attribute(ht,"for",qe()),set_class(ht,1,clsx(Te()?"rot":""),"svelte-16n7dkv"),set_text(ct,Te()||Ge()),set_attribute(Ue,"id",qe()),set_attribute(Ue,"type",get(et)),set_value(Ue,Je()),ot=set_class(Ue,1,"svelte-16n7dkv",null,ot,{error:Te()})}),delegated("input",Ue,bt=>me(qe(),bt.target.value)),append(Ie,mt)},d=(Ie,qe=noop,Ge=noop,Je=noop,Te=noop,ve)=>{let et=derived_safe_equal(()=>fallback(ve?.(),4));var mt=root_2$9(),ht=child(mt),ct=child(ht),Ue=sibling(ht,2);let ot;template_effect(()=>{set_attribute(ht,"for",qe()),set_class(ht,1,clsx(Te()?"rot":""),"svelte-16n7dkv"),set_text(ct,Te()||Ge()),set_attribute(Ue,"id",qe()),set_value(Ue,Je()),set_attribute(Ue,"rows",get(et)),ot=set_class(Ue,1,"svelte-16n7dkv",null,ot,{error:Te()})}),delegated("input",Ue,bt=>me(qe(),bt.target.value)),append(Ie,mt)};function h(){return termine}function m(){return einstiegsstellen}console.log("appState:",appState);function p(Ie){return/^[0-9]{5}$/.test(Ie)}function w(Ie){const qe=Ie.replace(/\s/g,"").toUpperCase();return/^DE[0-9]{20}$/.test(qe)}function z(Ie){if(!Ie.trim())return!0;const qe=Ie.replace(/\s/g,"").toUpperCase();return/^[A-Z]{6}[A-Z0-9]{2}([A-Z0-9]{3})?$/.test(qe)}let A=state(!1),y=state(""),s=state(!1),e=state(!1),f=prop(n,"embedded",3,!1),g=prop(n,"uuid",3,""),R=prop(n,"adresse",19,()=>({name:"",email:"",strasse:"",plz:"",ort:""})),q=prop(n,"agbAkzeptiert",3,!1),H=prop(n,"agbError",3,""),te=prop(n,"onAGBError",3,void 0),re=prop(n,"setAddressError",3,void 0),ae=prop(n,"onSubmitted",3,void 0),ne=proxy({name:R().name||"",email:R().email||"",strasse:R().strasse||"",plz:R().plz||"",ort:R().ort||"",telefon:R().telefon||"",aboArt:"",preisgruppe:"",preisTyp:"",termine:[],einstiegsstelle:"",kontoinhaber:"",iban:"",bic:"",bankname:"",sepaEinverstaendnis:!1,sepaBereitsErteilt:!1,typ:"theaterbus-abo"});user_effect(()=>{f()&&R()&&(ne.name=R().name||"",ne.email=R().email||"",ne.telefon=R().telefon||"",ne.strasse=R().strasse||"",ne.plz=R().plz||"",ne.ort=R().ort||"")});let oe=state(proxy({name:"",email:"",strasse:"",plz:"",ort:"",aboArt:"",preisgruppe:"",preisTyp:"",termine:"",einstiegsstelle:"",kontoinhaber:"",iban:"",bic:"",bankname:"",sepaEinverstaendnis:"",sepaBereitsErteilt:"",bemerkungen:""}));function le(){return ne.aboArt==="8"?preise8er:preise3er}function ce(){return ne.aboArt==="8"?8:3}function ue(){return ne.termine.length}function he(Ie){ne.termine.includes(Ie)?ne.termine=ne.termine.filter(qe=>qe!==Ie):ne.termine=[...ne.termine,Ie],get(oe).termine&&(get(oe).termine="")}function ge(Ie){ne.aboArt=Ie,ne.preisgruppe="",ne.termine=[],get(oe).aboArt&&(get(oe).aboArt=""),get(oe).preisgruppe&&(get(oe).preisgruppe=""),get(oe).termine&&(get(oe).termine="")}function Oe(){let Ie=!0;const qe={name:"",email:"",strasse:"",plz:"",ort:"",aboArt:"",preisgruppe:"",termine:"",einstiegsstelle:"",kontoinhaber:"",iban:"",bic:"",bankname:"",sepaEinverstaendnis:"",bemerkungen:""};ne.name.trim()===""?(qe.name="Name ist erforderlich",re()?.("name","Name ist erforderlich"),Ie=!1):re()?.("name",""),ne.email.trim()===""?(qe.email="E-Mail ist erforderlich",re()?.("email","E-Mail ist erforderlich"),Ie=!1):/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(ne.email)?re()?.("email",""):(qe.email="Bitte geben Sie eine gültige E-Mail-Adresse ein",re()?.("email","Bitte geben Sie eine gültige E-Mail-Adresse ein"),Ie=!1),ne.strasse.trim()===""?(qe.strasse="Straße ist erforderlich",re()?.("strasse","Straße ist erforderlich"),Ie=!1):re()?.("strasse",""),ne.plz.trim()===""?(qe.plz="PLZ ist erforderlich",re()?.("plz","PLZ ist erforderlich"),Ie=!1):p(ne.plz)?re()?.("plz",""):(qe.plz="Bitte geben Sie eine gültige 5-stellige PLZ ein",re()?.("plz","Bitte geben Sie eine gültige 5-stellige PLZ ein"),Ie=!1),ne.ort.trim()===""?(qe.ort="Ort ist erforderlich",re()?.("ort","Ort ist erforderlich"),Ie=!1):re()?.("ort",""),ne.aboArt===""&&(qe.aboArt="Bitte wählen Sie die Art des Abos",Ie=!1),ne.preisgruppe===""&&(qe.preisgruppe="Bitte wählen Sie eine Preisgruppe",Ie=!1),ne.preisTyp===""&&(qe.preisTyp="Bitte wählen Sie Normalpreis oder Ermäßigt",Ie=!1);const Ge=ce();return ne.termine.length!==Ge&&(qe.termine=`Bitte wählen Sie genau ${Ge} Termine aus`,Ie=!1),ne.einstiegsstelle===""&&(qe.einstiegsstelle="Bitte wählen Sie eine Einstiegsstelle",Ie=!1),ne.sepaBereitsErteilt||(ne.kontoinhaber.trim()===""&&(qe.kontoinhaber="Kontoinhaber ist erforderlich",Ie=!1),ne.iban.trim()===""?(qe.iban="IBAN ist erforderlich",Ie=!1):w(ne.iban)||(qe.iban="Bitte geben Sie eine gültige deutsche IBAN ein (DE + 20 Ziffern)",Ie=!1),ne.bic.trim()!==""&&!z(ne.bic)&&(qe.bic="Bitte geben Sie eine gültige BIC ein (8 oder 11 Zeichen)",Ie=!1),ne.sepaEinverstaendnis||(qe.sepaEinverstaendnis="Ich ermächtige das Staatstheater Augsburg, Zahlungen von meinem Konto mittels Lastschrift einzuziehen. Zugleich weise ich mein Kreditinstitut an, die vom Staatstheater Augsburg auf mein Konto gezogenen Lastschriften einzulösen. Ich nehme zur Kenntnis, dass ich innerhalb von acht Wochen, beginnend mit dem Belastungsdatum, die Erstattung des belasteten Betrages verlangen kann. Es gelten dabei die mit meinem Kreditinstitut vereinbarten Bedingungen.",Ie=!1)),q()?te()?.(""):(te()?.("Bitte bestätigen Sie die Abo-Bedingungen und AGB"),Ie=!1),set(oe,qe,!0),Ie}function $e(Ie){Ie.preventDefault(),Oe()&&set(e,!0)}function Pe(){set(e,!1)}async function Le(Ie){Ie.preventDefault(),set(s,!0);const qe={...ne,iban:ne.iban.replace(/\s/g,"").toUpperCase(),bic:ne.bic?ne.bic.replace(/\s/g,"").toUpperCase():"",uuid:g()},Ge=await fetch("https://staatstheater-augsburg.de/formeingang",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(qe)}),Je=await Ge.text();let Te;
2148try{Te=JSON.parse(Je)}catch{Te=null}set(s,!1),!Ge.ok||!Te||!Te.success?(console.error("Server error:",Ge.status,Je,Te),alert("Fehler beim Speichern: "+(Te?.error||"Server-Fehler "+Ge.status)),set(A,!1)):(set(y,Te.msg||"",!0),set(A,!0),ae()?.(Te.msg||""))}function me(Ie,qe){ne[Ie]=qe,get(oe)[Ie]&&(get(oe)[Ie]="")}user_effect(()=>{window.data=ne});var we=root$g(),Se=child(we);{var ye=Ie=>{successMessage$2(Ie,()=>get(y)||"Vielen Dank! Ihre Anmeldung zum Theaterbus-Abo wurde erfolgreich übermittelt.")},ke=Ie=>{var qe=root_10$5(),Ge=sibling(first_child(qe),2);{var Je=Ot=>{var Dt=root_11$5(),Gt=sibling(child(Dt),2),Ft=sibling(child(Gt)),Pt=child(Ft),qt=sibling(Gt,2),on=sibling(child(qt)),He=child(on),Ve=sibling(qt,2);{var pt=rn=>{var vn=root_12$5(),Yn=sibling(child(vn)),Nn=child(Yn);template_effect(()=>set_text(Nn,ne.telefon)),append(rn,vn)};if_block(Ve,rn=>{ne.telefon&&rn(pt)})}var wt=sibling(Ve,2),nn=sibling(child(wt)),Wt=child(nn),ln=sibling(wt,2),_n=sibling(child(ln)),xn=child(_n);template_effect(()=>{set_text(Pt,ne.name),set_text(He,ne.email),set_text(Wt,ne.strasse),set_text(xn,`${ne.plz??""} ${ne.ort??""}`)}),append(Ot,Dt)};if_block(Ge,Ot=>{f()||Ot(Je)})}var Te=sibling(Ge,2),ve=sibling(child(Te),2),et=sibling(child(ve)),mt=child(et),ht=sibling(ve,2),ct=sibling(child(ht)),Ue=child(ct),ot=sibling(ht,2),bt=sibling(child(ot)),At=child(bt),ft=sibling(ot,2),be=sibling(child(ft)),Et=child(be),St=sibling(ft,2);{var Jt=Ot=>{var Dt=root_13$4(),Gt=sibling(child(Dt)),Ft=child(Gt);template_effect(Pt=>set_text(Ft,Pt),[()=>ne.termine.join(", ")]),append(Ot,Dt)};if_block(St,Ot=>{ne.termine.length>0&&Ot(Jt)})}var Bt=sibling(Te,2);{var Vt=Ot=>{var Dt=root_14$1(),Gt=sibling(child(Dt),2),Ft=child(Gt),Pt=child(Ft);template_effect(()=>set_text(Pt,ne.bemerkungen)),append(Ot,Dt)};if_block(Bt,Ot=>{ne.bemerkungen&&Ot(Vt)})}var Tt=sibling(Bt,2);{var Be=Ot=>{var Dt=root_15$2(),Gt=sibling(child(Dt),2),Ft=sibling(child(Gt)),Pt=child(Ft),qt=sibling(Gt,2),on=sibling(child(qt)),He=child(on),Ve=sibling(qt,2);{var pt=Wt=>{var ln=root_16$3(),_n=sibling(child(ln)),xn=child(_n);template_effect(()=>set_text(xn,ne.bic)),append(Wt,ln)};if_block(Ve,Wt=>{ne.bic&&Wt(pt)})}var wt=sibling(Ve,2);{var nn=Wt=>{var ln=root_17$2(),_n=sibling(child(ln)),xn=child(_n);template_effect(()=>set_text(xn,ne.bankname)),append(Wt,ln)};if_block(wt,Wt=>{ne.bankname&&Wt(nn)})}template_effect(()=>{set_text(Pt,ne.kontoinhaber),set_text(He,ne.iban)}),append(Ot,Dt)};if_block(Tt,Ot=>{ne.sepaBereitsErteilt||Ot(Be)})}var Xe=sibling(Tt,2),Ke=sibling(child(Xe),6),nt=sibling(child(Ke)),xt=child(nt),Mt=sibling(Xe,2),Ye=child(Mt),at=sibling(Ye,2),st=child(at);{var vt=Ot=>{var Dt=text$1("Wird gesendet…");append(Ot,Dt)},gt=Ot=>{var Dt=text$1("Kostenpflichtig bestellen");append(Ot,Dt)};if_block(st,Ot=>{get(s)?Ot(vt):Ot(gt,-1)})}template_effect(()=>{set_text(mt,ne.aboArt==="8"?"8 aus 10":ne.aboArt==="3"?"3 aus 10":ne.aboArt),set_text(Ue,ne.preisgruppe),set_text(At,ne.preisTyp==="normal"?"Normalpreis":ne.preisTyp==="erm"?"Ermäßigt":ne.preisTyp),set_text(Et,ne.einstiegsstelle),set_text(xt,ne.newsletter?"Ja":"Nein"),at.disabled=get(s)}),delegated("click",Ye,Pe),delegated("click",at,Le),append(Ie,qe)},Ae=Ie=>{var qe=root_20$3(),Ge=child(qe);{var Je=dt=>{var lt=root_21$3(),Ct=first_child(lt);c(Ct,()=>"name",()=>"Name, Vorname",()=>ne.name,()=>get(oe).name);var en=sibling(Ct,2);c(en,()=>"email",()=>"E-Mail",()=>ne.email,()=>get(oe).email);var mn=sibling(en,2);c(mn,()=>"strasse",()=>"Straße und Hausnummer",()=>ne.strasse,()=>get(oe).strasse);var fn=sibling(mn,2),In=child(fn);c(In,()=>"plz",()=>"PLZ",()=>ne.plz,()=>get(oe).plz);var Mn=sibling(In,2);c(Mn,()=>"ort",()=>"Ort",()=>ne.ort,()=>get(oe).ort),append(dt,lt)};if_block(Ge,dt=>{f()||dt(Je)})}var Te=sibling(Ge,2),ve=child(Te),et=child(ve),mt=sibling(ve,2);let ht;var ct=child(mt);ct.value=ct.__value="";var Ue=sibling(ct);Ue.value=Ue.__value="3";var ot=sibling(Ue);ot.value=ot.__value="8";var bt;init_select(mt);var At=sibling(Te,2),ft=child(At),be=child(ft),Et=sibling(ft,2);let St;var Jt=child(Et);Jt.value=Jt.__value="";var Bt=sibling(Jt);each(Bt,17,le,index,(dt,lt)=>{var Ct=root_22$2(),en=child(Ct),mn={};template_effect(()=>{set_text(en,`${get(lt).pg??""} — ${get(lt).normal??""} (erm. ${get(lt).erm??""})`),mn!==(mn=get(lt).pg)&&(Ct.value=(Ct.__value=get(lt).pg)??"")}),append(dt,Ct)});var Vt;init_select(Et);var Tt=sibling(At,2),Be=child(Tt),Xe=child(Be),Ke=sibling(Be,2);let nt;var xt=child(Ke);xt.value=xt.__value="";var Mt=sibling(xt);Mt.value=Mt.__value="normal";var Ye=sibling(Mt);Ye.value=Ye.__value="erm";var at;init_select(Ke);var st=sibling(Tt,2);{var vt=dt=>{var lt=root_23$1();let Ct;var en=child(lt);template_effect((mn,fn,In)=>{Ct=set_class(lt,1,"termin-counter svelte-16n7dkv",null,Ct,mn),set_text(en,`Gewählt: ${fn??""} / ${In??""} Termine`)},[()=>({ok:ue()===ce(),error:ue()!==ce()&&get(oe).termine}),ue,ce]),append(dt,lt)},gt=dt=>{var lt=root_24$1();append(dt,lt)};if_block(st,dt=>
2148{ne.aboArt?dt(vt):dt(gt,-1)})}var Ot=sibling(st,2),Dt=child(Ot);{var Gt=dt=>{var lt=root_25$1(),Ct=child(lt);template_effect(()=>set_text(Ct,get(oe).termine)),append(dt,lt)};if_block(Dt,dt=>{get(oe).termine&&dt(Gt)})}var Ft=sibling(Dt,2);each(Ft,21,h,index,(dt,lt)=>{var Ct=root_26$1(),en=child(Ct),mn=child(en),fn=sibling(en,2),In=child(fn),Mn=child(In),nr=sibling(In);template_effect((sr,Rt)=>{set_checked(mn,sr),mn.disabled=Rt,set_text(Mn,get(lt).datum),set_text(nr,`, ${get(lt).zeit??""}, ${get(lt).ort??""} — ${get(lt).titel??""}`)},[()=>ne.termine.includes(get(lt).datum),()=>ne.aboArt===""||!ne.termine.includes(get(lt).datum)&&ue()>=ce()]),delegated("click",mn,()=>he(get(lt).datum)),append(dt,Ct)});var Pt=sibling(Ot,2),qt=child(Pt),on=child(qt),He=sibling(qt,2);let Ve;var pt=child(He);pt.value=pt.__value="";var wt=sibling(pt);each(wt,17,m,index,(dt,lt)=>{var Ct=root_27$1();each(Ct,21,()=>get(lt).options,index,(en,mn)=>{var fn=root_28$1(),In=child(fn),Mn={};template_effect(()=>{set_text(In,get(mn)),Mn!==(Mn=get(mn))&&
2148(fn.value=(fn.__value=get(mn))??"")}),append(en,fn)}),template_effect(()=>set_attribute(Ct,"label",get(lt).group)),append(dt,Ct)});var nn;init_select(He);var Wt=sibling(Pt,2);d(Wt,()=>"bemerkungen",()=>"Bemerkungen (Sitzplatzwünsche u.dgl.)",()=>ne.bemerkungen,()=>get(oe).bemerkungen);var ln=sibling(Wt,2),_n=child(ln),xn=child(_n),rn=sibling(ln,2);{var vn=dt=>{FormularSEPA(dt,{get data(){return ne},get errors(){return get(oe)}})};if_block(rn,dt=>{ne.sepaBereitsErteilt||dt(vn)})}var Yn=sibling(rn,2),Nn=child(Yn),gn=child(Nn),pr=sibling(gn,4),Ln=sibling(Yn,2);checkbox$2(Ln,()=>ne.newsletter,()=>'Ich möchte den Newsletter erhalten. <a href="/datenschutz">Informationen zum Datenschutz</a>',()=>()=>ne.newsletter=!ne.newsletter);var Xn=sibling(Ln,2),Tr=child(Xn),De=child(Tr);{var Ze=dt=>{var lt=text$1("Wird gesendet…");append(dt,lt)},_t=dt=>{var lt=text$1("Weiter zum Überprüfen ihrer Bestellung");append(dt,lt)};if_block(De,dt=>{get(s)?dt(Ze):dt(_t,-1)})}template_effect(()=>{set_class(ve,1,clsx(get(oe).aboArt?"rot":""),"svelte-16n7dkv"),set_text(et,get(oe).aboArt||"Art des Theaterbus-Abo"),ht=set_class(mt,1,"svelte-16n7dkv",null,ht,{error:get(oe).aboArt}),bt!==(bt=ne.aboArt)&&(mt.value=(mt.__value=ne.aboArt)??"",select_option(mt,ne.aboArt)),set_class(ft,1,clsx(get(oe).preisgruppe?"rot":""),"svelte-16n7dkv"),set_text(be,get(oe).preisgruppe||"Preisgruppe"),Et.disabled=ne.aboArt==="",St=set_class(Et,1,"svelte-16n7dkv",null,St,{error:get(oe).preisgruppe}),Vt!==(Vt=ne.preisgruppe)&&(Et.value=(Et.__value=ne.preisgruppe)??"",select_option(Et,ne.preisgruppe)),set_class(Be,1,clsx(get(oe).preisTyp?"rot":""),"svelte-16n7dkv"),set_text(Xe,get(oe).preisTyp||"Preisart"),Ke.disabled=ne.preisgruppe==="",nt=set_class(Ke,1,"svelte-16n7dkv",null,nt,{error:get(oe).preisTyp}),at!==(at=ne.preisTyp)&&(Ke.value=(Ke.__value=ne.preisTyp)??"",select_option(Ke,ne.preisTyp)),set_class(qt,1,clsx(get(oe).einstiegsstelle?"rot":""),"svelte-16n7dkv"),set_text(on,get(oe).einstiegsstelle||"Einstiegsstelle"),Ve=set_class(He,1,"svelte-16n7dkv",null,Ve,{error:get(oe).einstiegsstelle}),nn!==(nn=ne.einstiegsstelle)&&(He.value=(He.__value=ne.einstiegsstelle)??"",select_option(He,ne.einstiegsstelle)),set_checked(xn,ne.sepaBereitsErteilt),set_checked(gn,q()),set_class(pr,1,clsx(H()?"rot":""),"svelte-16n7dkv"),Tr.disabled=get(s)}),event("submit",qe,$e),delegated("change",mt,dt=>ge(dt.currentTarget.value)),delegated("change",Et,dt=>{ne.preisgruppe=dt.currentTarget.value,get(oe).preisgruppe&&(get(oe).preisgruppe="")}),delegated("change",Ke,dt=>{ne.preisTyp=dt.currentTarget.value,get(oe).preisTyp&&(get(oe).preisTyp="")}),delegated("change",He,dt=>{ne.einstiegsstelle=dt.currentTarget.value,get(oe).einstiegsstelle&&(get(oe).einstiegsstelle="")}),delegated("click",xn,()=>{ne.sepaBereitsErteilt=!ne.sepaBereitsErteilt,get(oe).sepaBereitsErteilt&&(get(oe).sepaBereitsErteilt="")}),delegated("click",gn,function(...dt){n.onToggleAGB?.apply(this,dt)}),append(Ie,qe)};if_block(Se,Ie=>{get(A)?Ie(ye):get(e)?Ie(ke,1):Ie(Ae,-1)})}append(o,we),pop()}delegate(["input","click","change"]);const checkbox$1=(o,n=noop,c=noop,d=noop,h)=>{let m=derived_safe_equal(()=>fallback(h?.(),""));var p=root_3$7(),w=child(p),z=child(w),A=sibling(z,4);html(A,()=>get(m)||c(),!0),template_effect(()=>{set_checked(z,n()),set_class(A,1,clsx(get(m)?"rot":""),"svelte-19jx214")}),delegated("click",z,function(...y){d()?.apply(this,y)}),append(o,p)},successMessage$1=(o,n=noop)=>{var c=root_4$7(),d=sibling(child(c),2),h=child(d);template_effect(()=>set_text(h,n())),append(o,c)};var root_1$8=from_html('<div class="form-group svelte-19jx214"><label> </label> <input/></div>'),root_2$8=from_html('<div class="form-group svelte-19jx214"><label> </label> <textarea></textarea></div>'),root_3$7=from_html('<div class="form-group checkbox-wrapper svelte-19jx214"><label class="checkbox-label svelte-19jx214"><input type="checkbox" class="svelte-19jx214"/> <span class="checkmark svelte-19jx214"></span> <span></span></label></div>'),root_4$7=from_html('<div class="success-message svelte-19jx214"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor"><path d="M20 6L9 17l-5-5" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg> <p> </p></div>'),root_5$6=from_html('<div class="button-group svelte-19jx214"><button type="submit" class="btn-primary svelte-19jx214"><!></button></div>'),root_12$4=from_html('<div class="review-row svelte-19jx214"><span class="review-label svelte-19jx214">Telefon</span><span class="review-value svelte-19jx214"> </span></div>'),root_11$4=from_html('<div class="review-section svelte-19jx214"><h3 class="svelte-19jx214">Persönliche Daten</h3> <div class="review-row svelte-19jx214"><span class="review-label svelte-19jx214">
2148Name</span><span class="review-value svelte-19jx214"> </span></div> <div class="review-row svelte-19jx214"><span class="review-label svelte-19jx214">E-Mail</span><span class="review-value svelte-19jx214"> </span></div> <!> <div class="review-row svelte-19jx214"><span class="review-label svelte-19jx214">Straße</span><span class="review-value svelte-19jx214"> </span></div> <div class="review-row svelte-19jx214"><span class="review-label svelte-19jx214">PLZ / Ort</span><span class="review-value svelte-19jx214"> </span></div></div>'),root_15$1=from_html('<div class="review-row svelte-19jx214"><span class="review-label svelte-19jx214"> </span> <span class="review-value svelte-19jx214"> </span></div>'),root_16$2=from_html('<div class="review-row svelte-19jx214" style="border-top: 2px solid #e1e8ed; margin-top: 8px; padding-top: 10px;"><span class="review-label svelte-19jx214">Gesamtsumme</span> <span class="review-value svelte-19jx214"> </span></div>'),root_13$3=from_html('<div class="review-section svelte-19jx214"><h3 class="svelte-19jx214">Tickets</h3> <!> <!></div>'),root_17$1=from_html('<div class="review-row svelte-19jx214"><span class="review-label svelte-19jx214">Bemerkungen</span><span class="review-value svelte-19jx214"> </span></div>'),root_19$2=from_html('<div class="review-row svelte-19jx214"><span class="review-label svelte-19jx214">BIC</span><span class="review-value svelte-19jx214"> </span></div>'),root_20$2=from_html('<div class="review-row svelte-19jx214"><span class="review-label svelte-19jx214">Bank</span><span class="review-value svelte-19jx214"> </span></div>'),root_18$2=from_html('<div class="review-section svelte-19jx214"><h3 class="svelte-19jx214">Bankdaten</h3> <div class="review-row svelte-19jx214"><span class="review-label svelte-19jx214">Kontoinhaber</span><span class="review-value svelte-19jx214"> </span></div> <div class="review-row svelte-19jx214"><span class="review-label svelte-19jx214">IBAN</span><span class="review-value svelte-19jx214"> </span></div> <!> <!></div>'),root_21$2=from_html('<div class="review-row svelte-19jx214"><span class="review-label svelte-19jx214">SEPA-Einverständnis</span><span class="review-value svelte-19jx214">Ja</span></div>'),root_10$4=from_html('<div class="review-heading svelte-19jx214">Bitte überprüfen Sie Ihre Angaben</div> <!> <!> <div class="review-section svelte-19jx214"><h3 class="svelte-19jx214">Bus & Bemerkungen</h3> <div class="review-row svelte-19jx214"><span class="review-label svelte-19jx214">Einstiegsstelle</span><span class="review-value svelte-19jx214"> </span></div> <!></div> <!> <div class="review-section svelte-19jx214"><h3 class="svelte-19jx214">Bestätigungen</h3> <div class="review-row svelte-19jx214"><span class="review-label svelte-19jx214">AGB</span><span class="review-value svelte-19jx214">Akzeptiert</span></div> <div class="review-row svelte-19jx214"><span class="review-label svelte-19jx214">Newsletter</span><span class="review-value svelte-19jx214"> </span></div> <!></div> <div class="button-group svelte-19jx214"><button type="button" class="btn-secondary svelte-19jx214">Zurück zur Bearbeitung</button> <button type="button" class="btn-primary svelte-19jx214"><!></button></div>',1),root_25=from_html('<!> <!> <!> <!> <div style="display: grid; grid-template-columns: 1fr 2fr; gap: 16px;"><!> <!></div>',1),root_27=from_html('<option class="termin-option svelte-19jx214"> </option>'),root_28=from_html("<option> </option>"),root_29=from_html('<button type="button" class="remove-ticket-btn svelte-19jx214">✕</button>'),root_30=from_html('<div class="ticket-preis svelte-19jx214"> </div>'),root_26=from_html('<div class="ticket-row svelte-19jx214"><select><option>Vorstellung …</option><!></select> <input style="width: 80px" type="number" min="1" max="99"/> <select><option>PG …</option><!></select> <select class="svelte-19jx214"><option>Normal</option><option>Ermäßigt</option></select> <!></div> <!>',1),root_31=from_html('<div class="preis-anzeige svelte-19jx214">Gesamtsumme: <strong> </strong></div>'),root_33=from_html("<option> </option>"),root_32=from_html("<optgroup></optgroup>"),root_24=from_html('<form><!> <div class="form-group svelte-19jx214"><label> </label> <div class="ticket-list svelte-19jx214"></div> <button type="button" class="add-ticket-btn svelte-19jx214">+ Weiteres Ticket hinzufügen</button></div> <!> <div class="form-group svelte-19jx214"><label for="einstiegsstelle"> </label> <select id="einstiegsstelle"><option>Bitte wählen …</option><!></select></div> <!> <div class="form-group checkbox-wrapper svelte-19jx214"><label class="checkbox-label svelte-19jx214"><input type="checkbox" class="svelte-19jx214"/> <span class="checkmark svelte-19jx214"></span> <span>Ich habe bereits eine Einzugsermächtigung erteilt</span></label></div> <!> <div class="form-group checkbox-wrapper svelte-19jx214"><label class="checkbox-label svelte-19jx214"><input type="checkbox" class="svelte-19jx214"/> <span class="checkmark svelte-19jx214"></span> <span>Hiermit bestätige ich, dass ich die Abo-Bedingungen und Allgemeinen Geschäftsbedingungen des Staatstheater Augsburg gelesen habe und stimme ihrer Geltung ausdrücklich zu.</span></label></div> <!> <!></form>'),root$f=from_html('<div class="form-wrapper"><!></div>');function FormTheaterbusEinzeln(o,n){push(n,!0);const c=(Te,ve=noop,et=noop,mt=noop,ht=noop,ct)=>{let Ue=derived_safe_equal(()=>fallback(ct?.(),"text"));var ot=root_1$8(),bt=child(ot),At=child(bt),ft=sibling(bt,2);let be;template_effect(()=>
2148{set_attribute(bt,"for",ve()),set_class(bt,1,clsx(ht()?"rot":""),"svelte-19jx214"),set_text(At,ht()||et()),set_attribute(ft,"id",ve()),set_attribute(ft,"type",get(Ue)),set_value(ft,mt()),be=set_class(ft,1,"svelte-19jx214",null,be,{error:ht()})}),delegated("input",ft,Et=>ke(ve(),Et.target.value)),append(Te,ot)},d=(Te,ve=noop,et=noop,mt=noop,ht=noop,ct)=>{let Ue=derived_safe_equal(()=>fallback(ct?.(),4));var ot=root_2$8(),bt=child(ot),At=child(bt),ft=sibling(bt,2);let be;template_effect(()=>{set_attribute(bt,"for",ve()),set_class(bt,1,clsx(ht()?"rot":""),"svelte-19jx214"),set_text(At,ht()||et()),set_attribute(ft,"id",ve()),set_value(ft,mt()),set_attribute(ft,"rows",get(Ue)),be=set_class(ft,1,"svelte-19jx214",null,be,{error:ht()})}),delegated("input",ft,Et=>ke(ve(),Et.target.value)),append(Te,ot)},h=(Te,ve=noop)=>{var et=root_5$6(),mt=child(et),ht=child(mt);{var ct=ot=>{var bt=text$1("Wird gesendet…");append(ot,bt)},Ue=ot=>{var bt=text$1();template_effect(()=>set_text(bt,ve())),append(ot,bt)};if_block(ht,ot=>{get(f)?ot(ct):ot(Ue,-1)})}template_effect(()=>mt.disabled=get(f)),append(Te,et)};function m(){return termine}function p(){return einstiegsstellen}console.log("appState:",appState);function w(Te){return(Te/100).toLocaleString("de-DE")+",–"}function z(Te){return/^[0-9]{5}$/.test(Te)}function A(Te){const ve=Te.replace(/\s/g,"").toUpperCase();return/^DE[0-9]{20}$/.test(ve)}function y(Te){if(!Te.trim())return!0;const ve=Te.replace(/\s/g,"").toUpperCase();return/^[A-Z]{6}[A-Z0-9]{2}([A-Z0-9]{3})?$/.test(ve)}let s=state(!1),e=state(""),f=state(!1),g=state(!1),R=prop(n,"embedded",3,!1),q=prop(n,"uuid",3,""),H=prop(n,"adresse",19,()=>({name:"",email:"",strasse:"",plz:"",ort:""})),te=prop(n,"agbAkzeptiert",3,!1),re=prop(n,"agbError",3,""),ae=prop(n,"onAGBError",3,void 0),ne=prop(n,"setAddressError",3,void 0),oe=prop(n,"onSubmitted",3,void 0),le=proxy({name:H().name||"",email:H().email||"",strasse:H().strasse||"",plz:H().plz||"",ort:H().ort||"",telefon:"",tickets:[{datum:"",anzahl:1,preisgruppe:"",preisTyp:"normal"}],einstiegsstelle:"",kontoinhaber:"",iban:"",bic:"",bankname:"",sepaEinverstaendnis:!1,sepaBereitsErteilt:!1,newsletter:!1,typ:"theaterbus-einzel"});user_effect(()=>{R()&&H()&&(le.name=H().name||"",le.email=H().email||"",le.telefon=H().telefon||"",le.strasse=H().strasse||"",le.plz=H().plz||"",le.ort=H().ort||"")});let ce=state(proxy({name:"",email:"",telefon:"",strasse:"",plz:"",ort:"",tickets:"",einstiegsstelle:"",kontoinhaber:"",iban:"",bic:"",bankname:"",sepaEinverstaendnis:"",sepaBereitsErteilt:"",bemerkungen:""}));function ue(Te){const ve=termine.find(et=>et.datum===Te);return ve?ve.titel:""}function he(Te){const ve=termine.find(ht=>ht.datum===Te);return ve?getPreisProKarte(ve.titel,"PG1","normal")?["PG1","PG2","PG3","PG4","PG5","PG6"].filter(ht=>getPreisProKarte(ve.titel,ht,"normal")>0):[]:[]}function ge(Te){const ve=ue(Te.datum);return!ve||!Te.preisgruppe?0:getPreisProKarte(ve,Te.preisgruppe,Te.preisTyp)*(Te.anzahl||0)}function Oe(){return le.tickets.reduce((Te,ve)=>Te+ge(ve),0)}function $e(){le.tickets=[...le.tickets,{datum:"",anzahl:1,preisgruppe:"",preisTyp:"normal"}]}function Pe(Te){le.tickets=le.tickets.filter((ve,et)=>et!==Te)}function Le(Te,ve,et){le.tickets=le.tickets.map((mt,ht)=>{if(ht!==Te)return mt;const ct={...mt,[ve]:et};return ve==="datum"&&(ct.preisgruppe=""),ct}),get(ce).tickets&&(get(ce).tickets="")}function me(){let Te=!0;const ve={name:"",email:"",telefon:"",strasse:"",plz:"",ort:"",tickets:"",einstiegsstelle:"",kontoinhaber:"",iban:"",bic:"",bankname:"",sepaEinverstaendnis:"",bemerkungen:""};return le.name.trim()===""?(ve.name="Name ist erforderlich",ne()?.("name","Name ist erforderlich"),Te=!1):ne()?.("name",""),le.email.trim()===""?(ve.email="E-Mail ist erforderlich",ne()?.("email","E-Mail ist erforderlich"),Te=!1):/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(le.email)?ne()?.("email",""):(ve.email="Bitte geben Sie eine gültige E-Mail-Adresse ein",ne()?.("email","Bitte geben Sie eine gültige E-Mail-Adresse ein"),Te=!1),le.strasse.trim()===""?(ve.strasse="Straße ist erforderlich",ne()?.("strasse","Straße ist erforderlich"),Te=!1):ne()?.("strasse",""),le.plz.trim()===""?(ve.plz="PLZ ist erforderlich",ne()?.("plz","PLZ ist erforderlich"),Te=!1):z(le.plz)?ne()?.("plz",""):(ve.plz="Bitte geben Sie eine gültige 5-stellige PLZ ein",ne()?.("plz","Bitte geben Sie eine gültige 5-stellige PLZ ein"),Te=!1),le.ort.trim()===""?(ve.ort="Ort ist erforderlich",ne()?.("ort","Ort ist erforderlich"),Te=!1):ne()?.("ort",""),le.tickets.some(mt=>mt.datum!==""&&mt.preisgruppe!=="")?le.tickets.some(mt=>mt.preisgruppe==="")?(ve.tickets="Bitte wählen Sie für alle Tickets eine Preisgruppe aus",Te=!1):le.tickets.some(mt=>mt.anzahl<1||mt.anzahl>99)&&(ve.tickets="Bitte geben Sie für jedes Ticket eine gültige Anzahl ein (1–99)",Te=!1):(ve.tickets="Bitte wählen Sie mindestens ein Ticket aus",Te=!1),le.einstiegsstelle===""&&(ve.einstiegsstelle="Bitte wählen Sie eine Einstiegsstelle",Te=!1),le.sepaBereitsErteilt||(le.kontoinhaber.trim()===""&&(ve.kontoinhaber="Kontoinhaber ist erforderlich",Te=!1),le.iban.trim()===""?(ve.iban="IBAN ist erforderlich",Te=!1):A(le.iban)||(ve.iban="Bitte geben Sie eine gültige deutsche IBAN ein (DE + 20 Ziffern)",Te=!1),le.bic.trim()!==""&&!y(le.bic)&&(ve.bic="Bitte geben Sie eine gültige BIC ein (8 oder 11 Zeichen)",Te=!1),le.sepaEinverstaendnis||(ve.sepaEinverstaendnis="Ich ermächtige das Staatstheater Augsburg, Zahlungen von meinem Konto mittels Lastschrift einzuziehen. Zugleich weise ich mein Kreditinstitut an, die vom Staatstheater Augsburg auf mein Konto gezogenen Lastschriften einzulösen. Ich nehme zur Kenntnis, dass ich innerhalb von acht Wochen, beginnend mit dem Belastungsdatum, die Erstattung des belasteten Betrages verlangen kann. Es gelten dabei die mit meinem Kreditinstitut vereinbarten Bedingungen.",Te=!1)),te()?ae()?.(""):(ae()?.("Bitte bestätigen Sie die Abo-Bedingungen und AGB"),Te=!1),set(ce,ve,!0),Te}function we(Te){Te.preventDefault(),me()&&set(g,!0)}function Se(){set(g,!1)}async function ye(Te){if(Te.preventDefault(),me()){set(f,!0);const ve={...le,gesamtpreis:w(Oe()),iban:le.iban.replace(/\s/g,"").toUpperCase(),bic:le.bic?le.bic.replace(/\s/g,"").toUpperCase():"",uuid:q()},et=await fetch("https://staatstheater-augsburg.de/formeingang",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(ve)}),mt=await et.text();let ht;try{ht=JSON.parse(mt)}catch{ht=null}!et.ok||!ht||!ht.success?(console.error("Server error:",et.status,mt,ht),alert("Fehler beim Speichern: "+(ht?.error||"Server-Fehler "+et.status)),set(s,!1),set(f,!1)):(set(e,ht.msg||"",!0),set(s,!0),oe()?.(ht.msg||""),set(f,!1))}}function ke(Te,ve){le[Te]=ve,get(ce)[Te]&&(get(ce)[Te]="")}user_effect(()=>{window.data=le});var Ae=root$f(),Ie=child(Ae);{var qe=Te=>{successMessage$1(Te,()=>get(e)||"Vielen Dank! Ihre Kartenbestellung wurde erfolgreich übermittelt.")},Ge=Te=>{var ve=root_10$4(),et=sibling(first_child(ve),2);{var mt=vt=>{var gt=root_11$4(),Ot=sibling(child(gt),2),Dt=sibling(child(Ot)),Gt=child(Dt),Ft=sibling(Ot,2),Pt=sibling(child(Ft)),qt=child(Pt),on=sibling(Ft,2);{var He=_n=>{var xn=root_12$4(),rn=sibling(child(xn)),vn=child(rn);template_effect(()=>set_text(vn,le.telefon)),append(_n,xn)};if_block(on,_n=>{le.telefon&&_n(He)})}var Ve=sibling(on,2),pt=sibling(child(Ve)),wt=child(pt),nn=sibling(Ve,2),Wt=sibling(child(nn)),ln=child(Wt);template_effect(()=>{set_text(Gt,le.name),set_text(qt,le.email),set_text(wt,le.strasse),set_text(ln,`${le.plz??""} ${le.ort??""}`)}),append(vt,gt)};if_block(et,vt=>{R()||vt(mt)})}var ht=sibling(et,2);{var ct=vt=>{var gt=root_13$3(),Ot=sibling(child(gt),2);each(Ot,17,()=>le.tickets,index,(Pt,qt)=>{var on=comment$1(),He=first_child(on);{var Ve=pt=>{var wt=root_15$1(),nn=child(wt),Wt=child(nn),ln=sibling(nn,2),_n=child(ln);template_effect((xn,rn)=>{set_text(Wt,`${xn??""} (${get(qt).datum??""}) — ${get(qt).preisgruppe??""}, ${get(qt).preisTyp==="erm"?"Ermäßigt":"Normal"} × ${get(qt).anzahl??""}`),set_text(_n,rn)},[()=>ue(get(qt).datum),()=>w(ge(get(qt)))]),append(pt,wt)};if_block(He,pt=>{get(qt).datum!==""&&get(qt).preisgruppe!==""&&pt(Ve)})}append(Pt,on)});var Dt=sibling(Ot,2);{var Gt=Pt=>{var qt=root_16$2(),on=sibling(child(qt),2),He=child(on);template_effect(Ve=>set_text(He,Ve),[()=>w(Oe())]),append(Pt,qt)},Ft=user_derived(()=>Oe()>0);if_block(Dt,Pt=>{get(Ft)&&Pt(Gt)})}append(vt,gt)},Ue=user_derived(()=>le.tickets.some(vt=>vt.datum!==""&&vt.preisgruppe!==""));if_block(ht,vt=>{get(Ue)&&vt(ct)})}var ot=sibling(ht,2),bt=sibling(child(ot),2),At=sibling(child(bt)),ft=child(At),be=sibling(bt,2);{var Et=vt=>{var gt=root_17$1(),Ot=sibling(child(gt)),Dt=child(Ot);template_effect(()=>set_text(Dt,le.bemerkungen)),append(vt,gt)};if_block(be,vt=>{le.bemerkungen&&vt(Et)})}var St=sibling(ot,2);{var Jt=vt=>{var gt=root_18$2(),Ot=sibling(child(gt),2),Dt=sibling(child(Ot)),Gt=child(Dt),Ft=sibling(Ot,2),Pt=sibling(child(Ft)),qt=child(Pt),on=sibling(Ft,2);{var He=wt=>{var nn=root_19$2(),Wt=sibling(child(nn)),ln=child(Wt);template_effect(()=>set_text(ln,le.bic)),append(wt,nn)};if_block(on,wt=>{le.bic&&wt(He)})}var Ve=sibling(on,2);{var pt=wt=>{var nn=root_20$2(),Wt=sibling(child(nn)),ln=child(Wt);template_effect(()=>set_text(ln,le.bankname)),append(wt,nn)};if_block(Ve,wt=>{le.bankname&&wt(pt)})}template_effect(()=>{set_text(Gt,le.kontoinhaber),set_text(qt,le.iban)}),append(vt,gt)};if_block(St,vt=>{le.sepaBereitsErteilt||vt(Jt)})}var Bt=sibling(St,2),Vt=sibling(child(Bt),4),Tt=sibling(child(Vt)),Be=child(Tt),Xe=sibling(Vt,2);{var Ke=vt=>{var gt=root_21$2();append(vt,gt)};if_block(Xe,vt=>{le.sepaBereitsErteilt||vt(Ke)})}var nt=sibling(Bt,2),xt=child(nt),Mt=sibling(xt,2),Ye=child(Mt);{var at=vt=>{var gt=text$1("Wird gesendet…");append(vt,gt)},st=vt=>{var gt=text$1("Kostenpflichtig bestellen");append(vt,gt)};if_block(Ye,vt=>{get(f)?vt(at):vt(st,-1)})}template_effect(()=>{set_text(ft,le.einstiegsstelle),set_text(Be,le.newsletter?"Ja":"Nein"),Mt.disabled=get(f)}),delegated("click",xt,Se),delegated("click",Mt,ye),append(Te,ve)},Je=Te=>{var ve=root_24(),et=child(ve);{var mt=Ft=>{var Pt=root_25(),qt=first_child(Pt);c(qt,()=>"name",()=>"Name, Vorname",()=>le.name,()=>get(ce).name);var on=sibling(qt,2);c(on,()=>"email",()=>"E-Mail",()=>le.email,()=>get(ce).email);var He=sibling(on,2);c(He,()=>"telefon",()=>"Telefon (optional)",()=>le.telefon,()=>get(ce).telefon);var Ve=sibling(He,2);c(Ve,()=>"strasse",()=>"Straße und Hausnummer",()=>le.strasse,()=>get(ce).strasse);var pt=sibling(Ve,2),wt=child(pt);c(wt,()=>"plz",()=>"PLZ",()=>le.plz,()=>get(ce).plz);var nn=sibling(wt,2);c(nn,()=>"ort",()=>"Ort",()=>le.ort,()=>get(ce).ort),append(Ft,Pt)};if_block(et,Ft=>{R()||Ft(mt)})}var ht=sibling(et,2),ct=child(ht),Ue=child(ct),ot=sibling(ct,2);each(ot,21,()=>le.tickets,index,(Ft,Pt,qt)=>{var on=root_26(),He=first_child(on),Ve=child(He);let pt;var wt=child(Ve);wt.value=wt.__value="";var nn=sibling(wt);each(nn,17,m,index,(lt,Ct)=>{var en=root_27(),mn=child(en),fn={};template_effect(()=>{set_text(mn,`${get(Ct).datum??""}, ${get(Ct).zeit??""} — ${get(Ct).titel??""}`),fn!==(fn=get(Ct).datum)&&(en.value=(en.__value=get(Ct).datum)??"")}),append(lt,en)});var Wt;init_select(Ve);var ln=sibling(Ve,2);let _n;var xn=sibling(ln,2);let rn;var vn=child(xn);vn.value=vn.__value="";var Yn=sibling(vn);each(Yn,17,()=>he(get(Pt).datum),index,(lt,Ct)=>
2148{var en=root_28(),mn=child(en),fn={};template_effect(()=>{set_text(mn,get(Ct)),fn!==(fn=get(Ct))&&(en.value=(en.__value=get(Ct))??"")}),append(lt,en)});var Nn;init_select(xn);var gn=sibling(xn,2),pr=child(gn);pr.value=pr.__value="normal";var Ln=sibling(pr);Ln.value=Ln.__value="erm";var Xn;init_select(gn);var Tr=sibling(gn,2);{var De=lt=>{var Ct=root_29();delegated("click",Ct,()=>Pe(qt)),append(lt,Ct)};if_block(Tr,lt=>{le.tickets.length>1&&lt(De)})}var Ze=sibling(He,2);{var _t=lt=>{var Ct=root_30(),en=child(Ct);template_effect((mn,fn)=>set_text(en,`${get(Pt).anzahl??""} × ${mn??""} = ${fn??""}`),[()=>w(getPreisProKarte(ue(get(Pt).datum),get(Pt).preisgruppe,get(Pt).preisTyp)),()=>w(ge(get(Pt)))]),append(lt,Ct)},dt=user_derived(()=>ge(get(Pt))>0);if_block(Ze,lt=>{get(dt)&&lt(_t)})}template_effect(()=>{pt=set_class(Ve,1,"svelte-19jx214",null,pt,{error:get(ce).tickets}),Wt!==(Wt=get(Pt).datum)&&(Ve.value=(Ve.__value=get(Pt).datum)??"",select_option(Ve,get(Pt).datum)),set_value(ln,get(Pt).anzahl),_n=set_class(ln,1,"svelte-19jx214",null,_n,{error:get(ce).tickets}),xn.disabled=get(Pt).datum==="",rn=set_class(xn,1,"svelte-19jx214",null,rn,{error:get(ce).tickets}),Nn!==(Nn=get(Pt).preisgruppe)&&(xn.value=(xn.__value=get(Pt).preisgruppe)??"",select_option(xn,get(Pt).preisgruppe)),Xn!==(Xn=get(Pt).preisTyp)&&(gn.value=(gn.__value=get(Pt).preisTyp)??"",select_option(gn,get(Pt).preisTyp))}),delegated("change",Ve,lt=>Le(qt,"datum",lt.currentTarget.value)),delegated("input",ln,lt=>Le(qt,"anzahl",parseInt(lt.target.value)||1)),delegated("change",xn,lt=>Le(qt,"preisgruppe",lt.currentTarget.value)),delegated("change",gn,lt=>Le(qt,"preisTyp",lt.currentTarget.value)),append(Ft,on)});var bt=sibling(ot,2),At=sibling(ht,2);{var ft=Ft=>{var Pt=root_31(),qt=sibling(child(Pt)),on=child(qt);template_effect(He=>set_text(on,He),[()=>w(Oe())]),append(Ft,Pt)},be=user_derived(()=>Oe()>0);if_block(At,Ft=>{get(be)&&Ft(ft)})}var Et=sibling(At,2),St=child(Et),Jt=child(St),Bt=sibling(St,2);let Vt;var Tt=child(Bt);Tt.value=Tt.__value="";var Be=sibling(Tt);each(Be,17,p,index,(Ft,Pt)=>{var qt=root_32();each(qt,21,()=>get(Pt).options,index,(on,He)=>{var Ve=root_33(),pt=child(Ve),wt={};template_effect(()=>{set_text(pt,get(He)),wt!==(wt=get(He))&&(Ve.value=(Ve.__value=get(He))??"")}),append(on,Ve)}),template_effect(()=>set_attribute(qt,"label",get(Pt).group)),append(Ft,qt)});var Xe;init_select(Bt);var Ke=sibling(Et,2);d(Ke,()=>"bemerkungen",()=>"Bemerkungen (Sitzplatzwünsche u.dgl.)",()=>le.bemerkungen,()=>get(ce).bemerkungen);var nt=sibling(Ke,2),xt=child(nt),Mt=child(xt),Ye=sibling(nt,2);{var at=Ft=>{FormularSEPA(Ft,{get data(){return le},get errors(){return get(ce)}})};if_block(Ye,Ft=>{le.sepaBereitsErteilt||Ft(at)})}var st=sibling(Ye,2),vt=child(st),gt=child(vt),Ot=sibling(gt,4),Dt=sibling(st,2);checkbox$1(Dt,()=>le.newsletter,()=>'Ich möchte den Newsletter erhalten. <a href="/datenschutz">Informationen zum Datenschutz</a>',()=>()=>le.newsletter=!le.newsletter);var Gt=sibling(Dt,2);h(Gt,()=>"Weiter zum Überprüfen ihrer Bestellung"),template_effect(()=>{set_class(ct,1,clsx(get(ce).tickets?"rot":""),"svelte-19jx214"),set_text(Ue,get(ce).tickets||" "),set_class(St,1,clsx(get(ce).einstiegsstelle?"rot":""),"svelte-19jx214"),set_text(Jt,get(ce).einstiegsstelle||"Einstiegsstelle"),Vt=set_class(Bt,1,"svelte-19jx214",null,Vt,{error:get(ce).einstiegsstelle}),Xe!==(Xe=le.einstiegsstelle)&&(Bt.value=(Bt.__value=le.einstiegsstelle)??"",select_option(Bt,le.einstiegsstelle)),set_checked(Mt,le.sepaBereitsErteilt),set_checked(gt,te()),set_class(Ot,1,clsx(re()?"rot":""),"svelte-19jx214")}),event("submit",ve,we),delegated("click",bt,$e),delegated("change",Bt,Ft=>{le.einstiegsstelle=Ft.currentTarget.value,get(ce).einstiegsstelle&&(get(ce).einstiegsstelle="")}),delegated("click",Mt,()=>{le.sepaBereitsErteilt=!le.sepaBereitsErteilt,get(ce).sepaBereitsErteilt&&(get(ce).sepaBereitsErteilt="")}),delegated("click",gt,function(...Ft){n.onToggleAGB?.apply(this,Ft)}),append(Te,ve)};if_block(Ie,Te=>{get(s)?Te(qe):get(g)?Te(Ge,1):Te(Je,-1)})}append(o,Ae),pop()}delegate(["input","click","change"]);const abomat={abos:[{name:"Starter-Abo",sparte:0,vollname:"Starter-Abo",zielgruppe:1,zahl:5,sitzplatz:1,wochentag:0,premieren:0,einsparung:20,bus:0,ort:0,text:`2 Musiktheater
21492 Schauspiel
21501 Ballett`,preise:`###### Preise{class=preise}
2151|      |       |       |       |      |
2152|------|-------|-------|-------|------|
2153|      | PG1:  | PG2:  | PG3:  | PG4: |
2154|      | 207,– | 173,– | 135,– | 87,– |
2155| erm. | 146,– | 123,– |  96,– | 62,– |`},{name:"Abo Dienstag",sparte:0,vollname:"Dienstagsabo",zielgruppe:1,zahl:10,sitzplatz:1,wochentag:2,premieren:0,einsparung:25,bus:0,ort:0,text:`2 Musiktheater
21566 Schauspiel
21572 Ballett`,preise:`###### Preise{class=preise}
2158  |      |       |       |       |       |
2159  |------|-------|-------|-------|-------|
2160  |      | PG1:  | PG2:  | PG3:  | PG4:  |
2161  |      | 335,– | 290,– | 230,– | 167,– |
2162  | erm. | 237,– | 207,– | 164,– |  119,– |`,subabos:["Abo Dienstag Variante A","Abo Dienstag Variante B"]},{name:"Abo Mittwoch",sparte:0,vollname:"Mittwochsabo",zielgruppe:1,zahl:10,sitzplatz:1,wochentag:3,premieren:0,einsparung:25,ort:0,bus:0,text:`3 Musiktheater
21635 Schauspiel
21642 Ballett`,preise:`###### Preise{class=preise}
2165
2166|      |       |       |       |       |
2167|------|-------|-------|-------|-------|
2168|      | PG1:  | PG2:  | PG3:  | PG4:  | 
2169|      | 341,– | 296,– | 235,– | 170,– |
2170| erm. | 241,– | 210,– | 167,– | 121,– |`,subabos:["Abo Mittwoch Variante A","Abo Mittwoch Variante B","Abo Mittwoch Variante C"]},{name:"Abo Donnerstag",sparte:0,vollname:"Donnerstagsabo",zielgruppe:1,zahl:10,sitzplatz:1,wochentag:4,premieren:0,einsparung:25,bus:0,text:`4 Musiktheater
21714 Schauspiel
21722 Ballett`,ort:0,preise:`###### Preise{class=preise}
2173|      |       |       |       |       |
2174|------|-------|-------|-------|-------|
2175|      | PG1:  | PG2:  | PG3:  | PG4:  |
2176|      | 371,– | 318,– | 251,– | 173,– |
2177| erm. | 262,– | 226,– | 178,– | 124,– |`,subabos:["Abo Donnerstag Variante A","Abo Donnerstag Variante B"]},{name:"Abo Freitag 1",sparte:0,vollname:"Freitagsabo 1",zielgruppe:1,zahl:10,sitzplatz:1,wochentag:5,premieren:0,einsparung:20,bus:0,text:`3 Musiktheater
21786 Schauspiel
21791 Ballett`,ort:0,preise:`###### Preise{class=preise}
2180
2181|      |       |       |       |       |
2182|------|-------|-------|-------|-------|
2183|      | PG1:  | PG2:  | PG3:  | PG4:  |
2184|      | 359,– | 311,– | 244,– | 176,– |
2185| erm. | 253,– | 221,– | 174,– | 126,– |`,subabos:["Abo Freitag 1 Variante A","Abo Freitag 1 Variante B"]},{name:"Abo Freitag 2",sparte:0,vollname:"Freitagsabo 2",zielgruppe:1,zahl:10,sitzplatz:1,wochentag:5,premieren:0,einsparung:20,bus:0,text:`3 Musiktheater
21866 Schauspiel
21871 Ballett`,ort:0,preise:`###### Preise{class=preise}
2188
2189|      |       |       |       |       |
2190|------|-------|-------|-------|-------|
2191|      | PG1:  | PG2:  | PG3:  | PG4:  |
2192|      | 361,– | 313,– | 245,– | 177,– |
2193| erm. | 255,– | 221,– | 174,– | 126,– |`},{name:"Abo Samstag",sparte:0,vollname:"Samstagsabo",zielgruppe:1,zahl:10,sitzplatz:1,wochentag:6,premieren:0,einsparung:20,bus:0,ort:0,text:`5 Musiktheater
21943 Schauspiel
21952 Ballett`,preise:`###### Preise{class=preise}
2196
2197|      |       |       |       |       |
2198|------|-------|-------|-------|-------|
2199|      | PG1:  | PG2:  | PG3:  | PG4:  |
2200|      | 395,– | 339,– | 267,– | 184,– |
2201| erm. | 279,– | 241,– | 189,– | 132,– |`},{name:"Abo Sonntag 15h",sparte:0,vollname:"Sonntagsabo 15h",zielgruppe:1,zahl:10,sitzplatz:1,wochentag:7,premieren:0,einsparung:30,bus:0,text:`2 Musiktheater
22025 Schauspiel
22031 Ballett`,ort:0,preise:`###### Preise{class=preise}
2204
2205|      |       |       |       |       |
2206|------|-------|-------|-------|-------|
2207|      | PG1:  | PG2:  | PG3:  | PG4:  |
2208|      | 254,– | 218,– | 173,– | 123,– |
2209| erm. | 180,– | 155,– | 123,– | 88,– |`},{name:"Abo gemischte Tage",sparte:0,vollname:"Abo an verschiedenen Wochentagen",zielgruppe:1,zahl:6,sitzplatz:1,wochentag:0,premieren:0,einsparung:20,bus:0,ort:1,text:`2 Musiktheater
22103 Schauspiel
22111 Ballett`,preise:`###### Preise{class=preise}
2212
2213|      |       |       |       |       |
2214|------|-------|-------|-------|-------|
2215|      | PG1:  | PG2:  | PG3:  | PG4:  |
2216|      | 237,– | 203,– | 159,– |  108,– |
2217| erm. | 167,– | 145,– |  114,– |  79,– |`},{name:"Abo Ballett 1",sparte:3,vollname:"Ballett Abo 1",zielgruppe:1,zahl:4,sitzplatz:1,wochentag:0,premieren:0,einsparung:10,bus:0,ort:0,text:"3 Ballett",preise:`###### Preise{class=
2217preise}
2218
2219|      |       |       |       |       |
2220|------|-------|-------|-------|-------|
2221|      | PG1:  | PG2:  | PG3:  | PG4:  |
2222|      | 141,– | 124,– | 99,– |  74,– |
2223| erm. | 99,– |  88,– |  70,– |  53,– |`,subabos:["Abo Ballett 1 Variante A","Abo Ballett 1 Variante B"]},{name:"Abo Ballett 2",sparte:3,vollname:"Ballett Abo 2",zielgruppe:1,zahl:4,sitzplatz:1,wochentag:0,premieren:0,einsparung:10,bus:0,text:"3 Ballett",ort:0,preise:`###### Preise{class=preise}
2224
2225|      |       |       |       |       |
2226|------|-------|-------|-------|-------|
2227|     | PG1:  | PG2:  | PG3:  | PG4:  |
2228|      | 141,– | 124,– | 99,– |  74,– |
2229| erm. | 99,– |  88,– |  70,– |  53,– |`,subabos:["Abo Ballett 2 Variante A","Abo Ballett 2 Variante B"]},{name:"Abo Musiktheater",sparte:0,vollname:"Musiktheater",zielgruppe:1,zahl:6,sitzplatz:1,wochentag:7,premieren:0,einsparung:20,text:`4 Musiktheater
22301 Ballett`,bus:0,ort:0,preise:`###### Preise{class=preise}
2231
2232|      |       |       |       |       |
2233|------|-------|-------|-------|-------|
2234|      | PG1:  | PG2:  | PG3:  | PG4:  |
2235|      | 227,– | 191,– | 150,– | 96,– |
2236| erm. | 160,– | 135,– | 107,– | 69,–  |`},{name:"Abo Musiktheater plus",sparte:1,vollname:"Abo Musiktheater plus",zielgruppe:1,zahl:10,sitzplatz:1,wochentag:0,premieren:0,einsparung:20,ort:0,text:`4 Musiktheater
22375 Konzert
22381 Ballett`,bus:0,preise:`###### Preise{class=preise}
2239
2240|      |       |       |       |       |       |       |
2241|------|-------|-------|-------|-------|-------|-------|
2242|      | PG1:  | PG2:  | PG3:  | PG4:  | PG5:  | PG6:  |
2243|      | 415,– | 355,– | 335,– | 271,– | 247,– | 157,– |
2244| erm. | 293,– | 252,– | 236,– | 191,– | 175,- |  111,- |`},{name:"Abo Schauspiel klein",sparte:2,vollname:"Kleines Schauspielabo",zielgruppe:1,zahl:5,sitzplatz:1,wochentag:0,premieren:0,einsparung:20,text:"5 Schauspiel",bus:0,ort:2,preise:`###### Preise{class=preise}
2245
2246|      |       |       |
2247|------|-------|-------|
2248|      | PG1:  | PG2:  |
2249|      |  115,– |  92,– |
2250| erm. |  81,– |  66,– |`},{name:"Abo Schauspiel",sparte:2,vollname:"Schauspielabo",zielgruppe:1,zahl:8,sitzplatz:1,wochentag:0,premieren:0,einsparung:20,bus:0,text:"8 Schauspiel",ort:0,preise:`###### Preise{class=preise}
2251
2252|      |       |       |       |       |
2253|------|-------|-------|-------|-------|
2254|      | PG1:  | PG2:  | PG3:  | PG4:  |
2255|      | 222,– | 203,– | 160,– | 135,– |
2256| erm. | 157,– | 144,– |  114,– |  97,– |`,subabos:["Abo Schauspiel Variante 1","Abo Schauspiel Variante 2","Abo Schauspiel Variante 3"]},{name:"Abo Premieren brechtbühne",sparte:0,vollname:"Premierenabo Brechtbühneo",zielgruppe:1,zahl:9,sitzplatz:1,wochentag:0,premieren:8,einsparung:10,text:`5 Schauspiel
22571 Ballett`,bus:0,ort:2,preise:`###### Preise{class=preise}
2258
2259|      |       |       |
2260|------|-------|-------|
2261|      | PG1:  | PG2:  |
2262|      | 157,– | 127,– |
2263| erm. | 111,– | 91,– |`},{name:"Abo Premieren martini-Park",sparte:0,vollname:"Premierenabo martini-Park",zielgruppe:1,zahl:8,sitzplatz:1,wochentag:0,premieren:9,einsparung:5,ort:1,bus:0,text:`4 Musiktheater
22643 Schauspiel
22652 Ballett`,preise:`###### Preise{class=preise}
2266
2267|      |       |       |       |       |
2268|------|-------|-------|-------|-------|
2269|      | PG1:  | PG2:  | PG3:  | PG4:  |
2270|      | 455,– | 380,– | 297,– | 190,– |
2271| erm. | 320,– | 270,– | 210,– | 136,– |`},{name:"Abo Premieren total",sparte:0,vollname:"Premierenabo total",zielgruppe:1,zahl:18,sitzplatz:1,wochentag:0,premieren:19,einsparung:15,bus:0,text:`5 Musiktheater
22728 Schauspiel
22733 Ballett`,ort:0,preise:`###### Preise{class=preise}
2274
2275|      |       |       |       |       |       |	     |
2276|------|-------|-------|-------|-------|-------|-------|
2277|      | PG1:  | PG2:  | PG3:  | PG4:  | PG5:  | PG6:  |
2278|      | 611,– | 539,– | 533,– | 425,– | 416,- | 312,- |
2279| erm. | 431,– | 383,– | 378,– | 302,– | 296,- | 223,- |`},{name:"Gutscheinheft Mini",sparte:0,vollname:"Wahlabo Mini",zielgruppe:1,zahl:3,sitzplatz:0,wochentag:0,premieren:0,einsparung:10,bus:0,ort:0,text:`1 Musiktheater martini-Park
22801 Schauspiel martini-Park
22811 brechtbühne im Gaswerk
2282
2283Andere Kombinationen bedürfen evtl. eines Aufschlages`,preise:`###### Preise{class=preise}
2284
2285|      |       |       |       |       |
2286|------|-------|-------|-------|-------|
2287|      | PG1:  | PG2:  | PG3:  | PG4:  |
2288|      | 117,– | 102,– |  81,– |  59,– |
2289| erm. | 86,– |  75,– |  59,– |  43,– |`},{name:"Gutscheinheft Midi",sparte:0,vollname:"Gutscheinheft Midi",zielgruppe:1,zahl:8,sitzplatz:0,wochentag:0,premieren:0,einsparung:20,bus:0,ort:0,text:`4 Musiktheater martini-Park
22902 Schauspiel martini-Park
22912 brechtbühne im Gaswerk
2292
2293Andere Kombinationen bedürfen evtl. eines Aufschlages`,preise:`###### Preise{class=preise}
2294
2295|      |       |       |       |       |
2296|------|-------|-------|-------|-------|
2297|      | PG1:  | PG2:  | PG3:  | PG4:  |
2298|      | 293,– | 251,– | 198,– | 140,– |
2299| erm. | 207,– | 179,– | 141,– |  99,– |`},{name:"Gutscheinheft Maxi",sparte:0,vollname:"Gutscheinheft Maxi",zielgruppe:1,zahl:12,sitzplatz:0,wochentag:0,premieren:0,einsparung:20,bus:0,ort:0,text:`6 Musiktheater martini-Park
23002 Schauspiel martini-Park
23012 brechtbühne im Gaswerk
23022 Konzert Kongress am Park
2303
2304Andere Kombinationen bedürfen evtl. eines Aufschlages`,preise:`###### Preise{class=preise}
2305
2306|      |       |       |       |       |       |       |
2307|------|-------|-------|-------|-------|-------|-------|
2308|      | PG1:  | PG2:  | PG3:  | PG4:  | PG5:  | PG6:  |
2309|      | 461,– | 396,– | 388,– | 309,– | 299,– | 205,– |
2310| erm. | 325,– | 281,– | 275,– | 219,– | 213,– | 145,– |
2311`},{name:"Gutscheinheft Schauspiel",sparte:2,vollname:"Gutscheinheft Schauspiel",zielgruppe:1,zahl:5,sitzplatz:0,wochentag:0,premieren:0,einsparung:15,bus:0,ort:0,text:`5 Schauspiel: 2 martini-Park
23123 brechtbühne im Gaswerk
2313Andere Kombinationen bedürfen evtl. eines Aufschlages`,preise:`###### Preise{class=preise}
2314
2315|      |       |       |      |      |
2316|------|-------|-------|------|------|
2317|      | PG1:  | PG2:  | PG3: | PG4: |
2318|      | 120,– | 106,- | 85,- | 68,- |
2319| erm. |  99,– |  90,- | 72,- | 60,- |`},{name:"Gutscheinheft Konzert",sparte:4,vollname:"Gutscheinheft Konzerte",zielgruppe:1,zahl:6,sitzplatz:0,wochentag:0,premieren:0,einsparung:20,bus:0,ort:3,text:`6 Konzert Kongress am Park
2320
2321Andere Kombinationen bedürfen evtl. eines Aufschlages`,preise:`###### Preise{class=preise}
2322
2323|      |       |       |       |       |       |      |
2324|------|-------|-------|-------|-------|-------|------|
2325|      | PG1:  | PG2:  | PG3:  | PG4:  | PG5:  | PG6: |
2326|      | 227,– | 198,– | 174,– | 145,– | 116,– | 73,– |
2327| erm. | 159,- | 140,- | 121,- |  102,- |  83,- | 51,- |`},{name:"Abo Konzert Montag",sparte:4,vollname:"Konzertabo Montag",zielgruppe:1,zahl:8,sitzplatz:1,wochentag:1,premieren:0,einsparung:20,bus:0,ort:3,preise:`###### Preise{class=preise}
2328
2329|      |       |       |       |       |       |      |
2330|------|-------|-------|-------|-------|-------|------|
2331|      | PG1:  | PG2:  | PG3:  | PG4:  | PG5:  | PG6: |
2332|      | 302,– | 264,– | 232,– | 193,– | 155,– | 97,– |
2333| erm. | 212,- | 187,- | 164,- | 136,- |  110,- | 68,- |`},{name:"Abo Konzert Dienstag",sparte:4,vollname:"Konzertabo Dienstag",zielgruppe:1,zahl:8,sitzplatz:1,wochentag:2,premieren:0,einsparung:20,bus:0,ort:3,preise:`###### Preise{class=preise}
2334
2335|      |       |       |       |       |       |      |
2336|------|-------|-------|-------|-------|-------|------|
2337|      | PG1:  | PG2:  | PG3:  | PG4:  | PG5:  | PG6: |
2338|      | 302,– | 264,– | 232,– | 193,– | 155,– | 97,– |
2339| erm. | 212,- | 187,- | 161,- | 136,- |  110,- | 68,- |`},{name:"Abo Konzert klein",sparte:4,vollname:"Kleines Konzertabo",zielgruppe:1,zahl:4,sitzplatz:1,wochentag:2,premieren:0,einsparung:20,bus:0,ort:3,preise:`###### Preise{class=preise}
2340|      |       |       |       |      |      |      |
2341|------|-------|-------|-------|------|------|------|
2342|      | PG1:  | PG2:  | PG3:  | PG4: | PG5: | PG6: |
2343|      | 151,– | 132,– | 116,– | 97,– | 77,– | 49,– |
2344| erm. |  106,- |  93,- |  81,- | 68,- | 55,- | 34,- |`},{name:"Abo Kammerkonzert",sparte:4,vollname:"Kammerkonzert",zielgruppe:1,zahl:6,sitzplatz:1,wochentag:0,premieren:0,einsparung:20,bus:0,ort:0,preise:`###### Preise{class=
2344preise}
2345
2346|      |       |
2347|------|-------|
2348|      | PG1:  |
2349|      | 102,– |
2350| erm. |  75,– |`},{name:"Theaterbusabo 3er",text:"3 aus folgenden Terminen:",sparte:0,vollname:"Theaterbusabo 3er",zielgruppe:1,zahl:3,sitzplatz:0,wochentag:0,premieren:0,bus:1,ort:0,preise:`###### Preise{class=preise}
2351
2352|      |       |       |       |       |       |      |
2353|------|-------|-------|-------|-------|-------|------|
2354|      | PG1:  | PG2:  | PG3:  | PG4:  | PG5:  | PG6: |
2355|      | 174,– | 155,– | 149,– | 128,– | 122,– | 93,– |
2356| erm. | 130,– | 118,– | 114,– |  99,– |  95,– | 75,– |`},{name:"Theaterbusabo 8er",text:"8 aus folgenden Terminen:",sparte:0,vollname:"Theaterbusabo 8er",zielgruppe:1,zahl:8,sitzplatz:0,wochentag:0,premieren:0,ort:0,bus:1,preise:`###### Preise{class=preise}
2357
2358|      |       |       |       |       |       |       |
2359|------|-------|-------|-------|-------|-------|-------|
2360|      | PG1:  | PG2:  | PG3:  | PG4:  | PG5:  | PG6:  |
2361|      | 420,– | 375,– | 365,– | 311,– | 298,– | 230,– |
2362| erm. | 320,– | 289,– | 281,– | 243,– | 233,– | 187,– |`},{name:"Abo Kids",sparte:0,vollname:"Kinder-Abo",zielgruppe:2,zahl:4,sitzplatz:1,wochentag:0,premieren:0,ort:1,bus:0,einsparung:30,preise:`###### Preise für Kinder{class=preise}
2363|     |      |      |      |      |
2364|------|------|------|------|------|
2365| | PG1: | PG2: | PG3: | PG4: |
2366| | 43,– | 36,– | 30,– | 26,– |
2367
2368###### Eintrittspreise für Erwachsene{class=preise}
2369
2370|   |   |      |      |      |
2371|------|------|------|------|------|
2372|  | PG1: | PG2: | PG3: | PG4: |
2373| | 60,– | 50,– | 41,– | 32,– |`}]},checkbox=(o,n=noop,c=noop,d=noop,h)=>{let m=derived_safe_equal(()=>fallback(h?.(),""));var p=root_3$6(),w=child(p),z=child(w),A=sibling(z,4);html(A,()=>get(m)||c(),!0),template_effect(()=>{set_checked(z,n()),set_class(A,1,clsx(get(m)?"rot":""),"svelte-qumdyf")}),delegated("click",z,function(...y){d()?.apply(this,y)}),append(o,p)},successMessage=(o,n=noop)=>{var c=root_4$6(),d=child(c),h=child(d);template_effect(()=>set_text(h,n())),append(o,c)};var root_1$7=from_html('<div class="form-group svelte-qumdyf"><label> </label> <input/></div>'),root_2$7=from_html('<div class="form-group svelte-qumdyf"><label> </label> <textarea></textarea></div>'),root_3$6=from_html('<div class="form-group checkbox-wrapper svelte-qumdyf"><label class="checkbox-label svelte-qumdyf"><input type="checkbox" class="svelte-qumdyf"/> <span class="checkmark svelte-qumdyf"></span> <span></span></label></div>'),root_4$6=from_html('<div class="success-box svelte-qumdyf"><p> </p></div>'),root_8=from_html('<div class="review-row svelte-qumdyf"><span class="review-label svelte-qumdyf">Telefon</span><span class="review-value svelte-qumdyf"> </span></div>'),root_7$2=from_html('<div class="review-section svelte-qumdyf"><h3 class="svelte-qumdyf">Persönliche Daten</h3> <div class="review-row svelte-qumdyf"><span class="review-label svelte-qumdyf">Name</span><span class="review-value svelte-qumdyf"> </span></div> <div class="review-row svelte-qumdyf"><span class="review-label svelte-qumdyf">E-Mail</span><span class="review-value svelte-qumdyf"> </span></div> <!> <div class="review-row svelte-qumdyf"><span class="review-label svelte-qumdyf">Straße</span><span class="review-value svelte-qumdyf"> </span></div> <div class="review-row svelte-qumdyf"><span class="review-label svelte-qumdyf">PLZ / Ort</span><span class="review-value svelte-qumdyf"> </span></div></div>'),root_9$2=from_html('<div class="review-row svelte-qumdyf"><span class="review-label svelte-qumdyf"></span> <span class="review-value svelte-qumdyf"> </span></div>'),root_10$3=from_html('<div class="review-section svelte-qumdyf"><h3 class="svelte-qumdyf">Bemerkungen</h3> <div class="review-row svelte-qumdyf"><span class="review-value svelte-qumdyf" style="text-align: left; max-width: 100%;"> </span></div></div>'),root_12$3=from_html('<div class="review-row svelte-qumdyf"><span class="review-label svelte-qumdyf">BIC</span><span class="review-value svelte-qumdyf"> </span></div>'),root_13$2=from_html('<div class="review-row svelte-qumdyf"><span class="review-label svelte-qumdyf">Bank</span><span class="review-value svelte-qumdyf"> </span></div>'),root_11$3=from_html('<div class="review-section svelte-qumdyf"><h3 class="svelte-qumdyf">Bankdaten</h3> <div class="review-row svelte-qumdyf"><span class="review-label svelte-qumdyf">Kontoinhaber</span><span class="review-value svelte-qumdyf"> </span></div> <div class="review-row svelte-qumdyf"><span class="review-label svelte-qumdyf">IBAN</span><span class="review-value svelte-qumdyf"> </span></div> <!> <!></div>'),root_6$3=from_html('<div class="review-heading svelte-qumdyf">
2373Bitte überprüfen Sie Ihre Angaben</div> <!> <div class="review-section svelte-qumdyf"><h3 class="svelte-qumdyf">Abo-Umtauschwünsche</h3> <!></div> <!> <!> <div class="review-section svelte-qumdyf"><h3 class="svelte-qumdyf">Bestätigungen</h3> <div class="review-row svelte-qumdyf"><span class="review-label svelte-qumdyf">SEPA-Einverständnis</span><span class="review-value svelte-qumdyf">Ja</span></div> <div class="review-row svelte-qumdyf"><span class="review-label svelte-qumdyf">AGB</span><span class="review-value svelte-qumdyf">Akzeptiert</span></div></div> <div class="button-group svelte-qumdyf"><button type="button" class="btn-secondary svelte-qumdyf">Zurück zur Bearbeitung</button> <button type="button" class="btn-submit svelte-qumdyf"><!></button></div>',1),root_17=from_html('<!> <!> <!> <div style="display: grid; grid-template-columns: 1fr 2fr; gap: 16px;"><!> <!></div>',1),root_19$1=from_html("<option> </option>"),root_20$1=from_html("<option> </option>"),root_21$1=from_html("<option> </option>"),root_22$1=from_html('<button type="button" class="btn-remove svelte-qumdyf">✕</button>'),root_18$1=from_html('<div class="umtausch-row svelte-qumdyf"><select class="svelte-qumdyf"><option>Aktuelles Abo …</option><!></select> <select class="svelte-qumdyf"><option>Gewünschtes Abo …</option><!></select> <select class="svelte-qumdyf"><option>Preisgruppe …</option><!></select> <input type="number" min="1" max="99" class="svelte-qumdyf"/> <!></div>'),root_16$1=from_html('<form><!> <!> <div class="form-group svelte-qumdyf"><label> </label> <div class="umtausch-list svelte-qumdyf"></div> <button type="button" class="btn-add svelte-qumdyf">+ Weiterer Umtausch</button></div> <!> <div class="form-group checkbox-wrapper svelte-qumdyf"><label class="checkbox-label svelte-qumdyf"><input type="checkbox" class="svelte-qumdyf"/> <span class="checkmark svelte-qumdyf"></span> <span>Ich habe bereits eine Einzugsermächtigung erteilt</span></label></div> <!> <div class="form-group checkbox-wrapper svelte-qumdyf"><label class="checkbox-label svelte-qumdyf"><input type="checkbox" class="svelte-qumdyf"/> <span class="checkmark svelte-qumdyf"></span> <span>Hiermit bestätige ich, dass ich die Abo-Bedingungen und Allgemeinen Geschäftsbedingungen des Staatstheater Augsburg gelesen habe und stimme ihrer Geltung ausdrücklich zu.</span></label></div> <!> <div class="button-group svelte-qumdyf"><button type="submit" class="btn-submit svelte-qumdyf"><!></button></div></form>'),root$e=from_html('<div class="formular-wrapper"><!></div>');function Formabowechsel(o,n){push(n,!0);const c=(ke,Ae=noop,Ie=noop,qe=noop,Ge=noop,Je)=>{let Te=derived_safe_equal(()=>fallback(Je?.(),"text"));var ve=root_1$7(),et=child(ve),mt=child(et),ht=sibling(et,2);let ct;template_effect(()=>{set_attribute(et,"for",Ae()),set_class(et,1,clsx(Ge()?"rot":""),"svelte-qumdyf"),set_text(mt,Ge()||Ie()),set_attribute(ht,"id",Ae()),set_attribute(ht,"type",get(Te)),set_value(ht,qe()),ct=set_class(ht,1,"svelte-qumdyf",null,ct,{error:Ge()})}),delegated("input",ht,Ue=>he(Ae(),Ue.target.value)),append(ke,ve)},d=(ke,Ae=noop,Ie=noop,qe=noop,Ge=noop,Je)=>{let Te=derived_safe_equal(()=>fallback(Je?.(),4));var ve=root_2$7(),et=child(ve),mt=child(et),ht=sibling(et,2);let ct;template_effect(()=>{set_attribute(et,"for",Ae()),set_class(et,1,clsx(Ge()?"rot":""),"svelte-qumdyf"),set_text(mt,Ge()||Ie()),set_attribute(ht,"id",Ae()),set_value(ht,qe()),set_attribute(ht,"rows",get(Te)),ct=set_class(ht,1,"svelte-qumdyf",null,ct,{error:Ge()})}),delegated("input",ht,Ue=>he(Ae(),Ue.target.value)),append(ke,ve)};let h=prop(n,"embedded",3,!1),m=prop(n,"uuid",3,""),p=prop(n,"adresse",19,()=>({name:"",email:"",strasse:"",plz:"",ort:""})),w=prop(n,"agbAkzeptiert",3,!1),z=prop(n,"agbError",3,""),A=prop(n,"onAGBError",3,void 0),y=prop(n,"setAddressError",3,void 0),s=prop(n,"onSubmitted",3,void 0);const e=abomat?.abos?.map(ke=>ke.name).filter(Boolean)||[];let f=proxy({name:p().name||"",email:p().email||"",strasse:p().strasse||"",plz:p().plz||"",ort:p().ort||"",telefon:"",umtausche:[{aktuellesAbo:"",gewuenschtesAbo:"",anzahl:1,gewuenschtePreisgruppe:""}],kontoinhaber:"",iban:"",bic:"",bankname:"",sepaEinverstaendnis:!1,sepaBereitsErteilt:!1,newsletter:!1,bemerkungen:"",typ:"abowechsel"});user_effect(()=>
2373{h()&&p()&&(f.name=p().name||"",f.email=p().email||"",f.telefon=p().telefon||"",f.strasse=p().strasse||"",f.plz=p().plz||"",f.ort=p().ort||"")});let g=state(proxy({name:"",email:"",strasse:"",plz:"",ort:"",umtausche:"",kontoinhaber:"",iban:"",bic:"",bankname:"",sepaEinverstaendnis:"",sepaBereitsErteilt:""})),R=state(!1),q=state(""),H=state(!1),te=state(!1);function re(ke){return/^[0-9]{5}$/.test(ke)}function ae(ke){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(ke)}function ne(ke){return ke.replace(/\s/g,"").length>=15}function oe(){let ke=!0;return set(g,{name:"",email:"",strasse:"",plz:"",ort:"",umtausche:"",kontoinhaber:"",iban:"",bic:"",bankname:"",sepaEinverstaendnis:""},!0),f.name.trim()?y()?.("name",""):(get(g).name="Name ist erforderlich",y()?.("name","Name ist erforderlich"),ke=!1),!f.email.trim()||!ae(f.email)?(get(g).email="Gültige E-Mail erforderlich",y()?.("email","Gültige E-Mail erforderlich"),ke=!1):y()?.("email",""),f.strasse.trim()?y()?.("strasse",""):(get(g).strasse="Straße ist erforderlich",y()?.("strasse","Straße ist erforderlich"),ke=!1),!f.plz.trim()||!re(f.plz)?(get(g).plz="Gültige PLZ (5 Stellen) erforderlich",y()?.("plz","Gültige PLZ (5 Stellen) erforderlich"),ke=!1):y()?.("plz",""),f.ort.trim()?y()?.("ort",""):(get(g).ort="Ort ist erforderlich",y()?.("ort","Ort ist erforderlich"),ke=!1),f.umtausche.filter(Ie=>Ie.aktuellesAbo&&Ie.gewuenschtesAbo&&Ie.anzahl>0&&Ie.gewuenschtePreisgruppe).length===0&&(get(g).umtausche="Mindestens ein vollständiger Umtausch (inkl. Preisgruppe) erforderlich",ke=!1),f.sepaBereitsErteilt||(f.kontoinhaber.trim()||(get(g).kontoinhaber="Kontoinhaber ist erforderlich",ke=!1),(!f.iban.trim()||!ne(f.iban))&&(get(g).iban="Gültige IBAN erforderlich",ke=!1),f.sepaEinverstaendnis||(get(g).sepaEinverstaendnis="Ich ermächtige das Staatstheater Augsburg, Zahlungen von meinem Konto mittels Lastschrift einzuziehen. Zugleich weise ich mein Kreditinstitut an, die vom Staatstheater Augsburg auf mein Konto gezogenen Lastschriften einzulösen. Ich nehme zur Kenntnis, dass ich innerhalb von acht Wochen, beginnend mit dem Belastungsdatum, die Erstattung des belasteten Betrages verlangen kann. Es gelten dabei die mit meinem Kreditinstitut vereinbarten Bedingungen.",ke=!1)),w()?A()?.(""):(A()?.("Bitte bestätigen Sie die Abo-Bedingungen und AGB"),ke=!1),ke}function le(ke){ke.preventDefault(),oe()&&set(te,!0)}function ce(){set(te,!1)}async function ue(ke){if(ke.preventDefault(),oe()){set(H,!0);const Ae={...f,iban:f.iban.replace(/\s/g,"").toUpperCase(),bic:f.bic?f.bic.replace(/\s/g,"").toUpperCase():"",uuid:m()},Ie=await fetch("https://staatstheater-augsburg.de/formeingang",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(Ae)}),qe=await Ie.text();let Ge;try{Ge=JSON.parse(qe)}catch{Ge=null}!Ie.ok||!Ge||!Ge.success?(console.error("Server error:",Ie.status,qe,Ge),alert("Fehler beim Speichern: "+(Ge?.error||"Server-Fehler "+Ie.status)),set(R,!1),set(H,!1)):(set(q,Ge.msg||"",!0),set(R,!0),s()?.(Ge.msg||""),set(H,!1))}}function he(ke,Ae){f[ke]=Ae,get(g)[ke]&&(get(g)[ke]="")}function ge(){f.umtausche=[...f.umtausche,{aktuellesAbo:"",gewuenschtesAbo:"",anzahl:1,gewuenschtePreisgruppe:""}],get(g).umtausche&&(get(g).umtausche="")}function Oe(ke){const Ae=abomat.abos.find(qe=>qe.name===ke);if(!Ae||!Ae.preise)return["PG1","PG2","PG3","PG4"];const Ie=Ae.preise.match(/PG\d+/g);return Ie?[...new Set(Ie)]:["PG1","PG2","PG3","PG4"]}function $e(ke){f.umtausche=f.umtausche.filter((Ae,Ie)=>Ie!==ke)}function Pe(ke,Ae,Ie){f.umtausche=f.umtausche.map((qe,Ge)=>Ge===ke?{...qe,[Ae]:Ie}:qe),get(g).umtausche&&(get(g).umtausche="")}user_effect(()=>{window.data=f});var Le=root$e(),me=child(Le);{var we=ke=>{successMessage(ke,()=>get(q)||"Vielen Dank! Ihr Abo-Wechsel wurde erfolgreich übermittelt.")},Se=ke=>{var Ae=root_6$3(),Ie=sibling(first_child(Ae),2);{var qe=ft=>{var be=root_7$2(),Et=sibling(child(be),2),St=sibling(child(Et)),Jt=child(St),Bt=sibling(Et,2),Vt=sibling(child(Bt)),Tt=child(Vt),Be=sibling(Bt,2);{var Xe=st=>{var vt=root_8(),gt=sibling(child(vt)),Ot=child(gt);template_effect(()=>set_text(Ot,f.telefon)),append(st,vt)};if_block(Be,st=>{f.telefon&&st(Xe)})}var Ke=sibling(Be,2),nt=sibling(child(Ke)),xt=child(nt),Mt=sibling(Ke,2),Ye=sibling(child(Mt)),at=child(Ye);template_effect(()=>{set_text(Jt,f.name),set_text(Tt,f.email),set_text(xt,f.strasse),set_text(at,`${f.plz??""} ${f.ort??""}`)}),append(ft,be)};if_block(Ie,ft=>{h()||ft(qe)})}var Ge=sibling(Ie,2),Je=sibling(child(Ge),2);each(Je,17,()=>f.umtausche,index,(ft,be,Et)=>{var St=root_9$2(),Jt=child(St);Jt.textContent=`Umtausch ${Et+1}`;var Bt=sibling(Jt,2),Vt=child(Bt);template_effect(()=>set_text(Vt,`${get(be).aktuellesAbo??""} → ${get(be).gewuenschtesAbo??""} (${get(be).anzahl??""}x, ${get(be).gewuenschtePreisgruppe??""})`)),append(ft,St)});var Te=sibling(Ge,2);{var ve=ft=>{var be=root_10$3(),Et=sibling(child(be),2),St=child(Et),Jt=child(St);template_effect(()=>set_text(Jt,f.bemerkungen)),append(ft,be)};if_block(Te,ft=>{f.bemerkungen&&ft(ve)})}var et=sibling(Te,2);{var mt=ft=>{var be=root_11$3(),Et=sibling(child(be),2),St=sibling(child(Et)),Jt=child(St),Bt=sibling(Et,2),Vt=sibling(child(Bt)),Tt=child(Vt),Be=sibling(Bt,2);{var Xe=xt=>{var Mt=root_12$3(),Ye=sibling(child(Mt)),at=child(Ye);template_effect(()=>set_text(at,f.bic)),append(xt,Mt)};if_block(Be,xt=>{f.bic&&xt(Xe)})}var Ke=sibling(Be,2);{var nt=xt=>{var Mt=root_13$2(),Ye=sibling(child(Mt)),at=child(Ye);template_effect(()=>set_text(at,f.bankname)),append(xt,Mt)};if_block(Ke,xt=>{f.bankname&&xt(nt)})}template_effect(()=>{set_text(Jt,f.kontoinhaber),set_text(Tt,f.iban)}),append(ft,be)};if_block(et,ft=>{f.sepaBereitsErteilt||ft(mt)})}var ht=sibling(et,4),ct=child(ht),Ue=sibling(ct,2),ot=child(Ue);{var bt=ft=>{var be=text$1("Wird gesendet…");append(ft,be)},At=ft=>{var be=text$1("Kostenpflichtig bestellen");append(ft,be)};if_block(ot,ft=>{get(H)?ft(bt):ft(At,-1)})}template_effect(()=>Ue.disabled=get(H)),delegated("click",ct,ce),delegated("click",Ue,ue),append(ke,Ae)},ye=ke=>{var Ae=root_16$1(),Ie=child(Ae);{var qe=Ke=>{var nt=root_17(),xt=first_child(nt);c(xt,()=>"name",()=>"Name, Vorname",()=>f.name,()=>get(g).name);var Mt=sibling(xt,2);c(Mt,()=>"email",()=>"E-Mail",()=>f.email,()=>get(g).email);var Ye=sibling(Mt,2);c(Ye,()=>"strasse",()=>"Straße und Hausnummer",()=>f.strasse,()=>get(g).strasse);var at=sibling(Ye,2),st=child(at);c(st,()=>"plz",()=>"PLZ",()=>f.plz,()=>get(g).plz);var vt=sibling(st,2);c(vt,()=>"ort",()=>"Ort",()=>f.ort,()=>get(g).ort),append(Ke,nt)};if_block(Ie,Ke=>{h()||Ke(qe)})}var Ge=sibling(Ie,2);c(Ge,()=>"telefon",()=>"Telefon (optional)",()=>f.telefon,()=>get(g).telefon);var Je=sibling(Ge,2),Te=child(Je),ve=child(Te),et=sibling(Te,2);each(et,21,()=>f.umtausche,index,(Ke,nt,xt)=>{var Mt=root_18$1(),Ye=child(Mt),at=child(Ye);at.value=at.__value="";var st=sibling(at);each(st,17,()=>e,index,(wt,nn)=>{var Wt=root_19$1(),ln=child(Wt),_n={};template_effect(()=>{set_text(ln,get(nn)),_n!==(_n=get(nn))&&(Wt.value=(Wt.__value=get(nn))??"")}),append(wt,Wt)});var vt;init_select(Ye);var gt=sibling(Ye,2),Ot=child(gt);Ot.value=Ot.__value="";var Dt=sibling(Ot);each(Dt,17,()=>e,index,(wt,nn)=>{var Wt=root_20$1(),ln=child(Wt),_n={};template_effect(()=>{set_text(ln,get(nn)),_n!==(_n=get(nn))&&(Wt.value=(Wt.__value=get(nn))??"")}),append(wt,Wt)});var Gt;init_select(gt);var Ft=sibling(gt,2),Pt=child(Ft);Pt.value=Pt.__value="";var qt=sibling(Pt);each(qt,17,()=>Oe(get(nt).gewuenschtesAbo),index,(wt,nn)=>{var Wt=root_21$1(),ln=child(Wt),_n={};template_effect(()=>{set_text(ln,get(nn)),_n!==(_n=get(nn))&&(Wt.value=(Wt.__value=get(nn))??"")}),append(wt,Wt)});var on;init_select(Ft);var He=sibling(Ft,2),Ve=sibling(He,2);{var pt=wt=>{var nn=root_22$1();delegated("click",nn,()=>$e(xt)),append(wt,nn)};if_block(Ve,wt=>{f.umtausche.length>1&&wt(pt)})}template_effect(()=>{vt!==(vt=get(nt).aktuellesAbo)&&(Ye.value=(Ye.__value=get(nt).aktuellesAbo)??"",select_option(Ye,get(nt).aktuellesAbo)),Gt!==(Gt=get(nt).gewuenschtesAbo)&&(gt.value=(gt.__value=get(nt).gewuenschtesAbo)??"",select_option(gt,get(nt).gewuenschtesAbo)),Ft.disabled=get(nt).gewuenschtesAbo==="",on!==(on=get(nt).gewuenschtePreisgruppe)&&(Ft.value=(Ft.__value=get(nt).gewuenschtePreisgruppe)??"",select_option(Ft,get(nt).gewuenschtePreisgruppe)),set_value(He,get(nt).anzahl)}),delegated("change",Ye,wt=>Pe(xt,"aktuellesAbo",wt.currentTarget.value)),delegated("change",gt,wt=>Pe(xt,"gewuenschtesAbo",wt.currentTarget.value)),delegated("change",Ft,wt=>Pe(xt,"gewuenschtePreisgruppe",wt.currentTarget.value)),delegated("input",He,wt=>Pe(xt,"anzahl",parseInt(wt.target.value)||1)),append(Ke,Mt)});var mt=sibling(et,2),ht=sibling(Je,2);d(ht,()=>"bemerkungen",()=>"Bemerkungen (Sitzplatzwünsche u.dgl.)",()=>f.bemerkungen,()=>get(g).bemerkungen);var ct=sibling(ht,2),Ue=child(ct),ot=child(Ue),bt=sibling(ct,2);{var At=Ke=>{FormularSEPA(Ke,{get data(){return f},get errors(){return get(g)}})};if_block(bt,Ke=>{f.sepaBereitsErteilt||Ke(At)})}var ft=sibling(bt,2),be=child(ft),Et=child(be),St=sibling(Et,4),Jt=sibling(ft,2);checkbox(Jt,()=>f.newsletter,()=>'Ich möchte den Newsletter erhalten. <a href="/datenschutz">Informationen zum Datenschutz</a>',()=>()=>f.newsletter=!f.newsletter);var Bt=sibling(Jt,2),Vt=child(Bt),Tt=child(Vt);{var Be=Ke=>{var nt=text$1("Wird gesendet…");append(Ke,nt)},Xe=Ke=>{var nt=text$1("Weiter zum Überprüfen ihrer Bestellung");append(Ke,nt)};if_block(Tt,Ke=>{get(H)?Ke(Be):Ke(Xe,-1)})}template_effect(()=>{set_class(Te,1,clsx(get(g).umtausche?"rot":""),"svelte-qumdyf"),set_text(ve,get(g).umtausche||"Abo-Umtauschwünsche"),set_checked(ot,f.sepaBereitsErteilt),set_checked(Et,w()),set_class(St,1,clsx(z()?"rot":""),"svelte-qumdyf"),Vt.disabled=get(H)}),event("submit",Ae,le),delegated("click",mt,ge),delegated("click",ot,()=>{f.sepaBereitsErteilt=!f.sepaBereitsErteilt,get(g).sepaBereitsErteilt&&(get(g).sepaBereitsErteilt="")}),delegated("click",Et,function(...Ke){n.onToggleAGB?.apply(this,Ke)}),append(ke,Ae)};if_block(me,ke=>{get(R)?ke(we):get(te)?ke(Se,1):ke(ye,-1)})}append(o,Le),pop()}delegate(["input","click","change"]);var root_1$6=from_html('<div class="success-message svelte-1l404ln"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" style="display:inline; vertical-align:middle; margin-right:8px;"><path d="M20 6L9 17l-5-5" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg> <span style="vertical-align:middle;"> </span></div>'),root_4$5=from_html('<div class="review-row svelte-1l404ln"><span class="review-label svelte-1l404ln">Telefon</span><span class="review-value svelte-1l404ln"> </span></div>'),root_3$5=from_html('<div class="review-section svelte-1l404ln"><h3 class="svelte-1l404ln">Persönliche Daten</h3> <div class="review-row svelte-1l404ln"><span class="review-label svelte-1l404ln">Name</span><span class="review-value svelte-1l404ln"> </span></div> <div class="review-row svelte-1l404ln"><span class="review-label svelte-1l404ln">E-Mail</span><span class="review-value svelte-1l404ln"> </span></div> <!> <div class="review-row svelte-1l404ln"><span class="review-label svelte-1l404ln">Straße</span><span class="review-value svelte-1l404ln"> </span></div> <div class="review-row svelte-1l404ln"><span class="review-label svelte-1l404ln">PLZ / Ort</span><span class="review-value svelte-1l404ln"> </span></div></div>'),root_5$5=from_html('<div class="review-section svelte-1l404ln"><h3 class="svelte-1l404ln">Bemerkungen</h3> <div class="review-row svelte-1l404ln"><span class="review-label svelte-1l404ln">Bemerkungen</span><span class="review-value svelte-1l404ln"> </span></div></div>'),root_6$2=from_html('<div class="review-row svelte-1l404ln"><span class="review-label svelte-1l404ln">BIC</span><span class="review-value svelte-1l404ln"> </span></div>'),root_7$1=from_html('<div class="review-row svelte-1l404ln"><span class="review-label svelte-1l404ln">Bank</span><span class="review-value svelte-1l404ln"> </span></div>'),root_2$6=from_html('<div class="review-heading svelte-1l404ln">Bitte überprüfen Sie Ihre Angaben</div> <!> <!> <div class="review-section svelte-1l404ln"><h3 class="svelte-1l404ln">Passfoto</h3> <div class="review-row svelte-1l404ln"><span class="review-label svelte-1l404ln">Foto</span><span class="review-value svelte-1l404ln"> </span></div></div> <div class="review-section svelte-1l404ln"><h3 class="svelte-1l404ln">Bankdaten</h3> <div class="review-row svelte-1l404ln"><span class="review-label svelte-1l404ln">Kontoinhaber</span><span class="review-value svelte-1l404ln"> </span></div> <div class="review-row svelte-1l404ln"><span class="review-label svelte-1l404ln">IBAN</span><span class="review-value svelte-1l404ln"> </span></div> <!> <!></div> <div class="review-section svelte-1l404ln"><h3 class="svelte-1l404ln">Bestätigungen</h3> <div class="review-row svelte-1l404ln"><span class="review-label svelte-1l404ln">SEPA-Einverständnis</span><span class="review-value svelte-1l404ln">Ja</span></div> <div class="review-row svelte-1l404ln"><span class="review-label svelte-1l404ln">AGB</span><span class="review-value svelte-1l404ln">Akzeptiert</span></div></div> <div class="button-group svelte-1l404ln"><button type="button" class="btn-secondary svelte-1l404ln">Zurück zur Bearbeitung</button> <button type="button" class="btn-primary svelte-1l404ln"><!></button></div>',1),root_11$2=from_html('<div class="form-group svelte-1l404ln"><label for="tc-name"> </label> <input id="tc-name" type="text"/></div> <div class="form-group svelte-1l404ln"><label for="tc-email"> </label> <input id="tc-email" type="email"/></div> <div class="form-group svelte-1l404ln"><label for="tc-strasse"> </label> <input id="tc-strasse" type="text"/></div> <div style="display: grid; grid-template-columns: 1fr 2fr; gap: 16px;"><div class="form-group svelte-1l404ln"><label for="tc-plz"> </label> <input id="tc-plz" type="text"/></div> <div class="form-group svelte-1l404ln"><label for="tc-ort"> </label> <input id="tc-ort" type="text"/></div></div>',1),root_13$1=from_html('<div class="file-info svelte-1l404ln" style="color:#667eea;">Wird hochgeladen…</div>'),root_14=from_html('<div class="file-info svelte-1l404ln" style="color:#166534;">✓ Hochgeladen</div>'),root_12$2=from_html('<img alt="Vorschau" class="preview-img svelte-1l404ln"/> <div class="file-info svelte-1l404ln"> </div> <!> <button type="button" style="margin-top:8px; background:transparent; border:none;
2373 color:#ef4444; cursor:pointer; font-size:13px;">✕ Entfernen</button>',1),root_15=from_html('<svg width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="#6b7280" stroke-width="1.5" style="margin-bottom:8px;"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="17 8 12 3 7 8"></polyline><line x1="12" y1="3" x2="12" y2="15"></line></svg> <p style="margin:0;">Foto hierher ziehen oder klicken zum Auswählen</p> <p style="margin:4px 0 0; font-size:12px; color:#9ca3af;">JPEG, PNG oder WebP, max. 5 MB</p>',1),root_10$2=from_html('<form><!> <div class="form-group svelte-1l404ln"><label for="tc-bemerkungen" class="svelte-1l404ln">Bemerkungen (optional)</label> <textarea id="tc-bemerkungen" rows="3" class="svelte-1l404ln"></textarea></div> <!> <div class="form-group svelte-1l404ln"><span> </span> <div role="button" tabindex="0"><!></div> <input id="tc-file-input" type="file" accept="image/jpeg,image/png,image/webp" style="display:none" class="svelte-1l404ln"/></div> <div class="form-group checkbox-wrapper svelte-1l404ln"><label class="checkbox-label svelte-1l404ln"><input type="checkbox" class="svelte-1l404ln"/> <span class="checkmark svelte-1l404ln"></span> <span>Hiermit bestätige ich, dass ich die Abo-Bedingungen und Allgemeinen Geschäftsbedingungen des Staatstheater Augsburg gelesen habe und stimme ihrer Geltung ausdrücklich zu. Die Theatercard ist nicht übertragbar – Gültigkeitsdauer ist eine Spielzeit. Die Theatercard berechtigt zum Erwerb Ihrer persönlichen Eintrittskarte. Die Theatercard gilt nicht als Fahrausweis im AVV.</span></label></div> <div class="button-group svelte-1l404ln"><button type="submit" class="btn-primary svelte-1l404ln"><!></button></div></form>'),root$d=from_html('<div class="form-wrapper"><!></div>');function FormTheatercard(o,n){push(n,!0);let c=prop(n,"embedded",3,!1),d=prop(n,"uuid",3,""),h=prop(n,"adresse",19,()=>({name:"",email:"",strasse:"",plz:"",ort:""})),m=prop(n,"agbAkzeptiert",3,!1),p=prop(n,"agbError",3,""),w=prop(n,"onAGBError",3,void 0),z=prop(n,"setAddressError",3,void 0),A=prop(n,"onSubmitted",3,void 0),y=proxy({name:h().name||"",email:h().email||"",strasse:h().strasse||"",plz:h().plz||"",ort:h().ort||"",telefon:h().telefon||"",bemerkungen:"",typ:"theatercard",kontoinhaber:"",iban:"",bic:"",bankname:"",sepaEinverstaendnis:!1});user_effect(()=>{c()&&h()&&(y.name=h().name||"",y.email=h().email||"",y.telefon=h().telefon||"",y.strasse=h().strasse||"",y.plz=h().plz||"",y.ort=h().ort||"")});let s=state(proxy({name:"",email:"",strasse:"",plz:"",ort:"",foto:"",kontoinhaber:"",iban:"",sepaEinverstaendnis:""})),e=state(!1),f=state(""),g=state(!1),R=state(null),q=state(""),H=state(!1),te=state(""),re=state(!1),ae=state(!1);function ne(Ge){return/^[0-9]{5}$/.test(Ge)}function oe(Ge){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(Ge)}function le(Ge){if(!["image/jpeg","image/png","image/webp"].includes(Ge.type)){get(s).foto="Nur JPEG, PNG oder WebP erlaubt";return}if(Ge.size>5242880){get(s).foto="Max. 5 MB";return}set(R,Ge,!0),set(q,""),get(te)&&URL.revokeObjectURL(get(te)),set(te,URL.createObjectURL(get(R)),!0),get(s).foto="",$e(get(R))}function ce(Ge){Ge.preventDefault(),set(g,!1);const Je=Ge.dataTransfer?.files;Je&&Je.length>0&&le(Je[0])}function ue(Ge){Ge.preventDefault(),set(g,!0)}function he(Ge){Ge.preventDefault(),set(g,!1)}function ge(Ge){const Te=Ge.target.files;Te&&Te.length>0&&le(Te[0])}function Oe(){get(te)&&URL.revokeObjectURL(get(te)),set(te,""),set(R,null),set(q,"")}function $e(Ge){set(H,!0);const Je=Ge.name.includes(".")?Ge.name.split(".").pop():"",Te=Je?`${d()}.${Je}`:d();let ve=new XMLHttpRequest;ve.open("POST","/api/tcpassbildupload",!0),ve.setRequestHeader("X-File-Name",Te),ve.setRequestHeader("Seite","theatercard"),ve.onreadystatechange=function(){ve.readyState===4&&(set(H,!1),ve.status===200&&ve.responseText?set(q,ve.responseText.trim(),!0):(get(s).foto="Fehler beim Hochladen des Fotos",console.error("Upload fehlgeschlagen:",ve.status,ve.statusText)))},ve.onerror=function(){set(H,!1),get(s).foto="Netzwerkfehler beim Hochladen"},ve.send(Ge)}function Pe(){let Ge=!0;const Je={name:"",email:"",strasse:"",plz:"",ort:"",foto:"",kontoinhaber:"",iban:"",sepaEinverstaendnis:""};return y.name.trim()===""?(Je.name="Name ist erforderlich",z()?.("name","Name ist erforderlich"),Ge=!1):z()?.("name",""),y.email.trim()===""?(Je.email="E-Mail ist erforderlich",z()?.("email","E-Mail ist erforderlich"),Ge=!1):oe(y.email)?z()?.("email",""):(Je.email="Bitte geben Sie eine gültige E-Mail-Adresse ein",z()?.("email","Bitte geben Sie eine gültige E-Mail-Adresse ein"),Ge=!1),c()?(y.strasse.trim()===""?(z()?.("strasse","Straße ist erforderlich"),Ge=!1):z()?.("strasse",""),y.plz.trim()===""?(z()?.("plz","PLZ ist erforderlich"),Ge=!1):ne(y.plz)?z()?.("plz",""):(z()?.("plz","Bitte geben Sie eine gültige 5-stellige PLZ ein"),Ge=!1),y.ort.trim()===""?(z()?.("ort","Ort ist erforderlich"),Ge=!1):z()?.("ort","")):(y.strasse.trim()===""&&(Je.strasse="Straße ist erforderlich",Ge=!1),y.plz.trim()===""?(Je.plz="PLZ ist erforderlich",Ge=!1):ne(y.plz)||(Je.plz="Bitte geben Sie eine gültige 5-stellige PLZ ein",Ge=!1),y.ort.trim()===""&&(Je.ort="Ort ist erforderlich",Ge=!1)),get(q)||(Je.foto="Bitte laden Sie ein Passfoto hoch",Ge=!1),y.kontoinhaber.trim()===""&&(Je.kontoinhaber="Kontoinhaber ist erforderlich",Ge=!1),y.iban.trim()===""&&(Je.iban="IBAN ist erforderlich",Ge=!1),y.sepaEinverstaendnis||(Je.sepaEinverstaendnis="Ich ermächtige das Staatstheater Augsburg, Zahlungen von meinem Konto mittels Lastschrift einzuziehen. Zugleich weise ich mein Kreditinstitut an, die vom Staatstheater Augsburg auf mein Konto gezogenen Lastschriften einzulösen. Ich nehme zur Kenntnis, dass ich innerhalb von acht Wochen, beginnend mit dem Belastungsdatum, die Erstattung des belasteten Betrages verlangen kann. Es gelten dabei die mit meinem Kreditinstitut vereinbarten Bedingungen.",Ge=!1),m()?w()?.(""):(w()?.("Bitte bestätigen Sie die Abo-Bedingungen und AGB"),Ge=!1),set(s,Je,!0),Ge}function Le(Ge){if(Ge.preventDefault(),get(H)){alert("Foto wird noch hochgeladen, bitte warten…");return}Pe()&&set(ae,!0)}function me(){set(ae,!1)}async function we(Ge){if(Ge.preventDefault(),get(H)){alert("Foto wird noch hochgeladen, bitte warten…");return}if(Pe()){set(re,!0);const Je={...y,foto:get(q),fotoName:get(R)?.name||"",fotoType:get(R)?.type||"",uuid:d()},Te=await fetch("https://staatstheater-augsburg.de/formeingang",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(Je)}),ve=await Te.text();let et;try{et=JSON.parse(ve)}catch{et=null}set(re,!1),!Te.ok||!et||!et.success?(console.error("Server error:",Te.status,ve,et),alert("Fehler beim Speichern: "+(et?.error||"Server-Fehler "+Te.status)),set(e,!1)):(set(f,et.msg||"",!0),set(e,!0),A()?.(et.msg||""))}}function Se(Ge,Je){y[Ge]=Je,get(s)[Ge]&&(get(s)[Ge]="")}var ye=root$d(),ke=child(ye);{var Ae=Ge=>{var Je=root_1$6(),Te=sibling(child(Je),2),ve=child(Te);template_effect(()=>set_text(ve,get(f)||"Vielen Dank! Ihre Theatercard-Bestellung wurde erfolgreich übermittelt.")),append(Ge,Je)},Ie=Ge=>{var Je=root_2$6(),Te=sibling(first_child(Je),2);{var ve=at=>{var st=root_3$5(),vt=sibling(child(st),2),gt=sibling(child(vt)),Ot=child(gt),Dt=sibling(vt,2),Gt=sibling(child(Dt)),Ft=child(Gt),Pt=sibling(Dt,2);{var qt=Wt=>{var ln=root_4$5(),_n=sibling(child(ln)),xn=child(_n);template_effect(()=>set_text(xn,y.telefon)),append(Wt,ln)};if_block(Pt,Wt=>{y.telefon&&Wt(qt)})}var on=sibling(Pt,2),He=sibling(child(on)),Ve=child(He),pt=sibling(on,2),wt=sibling(child(pt)),nn=child(wt);template_effect(()=>{set_text(Ot,y.name),set_text(Ft,y.email),set_text(Ve,y.strasse),set_text(nn,`${y.plz??""} ${y.ort??""}`)}),append(at,st)};if_block(Te,at=>{c()||at(ve)})}var et=sibling(Te,2);
2373{var mt=at=>{var st=root_5$5(),vt=sibling(child(st),2),gt=sibling(child(vt)),Ot=child(gt);template_effect(()=>set_text(Ot,y.bemerkungen)),append(at,st)};if_block(et,at=>{y.bemerkungen&&at(mt)})}var ht=sibling(et,2),ct=sibling(child(ht),2),Ue=sibling(child(ct)),ot=child(Ue),bt=sibling(ht,2),At=sibling(child(bt),2),ft=sibling(child(At)),be=child(ft),Et=sibling(At,2),St=sibling(child(Et)),Jt=child(St),Bt=sibling(Et,2);{var Vt=at=>{var st=root_6$2(),vt=sibling(child(st)),gt=child(vt);template_effect(()=>set_text(gt,y.bic)),append(at,st)};if_block(Bt,at=>{y.bic&&at(Vt)})}var Tt=sibling(Bt,2);{var Be=at=>{var st=root_7$1(),vt=sibling(child(st)),gt=child(vt);template_effect(()=>set_text(gt,y.bankname)),append(at,st)};if_block(Tt,at=>{y.bankname&&at(Be)})}var Xe=sibling(bt,4),Ke=child(Xe),nt=sibling(Ke,2),xt=child(nt);{var Mt=at=>{var st=text$1("Wird gesendet…");append(at,st)},Ye=at=>{var st=text$1("Kostenpflichtig bestellen");append(at,st)};if_block(xt,at=>{get(re)?at(Mt):at(Ye,-1)})}template_effect(()=>{set_text(ot,get(q)?"Hochgeladen":"Kein Foto"),set_text(be,y.kontoinhaber),set_text(Jt,y.iban),nt.disabled=get(re)||get(H)}),delegated("click",Ke,me),delegated("click",nt,we),append(Ge,Je)},qe=Ge=>{var Je=root_10$2(),Te=child(Je);{var ve=Ye=>{var at=root_11$2(),st=first_child(at),vt=child(st),gt=child(vt),Ot=sibling(vt,2);let Dt;var Gt=sibling(st,2),Ft=child(Gt),Pt=child(Ft),qt=sibling(Ft,2);let on;var He=sibling(Gt,2),Ve=child(He),pt=child(Ve),wt=sibling(Ve,2);let nn;var Wt=sibling(He,2),ln=child(Wt),_n=child(ln),xn=child(_n),rn=sibling(_n,2);let vn;var Yn=sibling(ln,2),Nn=child(Yn),gn=child(Nn),pr=sibling(Nn,2);let Ln;template_effect(()=>{set_class(vt,1,clsx(get(s).name?"rot":""),"svelte-1l404ln"),set_text(gt,get(s).name||"Name, Vorname"),set_value(Ot,y.name),Dt=set_class(Ot,1,"svelte-1l404ln",null,Dt,{error:get(s).name}),set_class(Ft,1,clsx(get(s).email?"rot":""),"svelte-1l404ln"),set_text(Pt,get(s).email||"E-Mail"),set_value(qt,y.email),on=set_class(qt,1,"svelte-1l404ln",null,on,{error:get(s).email}),set_class(Ve,1,clsx(get(s).strasse?"rot":""),"svelte-1l404ln"),set_text(pt,get(s).strasse||"Straße und Hausnummer"),set_value(wt,y.strasse),nn=set_class(wt,1,"svelte-1l404ln",null,nn,{error:get(s).strasse}),set_class(_n,1,clsx(get(s).plz?"rot":""),"svelte-1l404ln"),set_text(xn,get(s).plz||"PLZ"),set_value(rn,y.plz),vn=set_class(rn,1,"svelte-1l404ln",null,vn,{error:get(s).plz}),set_class(Nn,1,clsx(get(s).ort?"rot":""),"svelte-1l404ln"),set_text(gn,get(s).ort||"Ort"),set_value(pr,y.ort),Ln=set_class(pr,1,"svelte-1l404ln",null,Ln,{error:get(s).ort})}),delegated("input",Ot,Xn=>Se("name",Xn.target.value)),delegated("input",qt,Xn=>Se("email",Xn.target.value)),delegated("input",wt,Xn=>Se("strasse",Xn.target.value)),delegated("input",rn,Xn=>Se("plz",Xn.target.value)),delegated("input",pr,Xn=>Se("ort",Xn.target.value)),append(Ye,at)};if_block(Te,Ye=>{c()||Ye(ve)})}var et=sibling(Te,2),mt=sibling(child(et),2),ht=sibling(et,2);FormularSEPA(ht,{get data(){return y},get errors(){return get(s)}});var ct=sibling(ht,2),Ue=child(ct);let ot;var bt=child(Ue),At=sibling(Ue,2);let ft;var be=child(At);{var Et=Ye=>{var at=root_12$2(),st=first_child(at),vt=sibling(st,2),gt=child(vt),Ot=sibling(vt,2);{var Dt=Pt=>{var qt=root_13$1();append(Pt,qt)},Gt=Pt=>{var qt=root_14();append(Pt,qt)};if_block(Ot,Pt=>{get(H)?Pt(Dt):get(q)&&Pt(Gt,1)})}var Ft=sibling(Ot,2);template_effect(Pt=>{set_attribute(st,"src",get(te)),set_text(gt,`${get(R).name??""} (${Pt??""} KB)`)},[()=>(get(R).size/1024).toFixed(1)]),delegated("click",Ft,Pt=>{Pt.stopPropagation(),Oe()}),append(Ye,at)},St=Ye=>{var at=root_15();append(Ye,at)};if_block(be,Ye=>{get(R)?Ye(Et):Ye(St,-1)})}var Jt=sibling(At,2),Bt=sibling(ct,2),Vt=child(Bt),Tt=child(Vt),Be=sibling(Tt,4),Xe=sibling(Bt,2),Ke=child(Xe),nt=child(Ke);{var xt=Ye=>{var at=text$1("Wird gesendet…");append(Ye,at)},Mt=Ye=>{var at=text$1("Weiter zum Überprüfen ihrer Bestellung");append(Ye,at)};if_block(nt,Ye=>{get(re)?Ye(xt):Ye(Mt,-1)})}template_effect(()=>{set_value(mt,y.bemerkungen),ot=set_class(Ue,1,"dropzone-label svelte-1l404ln",null,ot,{rot:!!get(s).foto}),set_text(bt,get(s).foto||"Passfoto hochladen"),ft=set_class(At,1,"dropzone svelte-1l404ln",null,ft,{hover:get(g)}),set_checked(Tt,m()),set_class(Be,1,clsx(p()?"rot":""),"svelte-1l404ln"),Ke.disabled=get(re)||get(H)}),event("submit",Je,Le),delegated("input",mt,Ye=>Se("bemerkungen",Ye.target.value)),delegated("click",At,()=>document.getElementById("tc-file-input")?.click()),event("dragover",At,ue),event("dragleave",At,he),event("drop",At,ce),delegated("change",Jt,ge),delegated("click",Tt,function(...Ye){n.onToggleAGB?.apply(this,Ye)}),append(Ge,Je)};if_block(ke,Ge=>{get(e)?Ge(Ae):get(ae)?Ge(Ie,1):Ge(qe,-1)})}append(o,ye),pop()}delegate(["click","input","change"]);var root_1$5=from_html('<div class="success-message svelte-13tut7t"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" style="display:inline; vertical-align:middle; margin-right:8px;"><path d="M20 6L9 17l-5-5" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg> <span style="vertical-align:middle;"> </span></div>'),root_4$4=from_html('<div class="review-row svelte-13tut7t"><span class="review-label svelte-13tut7t">Telefon</span><span class="review-value svelte-13tut7t"> </span></div>'),root_3$4=from_html('<div class="review-section svelte-13tut7t"><h3 class="svelte-13tut7t">Persönliche Daten</h3> <div class="review-row svelte-13tut7t"><span class="review-label svelte-13tut7t">
2373Name</span><span class="review-value svelte-13tut7t"> </span></div> <div class="review-row svelte-13tut7t"><span class="review-label svelte-13tut7t">E-Mail</span><span class="review-value svelte-13tut7t"> </span></div> <!> <div class="review-row svelte-13tut7t"><span class="review-label svelte-13tut7t">Straße</span><span class="review-value svelte-13tut7t"> </span></div> <div class="review-row svelte-13tut7t"><span class="review-label svelte-13tut7t">PLZ / Ort</span><span class="review-value svelte-13tut7t"> </span></div></div>'),root_5$4=from_html('<div class="review-row svelte-13tut7t"><span class="review-label svelte-13tut7t">BIC</span><span class="review-value svelte-13tut7t"> </span></div>'),root_6$1=from_html('<div class="review-row svelte-13tut7t"><span class="review-label svelte-13tut7t">Bank</span><span class="review-value svelte-13tut7t"> </span></div>'),root_2$5=from_html('<div class="review-heading svelte-13tut7t">Bitte überprüfen Sie Ihre Angaben</div> <!> <div class="review-section svelte-13tut7t"><h3 class="svelte-13tut7t">Bankdaten</h3> <div class="review-row svelte-13tut7t"><span class="review-label svelte-13tut7t">Kontoinhaber</span><span class="review-value svelte-13tut7t"> </span></div> <div class="review-row svelte-13tut7t"><span class="review-label svelte-13tut7t">IBAN</span><span class="review-value svelte-13tut7t"> </span></div> <!> <!></div> <div class="review-section svelte-13tut7t"><h3 class="svelte-13tut7t">Bestätigungen</h3> <div class="review-row svelte-13tut7t"><span class="review-label svelte-13tut7t">SEPA-Einverständnis</span><span class="review-value svelte-13tut7t">Ja</span></div> <div class="review-row svelte-13tut7t"><span class="review-label svelte-13tut7t">AGB</span><span class="review-value svelte-13tut7t">Akzeptiert</span></div></div> <div class="button-group svelte-13tut7t"><button type="button" class="btn-secondary svelte-13tut7t">Zurück zur Bearbeitung</button> <button type="button" class="btn-primary svelte-13tut7t"><!></button></div>',1),root_10$1=from_html('<div class="form-group svelte-13tut7t"><label for="sepa-name" class="svelte-13tut7t">Name, Vorname</label> <input id="sepa-name" type="text" class="svelte-13tut7t"/></div> <div class="form-group svelte-13tut7t"><label for="sepa-email" class="svelte-13tut7t">E-Mail</label> <input id="sepa-email" type="email" class="svelte-13tut7t"/></div> <div class="form-group svelte-13tut7t"><label for="sepa-telefon" class="svelte-13tut7t">Telefon (optional)</label> <input id="sepa-telefon" type="tel" class="svelte-13tut7t"/></div> <div class="form-group svelte-13tut7t"><label for="sepa-strasse" class="svelte-13tut7t">Straße und Hausnummer</label> <input id="sepa-strasse" type="text" class="svelte-13tut7t"/></div> <div class="form-grid svelte-13tut7t"><div class="form-group svelte-13tut7t"><label for="sepa-plz" class="svelte-13tut7t">PLZ</label> <input id="sepa-plz" type="text" class="svelte-13tut7t"/></div> <div class="form-group svelte-13tut7t"><label for="sepa-ort" class="svelte-13tut7t">Ort</label> <input id="sepa-ort" type="text" class="svelte-13tut7t"/></div></div>',1),root_9$1=from_html('<form><!> <!> <div class="form-group checkbox-wrapper svelte-13tut7t"><label class="checkbox-label svelte-13tut7t"><input type="checkbox" class="svelte-13tut7t"/> <span class="checkmark"></span> <span>Hiermit bestätige ich, dass ich die Abo-Bedingungen und Allgemeinen Geschäftsbedingungen des Staatstheater Augsburg gelesen habe und stimme ihrer Geltung ausdrücklich zu.</span></label></div> <div class="button-group svelte-13tut7t"><button type="submit" class="btn-primary svelte-13tut7t"><!></button></div></form>'),root$c=from_html('<div class="container"><div class="form-wrapper"><!></div></div>');function FormSEPA(o,n){push(n,!0);let c=prop(n,"embedded",3,!1),d=prop(n,"uuid",3,""),h=prop(n,"adresse",19,()=>({name:"",email:"",telefon:"",strasse:"",plz:"",ort:""})),m=prop(n,"agbAkzeptiert",3,!1),p=prop(n,"agbError",3,""),w=prop(n,"onAGBError",3,void 0),z=prop(n,"setAddressError",3,void 0),A=prop(n,"onSubmitted",3,void 0),y=proxy({name:h().name||"",email:h().email||"",telefon:h().telefon||"",strasse:h().strasse||"",plz:h().plz||"",ort:h().ort||"",typ:"sepa",kontoinhaber:"",iban:"",bic:"",bankname:"",sepaEinverstaendnis:!1});user_effect(()=>{c()&&h()&&(y.name=h().name||"",y.email=h().email||"",y.telefon=h().telefon||"",y.strasse
2373=h().strasse||"",y.plz=h().plz||"",y.ort=h().ort||"")});let s=state(proxy({name:"",email:"",strasse:"",plz:"",ort:"",kontoinhaber:"",iban:"",sepaEinverstaendnis:""})),e=state(!1),f=state(""),g=state(!1),R=state(!1);function q(){let he=!0;const ge={name:"",email:"",strasse:"",plz:"",ort:"",kontoinhaber:"",iban:"",sepaEinverstaendnis:""};return c()?(y.name.trim()===""?(z()?.("name","Name ist erforderlich"),he=!1):z()?.("name",""),y.email.trim()===""?(z()?.("email","E-Mail ist erforderlich"),he=!1):z()?.("email",""),y.strasse.trim()===""?(z()?.("strasse","Straße ist erforderlich"),he=!1):z()?.("strasse",""),y.plz.trim()===""?(z()?.("plz","PLZ ist erforderlich"),he=!1):z()?.("plz",""),y.ort.trim()===""?(z()?.("ort","Ort ist erforderlich"),he=!1):z()?.("ort","")):(y.name.trim()===""&&(ge.name="Name ist erforderlich",he=!1),y.email.trim()===""&&(ge.email="E-Mail ist erforderlich",he=!1),y.strasse.trim()===""&&(ge.strasse="Straße ist erforderlich",he=!1),y.plz.trim()===""&&(ge.plz="PLZ ist erforderlich",he=!1),y.ort.trim()===""&&(ge.ort="Ort ist erforderlich",he=!1)),y.kontoinhaber.trim()===""&&(ge.kontoinhaber="Kontoinhaber ist erforderlich",he=!1),y.iban.trim()===""&&(ge.iban="IBAN ist erforderlich",he=!1),y.sepaEinverstaendnis||(ge.sepaEinverstaendnis="Ich ermächtige das Staatstheater Augsburg, Zahlungen von meinem Konto mittels Lastschrift einzuziehen. Zugleich weise ich mein Kreditinstitut an, die vom Staatstheater Augsburg auf mein Konto gezogenen Lastschriften einzulösen. Ich nehme zur Kenntnis, dass ich innerhalb von acht Wochen, beginnend mit dem Belastungsdatum, die Erstattung des belasteten Betrages verlangen kann. Es gelten dabei die mit meinem Kreditinstitut vereinbarten Bedingungen.",he=!1),m()?w()?.(""):(w()?.("Bitte bestätigen Sie die Abo-Bedingungen und AGB"),he=!1),set(s,ge,!0),he}function H(he){he.preventDefault(),q()&&set(R,!0)}function te(){set(R,!1)}async function re(he){he.preventDefault(),set(g,!0);const ge=await fetch("https://staatstheater-augsburg.de/formeingang",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({...y,uuid:d()})}),Oe=await ge.text();let $e;try{$e=JSON.parse(Oe)}catch{$e=null}set(g,!1),!ge.ok||!$e||!$e.success?(console.error("Server error:",ge.status,Oe,$e),alert("Fehler beim Speichern: "+($e?.error||"Server-Fehler "+ge.status)),set(e,!1)):(set(f,$e.msg||"",!0),set(e,!0),A()?.($e.msg||""))}var ae=root$c(),ne=child(ae),oe=child(ne);{var le=he=>{var ge=root_1$5(),Oe=sibling(child(ge),2),$e=child(Oe);template_effect(()=>set_text($e,get(f)||"Vielen Dank! Ihre SEPA-Einzugsermächtigung wurde erfolgreich übermittelt.")),append(he,ge)},ce=he=>{var ge=root_2$5(),Oe=sibling(first_child(ge),2);{var $e=ct=>{var Ue=root_3$4(),ot=sibling(child(Ue),2),bt=sibling(child(ot)),At=child(bt),ft=sibling(ot,2),be=sibling(child(ft)),Et=child(be),St=sibling(ft,2);{var Jt=nt=>{var xt=root_4$4(),Mt=sibling(child(xt)),Ye=child(Mt);template_effect(()=>set_text(Ye,y.telefon)),append(nt,xt)};if_block(St,nt=>{y.telefon&&nt(Jt)})}var Bt=sibling(St,2),Vt=sibling(child(Bt)),Tt=child(Vt),Be=sibling(Bt,2),Xe=sibling(child(Be)),Ke=child(Xe);template_effect(()=>{set_text(At,y.name),set_text(Et,y.email),set_text(Tt,y.strasse),set_text(Ke,`${y.plz??""} ${y.ort??""}`)}),append(ct,Ue)};if_block(Oe,ct=>{c()||ct($e)})}var Pe=sibling(Oe,2),Le=sibling(child(Pe),2),me=sibling(child(Le)),we=child(me),Se=sibling(Le,2),ye=sibling(child(Se)),ke=child(ye),Ae=sibling(Se,2);{var Ie=ct=>{var Ue=root_5$4(),ot=sibling(child(Ue)),bt=child(ot);template_effect(()=>set_text(bt,y.bic)),append(ct,Ue)};if_block(Ae,ct=>{y.bic&&ct(Ie)})}var qe=sibling(Ae,2);{var Ge=ct=>{var Ue=root_6$1(),ot=sibling(child(Ue)),bt=child(ot);template_effect(()=>set_text(bt,y.bankname)),append(ct,Ue)};if_block(qe,ct=>{y.bankname&&ct(Ge)})}var Je=sibling(Pe,4),Te=child(Je),ve=sibling(Te,2),et=child(ve);{var mt=ct=>{var Ue=text$1("Wird gesendet…");append(ct,Ue)},ht=ct=>{var Ue=text$1("Kostenpflichtig bestellen");append(ct,Ue)};if_block(et,ct=>{get(g)?ct(mt):ct(ht,-1)})}template_effect(()=>{set_text(we,y.kontoinhaber),set_text(ke,y.iban),ve.disabled=get(g)}),delegated("click",Te,te),delegated("click",ve,re),append(he,ge)},ue=he=>{var ge=root_9$1(),Oe=child(ge);{var $e=Ge=>{var Je=root_10$1(),Te=first_child(Je),ve=sibling(child(Te),2),et=sibling(Te,2),mt=sibling(child(et),2),ht=sibling(et,2),ct=sibling(child(ht),2),Ue=sibling(ht,2),ot=sibling(child(Ue),2),bt=sibling(Ue,2),At=child(bt),ft=sibling(child(At),2),be=sibling(At,2),Et=sibling(child(be),2);bind_value(ve,()=>y.name,St=>y.name=St),bind_value(mt,()=>y.email,St=>y.email=St),bind_value(ct,()=>y.telefon,St=>y.telefon=St),bind_value(ot,()=>y.strasse,St=>
2373y.strasse=St),bind_value(ft,()=>y.plz,St=>y.plz=St),bind_value(Et,()=>y.ort,St=>y.ort=St),append(Ge,Je)};if_block(Oe,Ge=>{c()||Ge($e)})}var Pe=sibling(Oe,2);FormularSEPA(Pe,{get data(){return y},get errors(){return get(s)}});var Le=sibling(Pe,2),me=child(Le),we=child(me),Se=sibling(we,4),ye=sibling(Le,2),ke=child(ye),Ae=child(ke);{var Ie=Ge=>{var Je=text$1("Wird gesendet…");append(Ge,Je)},qe=Ge=>{var Je=text$1("Weiter zum Überprüfen ihrer Bestellung");append(Ge,Je)};if_block(Ae,Ge=>{get(g)?Ge(Ie):Ge(qe,-1)})}template_effect(()=>{set_checked(we,m()),set_class(Se,1,clsx(p()?"rot":""),"svelte-13tut7t"),ke.disabled=get(g)}),event("submit",ge,H),delegated("click",we,function(...Ge){n.onToggleAGB?.apply(this,Ge)}),append(he,ge)};if_block(oe,he=>{get(e)?he(le):get(R)?he(ce,1):he(ue,-1)})}append(o,ae),pop()}delegate(["click"]);var root_2$4=from_html('<div class="form-group svelte-zu5t8u"><label for="f-name"> </label> <input id="f-name" type="text"/></div> <div class="form-group svelte-zu5t8u"><label for="f-email"> </label> <input id="f-email" type="email"/></div> <div class="form-group svelte-zu5t8u"><label for="f-telefon" class="svelte-zu5t8u">Telefon (optional)</label> <input id="f-telefon" type="tel" class="svelte-zu5t8u"/></div> <div class="form-group svelte-zu5t8u"><label for="f-strasse"> </label> <input id="f-strasse" type="text"/></div> <div class="form-grid svelte-zu5t8u"><div class="form-group svelte-zu5t8u"><label for="f-plz"> </label> <input id="f-plz" type="text"/></div> <div class="form-group svelte-zu5t8u"><label for="f-ort"> </label> <input id="f-ort" type="text"/></div></div>',1),root_1$4=from_html("<!> <!>",1),root$b=from_html('<div class="formular-wrapper svelte-zu5t8u"><div class="form-group svelte-zu5t8u"><select id="f-typ" class="svelte-zu5t8u"><option>Bitte wählen …</option><option>Abo</option><option>Theaterbus Einzelkarten</option><option>Theaterbus Abo</option><option>Abo-Wechsel</option><option>Theatercard</option><option>SEPA-Mandat</option></select></div> <!></div>');function Formular(o,n){push(n,!0);let c=state("");function d(){return typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(ge){const Oe=Math.random()*16|0;return(ge==="x"?Oe:Oe&3|8).toString(16)})}let h=proxy(d()),m=proxy({name:"",email:"",telefon:"",strasse:"",plz:"",ort:""}),p=state(!1),w=state(""),z=state(!1),A=state("");function y(ge){set(z,!0),set(A,ge,!0)}let s=proxy({name:"",email:"",strasse:"",plz:"",ort:""});function e(){set(p,!get(p)),get(w)&&set(w,"")}function f(ge,Oe){s[ge]=Oe}function g(ge,Oe){m[ge]=Oe,ge==="plz"?/^[0-9]{5}$/.test(Oe)&&(s.plz=""):ge==="email"?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(Oe)&&(s.email=""):Oe.trim()&&(s[ge]="")}
2373var R=root$b(),q=child(R),H=child(q),te=child(H);te.value=te.__value="";var re=sibling(te);re.value=re.__value="abo";var ae=sibling(re);ae.value=ae.__value="theaterbus-einzel";var ne=sibling(ae);ne.value=ne.__value="theaterbus-abo";var oe=sibling(ne);oe.value=oe.__value="abowechsel";var le=sibling(oe);le.value=le.__value="theatercard";var ce=sibling(le);ce.value=ce.__value="sepa";var ue=sibling(q,2);{var he=ge=>{var Oe=root_1$4(),$e=first_child(Oe);{var Pe=Ie=>{var qe=root_2$4(),Ge=first_child(qe),Je=child(Ge),Te=child(Je),ve=sibling(Je,2);let et;var mt=sibling(Ge,2),ht=child(mt),ct=child(ht),Ue=sibling(ht,2);let ot;var bt=sibling(mt,2),At=sibling(child(bt),2),ft=sibling(bt,2),be=child(ft),Et=child(be),St=sibling(be,2);let Jt;var Bt=sibling(ft,2),Vt=child(Bt),Tt=child(Vt),Be=child(Tt),Xe=sibling(Tt,2);let Ke;var nt=sibling(Vt,2),xt=child(nt),Mt=child(xt),Ye=sibling(xt,2);let at;template_effect(()=>{set_class(Je,1,clsx(s.name?"rot":""),"svelte-zu5t8u"),set_text(Te,s.name||"Name, Vorname"),set_value(ve,m.name),et=set_class(ve,1,"svelte-zu5t8u",null,et,{error:s.name}),set_class(ht,1,clsx(s.email?"rot":""),"svelte-zu5t8u"),set_text(ct,s.email||"E-Mail"),set_value(Ue,m.email),ot=set_class(Ue,1,"svelte-zu5t8u",null,ot,{error:s.email}),set_value(At,m.telefon),set_class(be,1,clsx(s.strasse?"rot":""),"svelte-zu5t8u"),set_text(Et,s.strasse||"Straße und Hausnummer"),set_value(St,m.strasse),Jt=set_class(St,1,"svelte-zu5t8u",null,Jt,{error:s.strasse}),set_class(Tt,1,clsx(s.plz?"rot":""),"svelte-zu5t8u"),set_text(Be,s.plz||"PLZ"),set_value(Xe,m.plz),Ke=set_class(Xe,1,"svelte-zu5t8u",null,Ke,{error:s.plz}),set_class(xt,1,clsx(s.ort?"rot":""),"svelte-zu5t8u"),set_text(Mt,s.ort||"Ort"),set_value(Ye,m.ort),at=set_class(Ye,1,"svelte-zu5t8u",null,at,{error:s.ort})}),delegated("input",ve,st=>g("name",st.target.value)),delegated("input",Ue,st=>g("email",st.target.value)),delegated("input",At,st=>g("telefon",st.target.value)),delegated("input",St,st=>g("strasse",st.target.value)),delegated("input",Xe,st=>g("plz",st.target.value)),delegated("input",Ye,st=>g("ort",st.target.value)),append(Ie,qe)};if_block($e,Ie=>{get(z)||Ie(Pe)})}var Le=sibling($e,2);{var me=Ie=>{Form(Ie,{embedded:!0,get uuid(){return h},get adresse(){return m},get agbAkzeptiert(){return get(p)},get agbError(){return get(w)},onToggleAGB:e,onAGBError:qe=>set(w,qe,!0),setAddressError:f,onSubmitted:y,onSelectTheaterbus:()=>set(c,"theaterbus-abo")})},we=Ie=>{FormTheaterbusEinzeln(Ie,{embedded:!0,get uuid(){return h},get adresse(){return m},get agbAkzeptiert(){return get(p)},get agbError(){return get(w)},onToggleAGB:e,onAGBError:qe=>set(w,qe,!0),setAddressError:f,onSubmitted:y})},Se=Ie=>{FormTheaterbus(Ie,{embedded:!0,get uuid(){return h},get adresse(){return m},get agbAkzeptiert(){return get(p)},get agbError(){return get(w)},onToggleAGB:e,onAGBError:qe=>set(w,qe,!0),setAddressError:f,onSubmitted:y})},ye=Ie=>{Formabowechsel(Ie,{embedded:!0,get uuid(){return h},get adresse(){return m},get agbAkzeptiert(){return get(p)},get agbError(){return get(w)},onToggleAGB:e,onAGBError:qe=>set(w,qe,!0),setAddressError:f,onSubmitted:y})},ke=Ie=>{FormTheatercard(Ie,{embedded:!0,get uuid(){return h},get adresse(){return m},get agbAkzeptiert(){return get(p)},get agbError(){return get(w)},onToggleAGB:e,onAGBError:qe=>set(w,qe,!0),setAddressError:f,onSubmitted:y})},Ae=Ie=>{FormSEPA(Ie,{embedded:!0,get uuid(){return h},get adresse(){return m},get agbAkzeptiert(){return get(p)},get agbError(){return get(w)},onToggleAGB:e,onAGBError:qe=>set(w,qe,!0),setAddressError:f,onSubmitted:y})};if_block(Le,Ie=>{get(c)==="abo"?Ie(me):get(c)==="theaterbus-einzel"?Ie(we,1):get(c)==="theaterbus-abo"?Ie(Se,2):get(c)==="abowechsel"?Ie(ye,3):get(c)==="theatercard"?Ie(ke,4):get(c)==="sepa"&&Ie(Ae,5)})}append(ge,Oe)};if_block(ue,ge=>{get(c)!=""&&ge(he)})}bind_select_value(H,()=>get(c),ge=>set(c,ge)),append(o,R),pop()}delegate(["input"]);var root$a=from_html('<div class="card svelte-178bdmd"><div><img class="front svelte-178bdmd" alt="card front"/> <img class="back svelte-178bdmd" alt="card back"/></div></div>');function Memcard(o,n){push(n,!0);const c=()=>{n.disabled||n.handleChoice(n.card)};var d=root$a(),h=child(d);let m;var p=child(h),w=sibling(p,2);template_effect(()=>{m=set_class(h,1,"svelte-178bdmd",null,m,{flipped:n.flipped}),set_attribute(p,"src",`https://staatstheater-augsburg.de/img/rapunzel_merkspiel/100/${n.card.src??""}`),set_attribute(w,"src",n.imgCover)}),delegated("click",w,c),append(o,d),pop()}delegate(["click"]);var root$9=from_html('<p style="background:#d04b1f;margin-bottom:6px;padding:8px;color:#d5cbae;font-weight:300;letter-spacing:.14rem;border-radius:3px">Ein HAARiges Merkspiel</p> <div class="card-grid svelte-1k1rlj3"></div>',1);function Mem(o,n){push(n,!0);const c=["rapunzel_merkspiel_foto_jan-pieter_fuhr_7862.jpg","rapunzel_merkspiel_foto_jan-pieter_fuhr_7861.jpg","rapunzel_merkspiel_foto_jan-pieter_fuhr_7860.jpg","rapunzel_merkspiel_foto_jan-pieter_fuhr_7859.jpg","rapunzel_merkspiel_foto_jan-pieter_fuhr_7857.jpg","rapunzel_merkspiel_foto_jan-pieter_fuhr_7856.jpg","rapunzel_merkspiel_foto_jan-pieter_fuhr_7855.jpg","rapunzel_merkspiel_foto_jan-pieter_fuhr_7854.
2373jpg","rapunzel_merkspiel_foto_jan-pieter_fuhr_7852.jpg","rapunzel_merkspiel_foto_jan-pieter_fuhr_7737.jpg"];let d="https://staatstheater-augsburg.de/img/rapunzel_merkspiel/100/rapunzel_merkspiel_foto_jan-pieter_fuhr_7848.jpg",h=state(proxy(_.map(c,R=>({src:R,matched:!1})))),m=state(0),p=state(null),w=state(null),z=state(!1),A=state(void 0);user_effect(()=>{_.filter(get(h),R=>R.matched).length==20&&alert(get(m)+" Umdrehungen. Auf der Bühne ist die HAARige Angelegenheit ab 8.11.2025 zu sehen.")});const y=()=>{set(A,performance.now(),!0);const R=_.shuffle([...get(h),...get(h)]).map(q=>({...q,id:Math.random()}));set(h,R,!0),set(m,0)},s=R=>{set(m,get(m)+1),get(p)?set(w,R,!0):set(p,R,!0)};user_effect(()=>{get(p)&&get(w)&&(set(z,!0),get(p).src===get(w).src?(console.log("those cards match"),set(h,get(h).map(R=>R.src===get(p).src?{...R,matched:!0}:R),!0),e()):(console.log("those cards do not match"),setTimeout(()=>e(),1e3)))}),user_effect(()=>{y()});const e=()=>{set(p,null),set(w,null),set(z,!1)};var f=root$9(),g=sibling(first_child(f),2);each(g,21,()=>get(h),R=>R.id,(R,q)=>{{let H=user_derived(()=>get(q)===get(p)||get(q)===get(w)||get(q).matched);Memcard(R,{get card(){return get(q)},imgCover:d,get disabled(){return get(z)},handleChoice:s,get flipped(){return get(H)}})}}),append(o,f),pop()}var root$8=from_html('<div style="background: #eee; padding-bottom:.5rem;"><p style="margin: 0"><img style="margin-bottom:.4rem"/></p> <p class="text svelte-hm4371"></p> <p class="credits svelte-hm4371"> <a style="border: 3px solid rgb(232, 225, 3);border-radius:9px;padding:2px 4px;background:none;font-family:museosans;font-weight:500;font-size:.8rem;text-transform:uppercase;letter-spacing:.05rem">Download</a></p></div>');function Fotoblock(o,n){push(n,!0);var c=root$8(),d=child(c),h=child(d),m=sibling(d,2);html(m,()=>markdownitinline(n.text),!0);var p=sibling(m,2),w=child(p),z=sibling(w);template_effect(()=>{set_attribute(h,"src",`/img/${n.verzeichnis??""}/600x600/${n.img??""}`),set_text(w,`Foto: ${n.fotograf??""} `),set_attribute(z,"href",`/img2dl/${n.verzeichnis??""}/original/${n.img??""}`)}),append(o,c),pop()}var root$7=from_html('<div role="button" style="overflow:hidden;"><img/></div> <div class="raster svelte-139sl4j"></div> <div class="typo svelte-139sl4j"><h2 class="text svelte-139sl4j"></h2> <h3 class="subtext svelte-139sl4j"></h3> <div class="sparte svelte-139sl4j"><div class="svelte-139sl4j"></div></div></div>',1);function Bildkachel(o,n){push(n,!0);var c=root$7(),d=first_child(c),h=child(d),m=sibling(d,2),p=sibling(m,2),w=child(p);html(w,()=>markdownitinline(n.text),!0);var z=sibling(w,2);html(z,()=>markdownitinline(n.subtext),!0);var A=sibling(z,2),y=child(A);html(y,()=>markdownitinline(n.sparte),!0),template_effect(()=>{set_style(h,`display:block;${n.breite?"max-width:"+n.breite+"%":""};${n.oben?"margin-top:-"+n.oben+"%":""};${n.links?"margin-left:-"+n.links+"%":""};`),set_attribute(h,"src",n.bgimg),set_attribute(h,"alt",`Szenenfoto aus ${n.text??""}`),set_style(m,n.rasterstyle||"")}),append(o,c),pop()}const UMLAUT_MAP={ä:"ae",ö:"oe",ü:"ue",ß:"ss"},STOPWORDS=new Set(["der","die","das","den","dem","ein","eine","einer","einen","einem","eines","und","oder","aber","auf","mit","für","von","zu","zur","zum","bei","nach","aus","in","an","um","über","unter","durch","gegen","ohne","bis","wie","als","so","dass","wenn","weil","ob","obwohl","the","of","and","to","in","a","is","that","for","it","with","as","on","was","be","by"]),DEFAULT_FIELD_WEIGHTS={titel:1.5,untertitel:1.2,funktion:1.2,name:1.5};function levenshtein(o,n,c=1/0){if(o===n)return 0;if(o.length===0)return n.length;if(n.length===0)return o.length;o.length<n.length&&([o,n]=[n,o]);let d=Array.from({length:n.length+1},(h,m)=>m);for(let h=1;h<=o.length;h++){let m=[h],p=h;for(let w=1;w<=n.length;w++){const z=o.charAt(h-1)===n.charAt(w-1)?0:1;m[w]=Math.min(d[w]+1,m[w-1]+1,d[w-1]+z),p=Math.min(p,m[w])}if(p>c)return c+1;d=m}return d[n.length]}function colognePhonetic(o){if(!o)return"";const n=o.toLowerCase();let c="";for(let d=0;d<n.length;d++){const h=n[d],m=n[d+1]||"",p=n[d-1]||"";switch(h){case"a":case"e":case"i":case"j":case"o":case"u":case"y":c+="0";break;case"b":c+="1";break;case"p":c+=m==="h"?"3":"1";break;case"d":case"t":c+=["c","s","z"].includes(m)?"8":"2";break;case"f":case"v":case"w":c+="3";break;case"g":case"k":case"q":c+="4";break;case"c":["a","h","k","o","q","u","x"].includes(m)?c+="4":(["s","z"].includes(p),c+="8");break;case"x":c+=["c","k","q"].includes(p)?"48":"8";break;case"l":c+="5";break;case"m":case"n":c+="6";break;case"r":c+="7";break;case"s":case"z":case"ß":c+="8";break}}return c}function normalize(o){return o?o.toLowerCase().replace(/[äöüß]/g,n=>UMLAUT_MAP[n]).replace(/[^a-z0-9\s]/g," "):""}function tokenize(o){return normalize(o).split(/\s+/).filter(n=>n.length>2&&!STOPWORDS.has(n))}async function fetchLocalSnapshot(){try{const o=await fetch("https://staatstheater-augsburg.de/indices/index.json?v="+Date.now());return o.ok?await o.json():null}catch{return null}}function createEmptyEngine(){return{search:()=>Promise.resolve([]),getAutocompleteSuggestions:()=>Promise.resolve([]),setWeights:()=>{},getWeights:()=>DEFAULT_FIELD_WEIGHTS,setFuzzyThreshold:()=>{},getFuzzyThreshold:()=>0}}class ProximitySearch{constructor(n,c={}){this.items=n,this.weights={...DEFAULT_FIELD_WEIGHTS,...c},this.allTokens=new Set,this.docs=n.map(d=>{const h={};
2373return Object.keys(this.weights).forEach(m=>{const p=d[m]||"";h[`_${m}_norm`]=normalize(p),tokenize(p).forEach(w=>this.allTokens.add(w))}),h}),this.tokenArray=Array.from(this.allTokens),this.tokenPhonetics=new Map,this.tokenArray.forEach(d=>this.tokenPhonetics.set(d,colognePhonetic(d)))}findFuzzyMatches(n,c=1,d=8){if(!n||n.length<4)return[];const h=colognePhonetic(n),m=[];for(const p of this.tokenArray){if(p===n||p.length<3)continue;const w=Math.max(1,Math.floor(Math.max(n.length,p.length)/2)),z=levenshtein(n,p,Math.max(c,w)),A=z<=c,y=this.tokenPhonetics.get(p)===h&&h.length>0&&z<=w;if(!A&&!y)continue;let s=0;A&&(s=Math.max(s,1-z/Math.max(n.length,p.length))),y&&(s=Math.max(s,.75)),m.push({token:p,score:s,isFuzzy:A,isPhonetic:y})}return m.sort((p,w)=>w.score-p.score),m.slice(0,d)}search(n){const c=normalize(n),d=tokenize(n);if(d.length===0&&c.length===0)return[];const h=d.length>0?d:c.length>0?[c]:[],m=Math.max(...h.map(A=>A.length)),p=m<=2,w=m<=3,z=[];return h.forEach((A,y)=>{z.push({queryIdx:y,token:A,fuzzy:!1,score:1}),w||this.findFuzzyMatches(A,1,5).forEach(e=>{z.push({queryIdx:y,token:e.token,fuzzy:!0,score:e.score})})}),this.items.map((A,y)=>{const s=this.docs[y];let e=0,f=0,g=[];const R=new Map;Object.entries(this.weights).forEach(([re,ae])=>{const ne=s[`_${re}_norm`];if(!ne)return;const oe=[];if(z.forEach(({token:Le,queryIdx:me,fuzzy:we,score:Se})=>{let ye=ne.indexOf(Le),ke=0;for(;ye!==-1&&ke<20;){const Ae=ye===0||/[^a-z0-9]/.test(ne[ye-1]),Ie=Ae&&(ye+Le.length>=ne.length||/[^a-z0-9]/.test(ne[ye+Le.length]));oe.push({pos:ye,end:ye+Le.length,token:Le,queryIdx:me,isFuzzy:we,score:Se,isWordStart:Ae,isWholeWord:Ie}),ye=ne.indexOf(Le,ye+1),ke++}}),oe.length===0)return;oe.forEach(Le=>{const me=R.get(Le.queryIdx)||0;R.set(Le.queryIdx,Math.max(me,Le.score))});const ce=new Set(oe.map(Le=>Le.queryIdx)).size/h.length;oe.sort((Le,me)=>Le.pos-me.pos);let ue=1/0;for(let Le=0;Le<oe.length;Le++){const me=new Set;for(let we=Le;we<oe.length;we++)if(me.add(oe[we].token),me.size===h.length){const Se=oe[we].end-oe[Le].pos;ue=Math.min(ue,Se);break}}let he=0;if(he+=ce*.35,ue!==1/0){const Le=Math.max(0,1-ue/200);he+=Le*.25}const ge=oe.reduce((Le,me)=>Le+(me.isWordStart?me.score:0),0)/oe.length;he+=ge*.25;const Oe=oe.reduce((Le,me)=>Le+(me.isWholeWord?me.score:0),0)/oe.length;he+=Oe*.15,oe.some(Le=>Le.score===1)&&(he+=.2),p?he=ge*.6+Oe*.3+ce*.1:w&&(he=ge*.45+Oe*.25+ce*.2+(ue!==1/0?Math.max(0,1-ue/200)*.1:0));const Pe=he*ae;e+=Pe,Pe>f&&(f=Pe,g=[...new Set(oe.map(Le=>Le.token))])});const q=h.map((re,ae)=>R.get(ae)||.25),H=q.length>0?q.reduce((re,ae)=>re+ae,0)/q.length:1,te=Math.min((e+f*.5)/2,1)*H;return{...A,score:Math.round(te*100)/100,_matches:g}}).filter(A=>p?A.score>.35:w?A.score>.2:A.score>.05).sort((A,y)=>y.score-A.score)}setWeights(n){this.weights={...this.weights,...n}}getWeights(){return{...this.weights}}}async function createProximitySearch(o,n={}){const{fieldWeights:c}=n;if(!o||o.length===0)return createEmptyEngine();const d=new ProximitySearch(o,c);return{search:h=>Promise.resolve(d.search(h).map(m=>({...m,source:"proximity"}))),setWeights:h=>d.setWeights(h),getWeights:()=>d.getWeights(),setFuzzyThreshold:()=>{},getFuzzyThreshold:()=>0}}var root_4$3=from_html('<div class="suggestion-subtitle svelte-vpvo04"> </div>'),root_2$3=from_html('<li role="option"><div class="suggestion-row"><span class="suggestion-title"> </span> <!></div> <!></li>'),root_1$3=from_html('<ul class="suggestions svelte-vpvo04" role="listbox"></ul>'),root_5$3=from_html('<span class="spinner svelte-vpvo04">⟳</span>'),root_6=from_html('<p class="error svelte-vpvo04"> </p>'),root$6=from_html('<div class="suche-container svelte-vpvo04"><div class="search-box svelte-vpvo04"><!> <input type="search" role="combobox" aria-autocomplete="none"/> <!></div> <!> <!> <!></div>');function Suche(o,n){push(n,!0);let c=state(""),d=state(proxy([])),h=state(!1),m=state(!1),p=state(null),w=state(proxy({...DEFAULT_FIELD_WEIGHTS})),z=state(proxy([])),A=state(-1),y=state(!1),s,e=null,f=0;const g=prop(n,"fieldWeights",19,()=>({})),R=prop(n,"placeholder",3,"Suche …"),q=prop(n,"minQueryLength",3,2);prop(n,"editableSettings",3,!0);let H=null,te=null,re=null;const ne={...DEFAULT_FIELD_WEIGHTS,...g()};onMount(async()=>{try{let ve;const et={fieldWeights:ne};let mt=n.snapshot?.items||n.items||[];if(!mt.length){const ht=await fetchLocalSnapshot();ht&&(mt=ht.items)}ve=await createProximitySearch(mt,et),H=ve.search,te=ve.setWeights,re=ve.getWeights,re&&set(w,re(),!0),set(m,!0)}catch(ve){set(p,ve.message,!0),set(m,!0)}});async function oe(){if(!H)return;const ve=get(c).trim();if(!ve||ve.length<q()){set(z,[],!0),set(y,!1);return}set(h,!0);const et=++f;try{const mt=await H(ve);et===f&&(set(z,mt.slice(0,12),!0),set(y,get(z).length>0),set(A,-1))}catch(mt){et===f&&(set(p,mt.message,!0),set(z,[],!0),set(y,!1))}finally{et===f&&set(h,!1)}}function le(ve){ve.uri&&redirectTo("/"+ve.uri)}function ce(ve){le(ve)}function ue(){if(e&&clearTimeout(e),get(c).trim().length<q()){set(z,[],!0),set(y,!1),set(A,-1),set(d,[],!0);return}e=setTimeout(()=>{oe()},150)}function he(ve){ve.key==="ArrowDown"?(ve.preventDefault(),get(y)&&get(z).length>0?set(A,(get(A)+1)%get(z).length):get(c).trim().length>=q()&&oe()):ve.key==="ArrowUp"?(ve.preventDefault(),get(y)&&get(z).length>0&&set(A,(get(A)-1+get(z).length)%get(z).length)):ve.key==="Enter"?(ve.preventDefault(),get(y)&&get(A)>=0?le(get(z)[get(A)]):get(y)&&get(z).length>0?le(get(z)[0]):get(c).trim().length>=q()&&oe().then(()=>{get(z).length>0&&le(get(z)[0])})):ve.key==="Escape"&&(ve.preventDefault(),set(y,!1),set(A,-1))}function ge(ve){return ve.titel?.trim()||ve.name?.trim()||ve.uri||""}function Oe(ve){return ve.untertitel?.trim()||ve.funktion?.trim()||""}function $e(){setTimeout(()=>{set(y,!1),set(A,-1)},150)}function Pe(){get(z).length>0&&get(c).trim().length>=q()&&set(y,!0)}var Le=root$6(),me=child(Le),we=child(me);{var Se=ve=>{var et=root_1$3();each(et,21,()=>get(z),index,(mt,ht,ct)=>{var Ue=root_2$3();let ot;var bt=child(Ue),At=child(bt),ft=child(At),be=sibling(At,2);if_block(be,Bt=>{});var Et=sibling(bt,2);{var St=Bt=>{var Vt=root_4$3(),Tt=child(Vt);template_effect(Be=>set_text(Tt,Be),[()=>Oe(get(ht))]),append(Bt,Vt)},Jt=user_derived(()=>Oe(get(ht)));if_block(Et,Bt=>{get(Jt)&&Bt(St)})}template_effect(Bt=>{ot=set_class(Ue,1,"suggestion-item svelte-vpvo04",null,ot,{highlighted:ct===get(A)}
2373),set_attribute(Ue,"aria-selected",ct===get(A)),set_text(ft,Bt)},[()=>ge(get(ht))]),delegated("click",Ue,()=>ce(get(ht))),event("mouseenter",Ue,()=>set(A,ct,!0)),append(mt,Ue)}),append(ve,et)};if_block(we,ve=>{get(y)&&get(z).length>0&&ve(Se)})}var ye=sibling(we,2);let ke;bind_this(ye,ve=>s=ve,()=>s);var Ae=sibling(ye,2);{var Ie=ve=>{var et=root_5$3();append(ve,et)};if_block(Ae,ve=>{get(h)&&ve(Ie)})}var qe=sibling(me,2);{var Ge=ve=>{var et=root_6(),mt=child(et);template_effect(()=>set_text(mt,`Fehler: ${get(p)??""}`)),append(ve,et)};if_block(qe,ve=>{get(p)&&ve(Ge)})}var Je=sibling(qe,2);if_block(Je,ve=>{});var Te=sibling(Je,2);if_block(Te,ve=>{}),template_effect(()=>{set_attribute(ye,"placeholder",R()),set_attribute(ye,"aria-expanded",get(y)),ke=set_class(ye,1,"svelte-vpvo04",null,ke,{hero:!!appState.doc.hero&&appState.ypsilon<740})}),delegated("keydown",ye,he),delegated("input",ye,ue),event("blur",ye,$e),event("focus",ye,Pe),bind_value(ye,()=>get(c),ve=>set(c,ve)),append(o,Le),pop()}delegate(["click","keydown","input"]);function Scrollyblock(o){var n=text$1("Hallo");append(o,n)}var root$5=from_html('<div><div class="video3q-wrapper svelte-hic69l"><div class="video3q-container svelte-hic69l"></div></div></div>');function Video3q(o,n){push(n,!0);let c=prop(n,"playoutId",3,""),d=prop(n,"controls",3,!1),h=prop(n,"autoplay",3,!0),m=prop(n,"muted",3,!0),p=prop(n,"loop",3,!0),w=prop(n,"class",3,""),z="video3q-"+Math.random().toString(36).slice(2,9),A=!1;onMount(()=>{if(!c())return;if(document.querySelector('script[src="https://player.3qsdn.com/js3q.latest.js"]')){A=!0,y();return}const f=document.createElement("script");return f.src="https://player.3qsdn.com/js3q.latest.js",f.async=!0,f.onload=()=>{A=!0,y()},document.body.appendChild(f),()=>{const g=document.getElementById(z);g&&(g.innerHTML="")}});function y(){!window.js3q||!c()||new window.js3q({playoutId:c(),container:z,controls:d(),autoplay:h(),muted:m(),loop:p()})}user_effect(()=>{A&&c()&&y()});var s=root$5(),e=child(s);template_effect(()=>{set_class(s,1,`video3q-outer ${w()??""}`,"svelte-hic69l"),set_attribute(e,"id",z)}),append(o,s),pop()}var root$4=from_html('<video playsinline="" preload="auto"></video>',2);function HlsVideo(o,n){push(n,!0);let c=prop(n,"src",3,""),d=prop(n,"controls",3,!1),h=prop(n,"autoplay",3,!0),m=prop(n,"muted",3,!0),p=prop(n,"loop",3,!0),w=prop(n,"class",3,""),z=state(null),A=null;onMount(()=>{if(!(!c()||!get(z)))return y(),()=>{A&&(A.destroy(),A=null)}});async function y(){get(z).canPlayType("application/vnd.apple.mpegurl")?(get(z).src=c(),e()):window.Hls&&window.Hls.isSupported()?(A=new window.Hls({autoStartLoad:!0}),A.loadSource(c()),A.attachMedia(get(z)),A.on(window.Hls.Events.MANIFEST_PARSED,()=>{e()})):(await s(),window.Hls&&window.Hls.isSupported()?(A=new window.Hls({autoStartLoad:!0}),A.loadSource(c()),A.attachMedia(get(z)),A.on(window.Hls.Events.MANIFEST_PARSED,()=>{e()})):console.error("HLS not supported"))}function s(){return new Promise((g,R)=>{if(window.Hls)return g();const q=document.createElement("script");q.src="https://cdn.jsdelivr.net/npm/[email protected]/dist/hls.min.js",q.async=!0,q.onload=g,q.onerror=R,document.head.appendChild(q)})}function e(){if(!h())return;const g=get(z).play();g&&typeof g.catch=="function"&&g.catch(()=>{})}user_effect(()=>{get(z)&&c()&&y()});var f=root$4();bind_this(f,g=>set(z,g),()=>get(z)),template_effect(()=>{set_class(f,1,`hls-video ${w()??""}`,"svelte-1ttna92"),f.controls=d(),f.muted=m(),f.loop=p()}),append(o,f),pop()}const defaultAttributes={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};const hasA11yProp=o=>{for(const n in o)if(n.startsWith("aria-")||n==="role"||n==="title")return!0;return!1};const LucideContext=Symbol("lucide-context"),getLucideContext=()=>getContext(LucideContext);var root$3=from_svg("<svg><!><!></svg>");function Icon(o,n){push(n,!0);const c=getLucideContext()??{},d=prop(n,"color",19,()=>c.color??"currentColor"),h=prop(n,"size",19,()=>c.size??24),m=prop(n,"strokeWidth",19,()=>c.strokeWidth??2),p=prop(n,"absoluteStrokeWidth",19,()=>c.absoluteStrokeWidth??!1),w=prop(n,"iconNode",19,()=>
2373[]),z=rest_props(n,["$$slots","$$events","$$legacy","name","color","size","strokeWidth","absoluteStrokeWidth","iconNode","children"]),A=user_derived(()=>p()?Number(m())*24/Number(h()):m());var y=root$3();attribute_effect(y,f=>({...defaultAttributes,...f,...z,width:h(),height:h(),stroke:d(),"stroke-width":get(A),class:["lucide-icon lucide",c.class,n.name&&`lucide-${n.name}`,n.class]}),[()=>!n.children&&!hasA11yProp(z)&&{"aria-hidden":"true"}]);var s=child(y);each(s,17,w,index,(f,g)=>{var R=user_derived(()=>to_array(get(g),2));let q=()=>get(R)[0],H=()=>get(R)[1];var te=comment$1(),re=first_child(te);element(re,q,!0,(ae,ne)=>{attribute_effect(ae,()=>({...H()}))}),append(f,te)});var e=sibling(s);snippet(e,()=>n.children??noop),append(o,y),pop()}function Menu(o,n){let c=rest_props(n,["$$slots","$$events","$$legacy"]);const d=[["path",{d:"M4 5h16"}],["path",{d:"M4 12h16"}],["path",{d:"M4 19h16"}]];Icon(o,spread_props({name:"menu"},()=>c,{get iconNode(){return d}}))}function Moon(o,n){let c=rest_props(n,["$$slots","$$events","$$legacy"]);const d=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401"}]];Icon(o,spread_props({name:"moon"},()=>c,{get iconNode(){return d}}))}function Sun(o,n){let c=rest_props(n,["$$slots","$$events","$$legacy"]);const d=[["circle",{cx:"12",cy:"12",r:"4"}],["path",{d:"M12 2v2"}],["path",{d:"M12 20v2"}],["path",{d:"m4.93 4.93 1.41 1.41"}],["path",{d:"m17.66 17.66 1.41 1.41"}],["path",{d:"M2 12h2"}],["path",{d:"M20 12h2"}],["path",{d:"m6.34 17.66-1.41 1.41"}],["path",{d:"m19.07 4.93-1.41 1.41"}]];Icon(o,spread_props({name:"sun"},()=>c,{get iconNode(){return d}}))}function X(o,n){let c=rest_props(n,["$$slots","$$events","$$legacy"]);const d=[["path",{d:"M18 6 6 18"}],["path",{d:"m6 6 12 12"}]];Icon(o,spread_props({name:"x"},()=>c,{get iconNode(){return d}}))}const STORAGE_KEY="staug-theme";function getInitialMode(){if(typeof window>"u")return"light";const o=window.localStorage.getItem(STORAGE_KEY);return o==="dark"||o==="light"?o:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}const theme=proxy({mode:typeof window>"u"?"light":getInitialMode()});function toggleMode(){theme.mode=theme.mode==="dark"?"light":"dark"}function applyMode(o){if(typeof document>"u")return;const n=document.documentElement;o==="dark"?n.classList.add("dark"):n.classList.remove("dark"),window.localStorage.setItem(STORAGE_KEY,o)}const markdownTags=new Set(["p","h1","h2","h3","h4","h5","h6","em"]);let nextScopeId=0;function scopedRules(o,n){if(!o?.trim())return"";const c=new CSSStyleSheet;try{c.replaceSync(o)}catch{return""}const d=[];for(const h of c.cssRules){if(h.type!==CSSRule.STYLE_RULE)continue;const m=h.selectorText.split(",").map(w=>w.trim().toLowerCase());if(!m.length||m.some(w=>!markdownTags.has(w)))continue;const p=h.style.cssText;p&&d.push(`${m.map(w=>`${n} ${w}`).join(", ")} { ${p} }`)}return d.join(`
2374`)}function scrollyTypography(o,n){const c=`scrolly-type-${++nextScopeId}`;o.dataset.scrollyTypography=c;const d=document.createElement("style");d.dataset.scrollyTypography=c,document.head.appendChild(d);function h({light:m="",dark:p="",blocks:w=[],mode:z="light"}={}){const A=`[data-scrolly-typography="${c}"] .scrolly-text`,y=[scopedRules(z==="dark"?p:m,A)];w.forEach((s,e)=>{const f=z==="dark"?s?.dark:s?.light;y.push(scopedRules(f,`${A}[data-scrolly-block="${e}"]`))}),d.textContent=y.filter(Boolean).join(`
2375`)}return h(n),{update:h,destroy(){d.remove(),delete o.dataset.scrollyTypography}}}var root_3$3=from_html('<li><button class="drawer-link svelte-mhowh2"> </button></li>'),root_11$1=from_html('<source media="(width >= 600px)"/>'),root_10=from_html('<picture class="svelte-mhowh2"><!> <img decoding="async" class="svelte-mhowh2"/></picture>'),root_7=from_html("<div><!></div>"),root_12$1=from_html('<div class="picture-container svelte-mhowh2"></div>'),root_5$2=from_html("<figure><!> <!></figure>"),root_13=from_html('<div class="platzhalter svelte-mhowh2"></div>'),root_16=from_html('<div class="platzhalter svelte-mhowh2"></div>'),root_19=from_html("<div></div>"),root_18=from_html("<div><!></div>"),root_21=from_html("<div></div>"),root_20=from_html("<div><!></div>"),root_23=from_html("<div></div>"),root_22=from_html("<div><!></div>"),root_4$2=from_html("<section><!> <!> <!></section>"),root$2=from_html('<div class="scrolly-header svelte-mhowh2"><div class="scroll-bar-container svelte-mhowh2" id="scroll-bar-container"><div class="scroll-progress svelte-mhowh2"><div class="scroll-drag-handle svelte-mhowh2"></div></div></div> <div class="header-row svelte-mhowh2"><div class="header-logo svelte-mhowh2"><a href="/" class="scrolly-logo svelte-mhowh2" style="background: none; display: inline-block; width: 30px;"><!></a></div> <div class="header-spacer svelte-mhowh2"></div> <button type="button" class="menu-button svelte-mhowh2" style="background: none" aria-label="Dark Mode umschalten"><!> <!> <span class="sr-only svelte-mhowh2">Dark Mode umschalten</span></button> <button type="button" class="menu-button svelte-mhowh2" style="background: none" aria-controls="drawer
2375-content"><!></button></div></div> <div></div> <div id="drawer-content"><div class="drawer-drag-handle svelte-mhowh2"></div> <nav class="drawer-nav svelte-mhowh2"><ul class="drawer-list svelte-mhowh2"></ul></nav></div> <!>',1);function Scrolly(o,n){push(n,!0);let c=prop(n,"sections",19,()=>[]),d=state(0),h=state(!1),m={},p=!1,w=!1,z=state(!0);const A=new Map,y=proxy({dia:1});let s=state(!1);function e(){for(let He=0;He<c().length;He++){const Ve=c()[He]?.bilder?.[0];if(Ve)return{bild:Ve,sectionIndex:He}}return null}function f(){const He=e();if(He){Le(He.bild.dia||1);return}const Ve=(c()||[]).flatMap(pt=>pt.innere||[]).find(pt=>pt?.scene);Ve&&$e(Ve.scene)}f();let g="";user_effect(()=>{const He=e(),Ve=He?JSON.stringify(He):"";!get(z)||!He||Ve===g||(g=Ve,untrack(()=>Le(He.bild.dia||1)))});function R(He){set(h,!1),requestAnimationFrame(()=>{const Ve=document.getElementById(He.slice(1));Ve&&Ve.scrollIntoView({behavior:"smooth"})})}let q=!1;function H(He){q=!0,He.preventDefault(),te(He),document.body.style.userSelect="none",document.addEventListener("mousemove",te),document.addEventListener("mouseup",re),document.addEventListener("touchmove",te,{passive:!1}),document.addEventListener("touchend",re)}function te(He){if(!q)return;const Ve=document.getElementById("scroll-bar-container");if(!Ve)return;const pt=Ve.getBoundingClientRect(),wt=He.touches?He.touches[0].clientX:He.clientX,nn=Math.max(0,Math.min(100,(wt-pt.left)/pt.width*100)),Wt=document.documentElement.scrollHeight-window.innerHeight;window.scrollTo({top:nn/100*Wt,behavior:"instant"})}function re(){q=!1,document.body.style.userSelect="",document.removeEventListener("mousemove",te),document.removeEventListener("mouseup",re),document.removeEventListener("touchmove",te),document.removeEventListener("touchend",re)}let ae=0,ne=0,oe=!1,le=null;function ce(He){oe=!0,ae=He.touches?He.touches[0].clientY:He.clientY,ne=ae,document.body.style.userSelect="none",document.addEventListener("mousemove",ue,{passive:!1}),document.addEventListener("mouseup",he),document.addEventListener("touchmove",ue,{passive:!1}),document.addEventListener("touchend",he)}function ue(He){if(!oe)return;He.preventDefault(),ne=He.touches?He.touches[0].clientY:He.clientY,le&&cancelAnimationFrame(le),le=requestAnimationFrame(()=>{const pt=ne-ae;if(pt>0){const wt=document.getElementById("drawer-content");wt&&(wt.style.transition="none",wt.style.transform=`translateY(${pt}px)`)}})}function he(){const He=ne-ae,Ve=document.getElementById("drawer-content");Ve&&(Ve.style.transition="transform 0.3s cubic-bezier(0.32, 0.72, 0, 1)",Ve.style.transform=""),He>100&&set(h,!1),oe=!1,le&&cancelAnimationFrame(le),document.body.style.userSelect="",document.removeEventListener("mousemove",ue),document.removeEventListener("mouseup",he),document.removeEventListener("touchmove",ue),document.removeEventListener("touchend",he)}let ge=0;function Oe(He){if(typeof He!="string")return He;const Ve=He.trim();return/^-?\d+$/.test(Ve)?Number(Ve):Ve==="true"?!0:Ve==="false"?!1:Ve}function $e(He){if(!He||typeof He!="object")return;const Ve=He.dia!==void 0?Oe(He.dia):y.dia;Ve!==y.dia&&Le(Ve);for(const[pt,wt]of Object.entries(He))y[pt]=Oe(wt)}function Pe(He){return He==null||He===""?"1":String(He).trim()}function Le(He){const Ve=(c()||[]).flatMap(wt=>wt.bilder||[]),pt=Ve.find(wt=>Pe(wt.dia)===Pe(He))||Ve[0];y.dia=He,y.zoom=pt?.zoom!==void 0&&pt?.zoom!==""?Oe(pt.zoom):1,y.zoomX=pt?.zoomX!==void 0&&pt?.zoomX!==""?Oe(pt.zoomX):50,y.zoomY=pt?.zoomY!==void 0&&pt?.zoomY!==""?Oe(pt.zoomY):50,y.posX=pt?.posX!==void 0&&pt?.posX!==""?Oe(pt.posX):50,y.posY=pt?.posY!==void 0&&pt?.posY!==""?Oe(pt.posY):50}function me(He,Ve){const pt=Object.keys(He).filter(_n=>!(_n in Ve));if(!pt.length)return;const wt=(c()||[]).flatMap(_n=>_n.bilder||[]),nn=wt[0];pt.includes("dia")&&Le(nn?.dia||1);const Wt=wt.find(_n=>Pe(_n.dia)===Pe(y.dia))||nn,ln={zoom:1,zoomX:50,zoomY:50,posX:50,posY:50};for(const _n of pt)_n!=="dia"&&(_n in ln?y[_n]=Wt?.[_n]!==void 0&&Wt[_n]!==""?Oe(Wt[_n]):ln[_n]:delete y[_n])}function we(He,Ve,pt,wt){wt&&$e(wt),console.log(He,Ve,pt,wt,y)}function Se(He,Ve){let pt=Ve;A.set(He,()=>pt);let wt=!0;const nn=new IntersectionObserver(Wt=>{const ln=wt;wt=!1,requestAnimationFrame(()=>{Wt.forEach(_n=>{let xn=ge>0?"down":"up";const rn=_n.isIntersecting?"enter":"leave";if(m[_n.target.id]=Math.round(_n.intersectionRatio*100),!p||ln&&rn==="leave")return;const vn=rn==="enter"?pt?.scene:pt?.sceneLeave;we(_n.target.id,xn,rn,vn)})})},{threshold:0,rootMargin:"20px 0px 20px 0px"});return nn.observe(He),{update:Wt=>{pt=Wt},destroy:()=>{A.delete(He),nn.disconnect()}}}function ye(){let He=null;for(const[Ve,pt]of A){const wt=Ve.getBoundingClientRect();wt.bottom>-20&&wt.top<window.innerHeight+20&&pt()?.scene&&(He=pt().scene)}He&&$e(He)}let ke=state(0),Ae=state(0),Ie=null;function qe(He,Ve){return!!(get(z)&&e()?.bild===He||ht(He)||get(Ae)>=1&&Ve<=get(ke)||get(Ae)>=2&&Ve<=get(ke)+1)}function Ge(He,Ve){return"eager"}function Je(){if(get(Ae)>=2)return;get(Ae)<1&&set(Ae,1),clearTimeout(Ie),(window.requestIdleCallback||(Ve=>setTimeout(Ve,400)))(()=>{get(Ae)<2&&set(Ae,2)})}function Te(He,Ve){const pt=new IntersectionObserver(wt=>{wt.some(nn=>nn.isIntersecting)&&get(ke)<Ve&&set(ke,Ve,!0)},{rootMargin:"50% 0px 50% 0px"});return pt.observe(He),{destroy:()=>pt.disconnect()}}function ve(He){function Ve(){const wt=He.getBoundingClientRect().height;He.style.setProperty("--measured-height",wt+"px")}Ve();const pt=new ResizeObserver(()=>Ve());return pt.observe(He),{destroy:()=>pt.disconnect()}}onMount(()=>{function He(Wt){const{before:ln={},after:_n={}}=Wt.detail||{};
2375set(z,!1),me(ln,_n),$e(_n)}window.addEventListener("scrolly-scene-preview",He);const Ve=()=>{w=!0},pt=Wt=>{["ArrowDown","ArrowUp","PageDown","PageUp","Home","End"," "].includes(Wt.key)&&Ve()};window.addEventListener("wheel",Ve,{passive:!0}),window.addEventListener("touchstart",Ve,{passive:!0}),window.addEventListener("pointerdown",Ve,{passive:!0}),window.addEventListener("keydown",pt);let wt=!1;function nn(){!p&&w&&window.scrollY>0&&(p=!0,set(z,!1),ye()),wt||(requestAnimationFrame(()=>{const Wt=document.documentElement.scrollHeight-window.innerHeight,ln=window.scrollY/Wt*100;ge=ln-get(d),set(d,ln),wt=!1}),wt=!0)}return window.addEventListener("scroll",nn,{passive:!0}),nn(),requestAnimationFrame(()=>requestAnimationFrame(()=>set(s,!0))),Ie=setTimeout(Je,3e3),()=>{clearTimeout(Ie),window.removeEventListener("scrolly-scene-preview",He),window.removeEventListener("wheel",Ve),window.removeEventListener("touchstart",Ve),window.removeEventListener("pointerdown",Ve),window.removeEventListener("keydown",pt),window.removeEventListener("scroll",nn)}});function et(He,Ve,pt){const wt=Pe(y.dia),nn="layout-"+(He.layout||"cover");return(get(z)&&e()?.sectionIndex===pt?e()?.bild:Ve.bilder?.find(ln=>Pe(ln.dia)===wt)||Ve.bilder?.[0])===He?`picture-container active ${nn}`.trim():`picture-container ${nn}`.trim()}function mt(He,Ve,pt){const wt=y[Ve];return ht(He)&&wt!==void 0&&wt!==null&&wt!==""?wt:He?.[Ve]!==void 0&&He?.[Ve]!==null&&He?.[Ve]!==""?He[Ve]:pt}function ht(He){return Pe(He.dia)===Pe(y.dia)}function ct(He){return He.style||""}function Ue(He){const Ve=ot(He),pt=bt(He);return[Ve,pt].filter(Boolean).join("; ")}function ot(He){if(y.zoom===!1)return"";const Ve=mt(He,"zoom","1"),pt=mt(He,"zoomX","50"),wt=mt(He,"zoomY","50");return`transform: scale(${Ve}); transform-origin: ${pt}% ${wt}%;`}function bt(He){if(He.layout&&He.layout!=="cover")return"";const Ve=mt(He,"posX","50"),pt=mt(He,"posY","50");return`object-position: ${Ve}% ${pt}%;`}function At(He){return Array.isArray(He.bilder)&&He.bilder.length>0||He.bgclass||He.bgtype==="figure"||He.bgcontent}function ft(He){const Ve=[];return He.minheight&&Ve.push(`min-height: ${He.minheight}`),Ve.join("; ")}const be=user_derived(()=>(c()||[]).flatMap((He,Ve)=>{const pt=[],wt=He.id||`section-${Ve}`;return He.navlabel&&pt.push({href:`#${wt}`,label:He.navlabel}),Array.isArray(He.innere)&&He.innere.forEach((nn,Wt)=>{if(nn.navlabel){const ln=nn.id||`${Ve}-${Wt}`;pt.push({href:`#${ln}`,label:nn.navlabel})}}),pt}));var Et=root$2(),St=first_child(Et),Jt=child(St),Bt=child(Jt),Vt=child(Bt),Tt=sibling(Jt,2),Be=child(Tt),Xe=child(Be),Ke=child(Xe);Logo(Ke,{});var nt=sibling(Be,4),xt=child(nt);{let He=user_derived(()=>theme.mode==="light"?"rotate-0 scale-100":"-rotate-90 scale-0");Sun(xt,{get class(){return`sun-icon ${get(He)??""}`}})}var Mt=sibling(xt,2);{let He=user_derived(()=>theme.mode==="light"?"rotate-90 scale-0":"rotate-0 scale-100");Moon(Mt,{get class(){return`moon-icon ${get(He)??""}`}})}var Ye=sibling(nt,2),at=child(Ye);{var st=He=>{X(He,{class:"menu-icon"})},vt=He=>{Menu(He,{class:"menu-icon"})};if_block(at,He=>{get(h)?He(st):He(vt,-1)})}var gt=sibling(St,2);let Ot;var Dt=sibling(gt,2);let Gt;var Ft=child(Dt),Pt=sibling(Ft,2),qt=child(Pt);each(qt,21,()=>get(be),index,(He,Ve)=>{var pt=root_3$3(),wt=child(pt),nn=child(wt);template_effect(()=>set_text(nn,get(Ve).label)),delegated("click",wt,()=>R(get(Ve).href)),append(He,pt)});var on=sibling(Dt,2);each(on,17,c,index,(He,Ve,pt)=>{var wt=root_4$2(),nn=child(wt);{var Wt=Yn=>{var Nn=root_5$2(),gn=child(Nn);{var pr=De=>{var Ze=comment$1(),_t=first_child(Ze);each(_t,17,()=>get(Ve).bilder,index,(dt,lt)=>{var Ct=root_7(),en=child(Ct);{var mn=Mn=>{HlsVideo(Mn,{get src(){return get(lt).video},controls:!1,autoplay:!0,muted:!0,loop:!0})},fn=Mn=>{Video3q(Mn,{get playoutId(){return get(lt).playoutId},controls:!1,autoplay:!0,muted:!0,loop:!0})},In=Mn=>{const nr=user_derived(()=>qe(get(lt),pt));var sr=root_10(),Rt=child(sr);{var bn=ir=>{var Hn=root_11$1();template_effect(()=>set_attribute(Hn,"srcset",get(lt).srcDesktop)),append(ir,Hn)};if_block(Rt,ir=>{get(lt).srcDesktop&&get(nr)&&ir(bn)})}var Rn=sibling(Rt,2);template_effect((ir,Hn,lr)=>{set_attribute(Rn,"src",get(nr)?get(lt).src:void 0),set_attribute(Rn,"alt",get(lt).alt||""),set_attribute(Rn,"loading",ir),set_attribute(Rn,"fetchpriority",Hn),set_style(Rn,lr)},[()=>Ge(get(lt)),()=>ht(get(lt))?"high":"low",()=>Ue(get(lt))]),event("load",Rn,()=>{ht(get(lt))&&Je()}),event("error",Rn,()=>{ht(get(lt))&&Je()}),append(Mn,sr)};if_block(en,Mn=>{get(lt).video?Mn(mn):get(lt).playoutId?Mn(fn,1):Mn(In,-1)})}template_effect((Mn,nr)=>{set_class(Ct,1,Mn,"svelte-mhowh2"),set_style(Ct,nr)},[()=>et(get(lt),get(Ve),pt)+(get(s)&&!get(z)?"":" preload"),()=>ct(get(lt))]),append(dt,Ct)}),append(De,Ze)},Ln=user_derived(()=>Array.isArray(get(Ve).bilder));if_block(gn,De=>{get(Ln)&&De(pr)})}var Xn=sibling(gn,2);{var Tr=De=>{var Ze=root_12$1();html(Ze,()=>get(Ve).bgcontent,!0),append(De,Ze)};if_block(Xn,De=>{get(Ve).bgcontent&&De(Tr)})}template_effect(De=>{set_class(Nn,1,clsx(get(Ve).bgclass||"bg-muted"),"svelte-mhowh2"),set_style(Nn,De)},[()=>ft(get(Ve))]),append(Yn,Nn)},ln=user_derived(()=>At(get(Ve)));if_block(nn,Yn=>{get(ln)&&Yn(Wt)})}var _n=sibling(nn,2);{var xn=Yn=>{var Nn=root_13();action(Nn,(gn,pr)=>Se?.(gn,pr),()=>get(Ve)),append(Yn,Nn)};if_block(_n,Yn=>{get(Ve).platzhalter&&Yn(xn)})}var rn=sibling(_n,2);{var vn=Yn=>{var Nn=comment$1(),gn=first_child(Nn);each(gn,17,()=>get(Ve).innere,index,(pr,Ln,Xn)=>{const Tr=user_derived(()=>get(Ln).id||`${pt}-${Xn}`),De=user_derived(()=>pt===0&&Xn===0&&At(get(Ve))&&!get(Ln).platzhalter),Ze=user_derived(()=>get(De)?get(Ve).firstOffset!==void 0&&get(Ve).firstOffset!==null&&get(Ve).firstOffset!==""?Number(get(Ve).firstOffset):0:null),_t=user_derived(()=>"w-[30rem] max-w-[40rem] mx-auto px-0 max-sm:w-[90%]"+(get(De)?" relative z-[1] -mt-[100vh] first-block-offset":"")),dt=user_derived(()=>get(De)?`--first-offset: ${get(Ze)/100};`:""),lt=user_derived(()=>(get(Ln).style||"")+(theme.mode==="dark"&&get(Ln).darkStyle?"; "+get(Ln).darkStyle:"")),Ct=user_derived(()=>"scrolly-text text-[1.1rem] leading-relaxed p-8 m-0 bg-card text-card-foreground font-[museosans
2375] text-left "+(get(Ln).class||""));var en=comment$1(),mn=first_child(en);{var fn=Rt=>{var bn=root_16();action(bn,(Rn,ir)=>Se?.(Rn,ir),()=>get(Ln)),template_effect(()=>set_attribute(bn,"id",get(Tr))),append(Rt,bn)},In=Rt=>{var bn=comment$1(),Rn=first_child(bn);html(Rn,()=>get(Ln).content),append(Rt,bn)},Mn=Rt=>{var bn=root_18(),Rn=child(bn);{var ir=Hn=>{var lr=root_19();set_attribute(lr,"data-scrolly-block",Xn),html(lr,()=>markdownit(get(Ln).content),!0),template_effect(()=>{set_class(lr,1,clsx(get(Ct)),"svelte-mhowh2"),set_style(lr,get(lt))}),append(Hn,lr)};if_block(Rn,Hn=>{get(Ln).content&&Hn(ir)})}action(bn,(Hn,lr)=>Se?.(Hn,lr),()=>get(Ln)),action(bn,Hn=>ve?.(Hn)),template_effect(()=>{set_attribute(bn,"id",get(Tr)),set_class(bn,1,clsx(get(_t)),"svelte-mhowh2"),set_style(bn,get(dt))}),append(Rt,bn)},nr=Rt=>{var bn=root_20(),Rn=child(bn);{var ir=Hn=>{var lr=root_21();set_attribute(lr,"data-scrolly-block",Xn),html(lr,()=>markdownit(get(Ln).content),!0),template_effect(()=>{set_class(lr,1,clsx(get(Ct)),"svelte-mhowh2"),set_style(lr,get(lt))}),append(Hn,lr)};if_block(Rn,Hn=>{get(Ln).content&&Hn(ir)})}action(bn,(Hn,lr)=>Se?.(Hn,lr),()=>get(Ln)),action(bn,Hn=>ve?.(Hn)),template_effect(()=>{set_attribute(bn,"id",get(Tr)),set_class(bn,1,clsx(get(_t)),"svelte-mhowh2"),set_style(bn,get(dt))}),append(Rt,bn)},sr=Rt=>{var bn=root_22(),Rn=child(bn);{var ir=Hn=>{var lr=root_23();set_attribute(lr,"data-scrolly-block",Xn),html(lr,()=>markdownit(get(Ln).content),!0),template_effect(()=>{set_class(lr,1,clsx(get(Ct)),"svelte-mhowh2"),set_style(lr,get(lt))}),append(Hn,lr)};if_block(Rn,Hn=>{get(Ln).content&&Hn(ir)})}action(bn,Hn=>ve?.(Hn)),template_effect(()=>{set_attribute(bn,"id",get(Tr)),set_class(bn,1,clsx(get(_t)),"svelte-mhowh2"),set_style(bn,get(dt))}),append(Rt,bn)};if_block(mn,Rt=>{get(Ln).platzhalter?Rt(fn):get(Ln).type==="raw"?Rt(In,1):get(Ln).type==="observer"?Rt(Mn,2):get(Ln).type==="scrolly-observer"?Rt(nr,3):Rt(sr,-1)})}append(pr,en)}),append(Yn,Nn)};if_block(rn,Yn=>{get(Ve).innere&&Yn(vn)})}action(wt,(Yn,Nn)=>Te?.(Yn,Nn),()=>pt),action(wt,(Yn,Nn)=>scrollyTypography?.(Yn,Nn),()=>({light:get(Ve).markdownCss,dark:get(Ve).markdownCssDark,blocks:(get(Ve).innere||[]).map(Yn=>({light:Yn.markdownCss,dark:Yn.markdownCssDark})),mode:theme.mode})),template_effect(()=>{set_class(wt,1,clsx(get(Ve).class||""),"svelte-mhowh2"),set_attribute(wt,"id",get(Ve).id||`section-${pt}`)}),append(He,wt)}),template_effect(()=>{set_style(Bt,`width: ${get(d)??""}%`),set_attribute(Ye,"aria-label",get(h)?"Menü schließen":"Menü öffnen"),set_attribute(Ye,"aria-expanded",get(h)),Ot=set_class(gt,1,"drawer-backdrop svelte-mhowh2",null,Ot,{"opacity-0":!get(h),"pointer-events-none":!get(h)}),Gt=set_class(Dt,1,"drawer-content svelte-mhowh2",null,Gt,{"translate-y-full":!get(h)}),set_attribute(Dt,"aria-hidden",!get(h)),Dt.inert=!get(h)}),delegated("mousedown",Vt,H),delegated("touchstart",Vt,H),delegated("click",nt,()=>toggleMode()),delegated("click",Ye,()=>set(h,!get(h))),delegated("click",gt,()=>set(h,!1)),delegated("mousedown",Ft,ce),delegated("touchstart",Ft,ce),append(o,Et),pop()}delegate(["mousedown","touchstart","click"]);var root_2$2=from_svg('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="svelte-xxvmet"><rect x="6" y="4" width="4" height="16"></rect><rect x="14" y="4" width="4" height="16"></rect></svg>'),root_3$2=from_svg('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="svelte-xxvmet"><path d="M8 5v14l11-7z"></path></svg>'),root_1$2=from_html('<div class="audio-player svelte-xxvmet"><div class="audio-title svelte-xxvmet"> </div> <div class="audio-controls svelte-xxvmet"><button class="audio-play-btn svelte-xxvmet" type="button"><!></button> <input type="range" class="audio-seek svelte-xxvmet" min="0" step="0.1"/> <div class="audio-time svelte-xxvmet"> </div></div></div> <audio preload="metadata" style="display: none;"></audio>',1),root_4$1=from_html('<div class="p-4 text-sm" style="font-family:museosans;">Bitte Audio-URL (src) eingeben.</div>');function AudioPlayer(o,n){push(n,!0);let c=prop(n,"src",3,""),d=prop(n,"title",3,""),h,m=state(!1),p=state(0),w=state(0),z=state(0),A=user_derived(()=>d()||(c()?c().split("/").pop()?.replace(/\.mp3$/i,""):"Audio")||"Audio");function y(oe){if(!isFinite(oe)||isNaN(oe))return"0:00";const le=Math.floor(oe/60),ce=Math.floor(oe%60);return`${le}:${ce<10?"0":""}${ce}`}function s(){h&&(h.paused?h.play().catch(()=>{}):h.pause())}function e(oe){h&&(h.currentTime=parseFloat(oe.target.value))}function f(){set(p,h.currentTime,!0),h.buffered.length>0&&set(z,h.buffered.end(h.buffered.length-1),!0)}function g(){set(w,h.duration||0,!0)}function R(){set(m,!0)}function q(){set(m,!1)}function H(){set(m,!1),set(p,0)}user_effect(()=>{h&&c()&&(h.src=c(),h.load(),set(m,!1),set(p,0),set(w,0))});var te=comment$1(),re=first_child(te);{var ae=oe=>{var le=root_1$2(),ce=first_child(le),ue=child(ce),he=child(ue),ge=sibling(ue,2),Oe=child(ge),$e=child(Oe);{var Pe=ke=>{var Ae=root_2$2();append(ke,Ae)},Le=ke=>{var Ae=root_3$2();append(ke,Ae)};if_block($e,ke=>{get(m)?ke(Pe):ke(Le,-1)})}var me=sibling(Oe,2),we=sibling(me,2),Se=child(we),ye=sibling(ce,2);bind_this(ye,ke=>h=ke,()=>h),template_effect((ke,Ae)=>{set_text(he,get(A)),set_attribute(Oe,"aria-label",get(m)?"Pause":"Play"),set_attribute(me,"max",get(w)||0),set_value(me,get(p)),set_text(Se,`${ke??""} / ${Ae??""}`),set_attribute(ye,"src",c())},[()=>y(get(p)),()=>y(get(w))]),delegated("click",Oe,s),delegated("input",me,e),event("timeupdate",ye,f),event("loadedmetadata",ye,g),event("play",ye,R),event("pause",ye,q),event("ended",ye,H),append(oe,le)},ne=oe=>{var le=root_4$1();append(oe,le)};if_block(re,oe=>{c()?oe(ae):oe(ne,-1)})}append(o,te),pop()}delegate(["click","input"]);let toasts=proxy([]);function toast(o,n=3e3){const c=Date.now()+Math.random();toasts.push({id:c,message:o}),n>0&&setTimeout(()=>{const d=toasts.findIndex(h=>h.id===c);d!==-1&&toasts.splice(d,1)},n)}function confirmToast(o,n={}){const c=Date.now()+Math.random();return new Promise(d=>{const h=m=>{const p=toasts.findIndex(w=>w.id===c);p!==-1&&toasts.splice(p,1),d(m)};
2375toasts.push({id:c,message:o,confirm:!0,okText:n.okText||"OK",cancelText:n.cancelText||"Abbrechen",done:h})})}var root_1$1=from_html('<div class="toast-backdrop svelte-1odiyg0"></div>'),root_5$1=from_html('<button class="svelte-1odiyg0"> </button>'),root_4=from_html('<div class="toast-actions svelte-1odiyg0"><button class="toast-ok svelte-1odiyg0"> </button> <button class="svelte-1odiyg0"> </button> <!></div>'),root_3$1=from_html('<div><div class="toast-msg svelte-1odiyg0"> </div> <!></div>'),root_2$1=from_html('<div class="toast-wrap svelte-1odiyg0" role="status"></div>'),root$1=from_html("<!> <!>",1);function Toasts(o,n){push(n,!1),init();var c=root$1(),d=first_child(c);{var h=z=>{var A=root_1$1();append(z,A)},m=user_derived(()=>toasts.some(z=>z.confirm));if_block(d,z=>{get(m)&&z(h)})}var p=sibling(d,2);{var w=z=>{var A=root_2$1();each(A,5,()=>toasts,y=>y.id,(y,s)=>{var e=root_3$1();let f;var g=child(e),R=child(g),q=sibling(g,2);{var H=te=>{var re=root_4(),ae=child(re),ne=child(ae),oe=sibling(ae,2),le=child(oe),ce=sibling(oe,2);{var ue=he=>{var ge=root_5$1(),Oe=child(ge);template_effect(()=>set_text(Oe,get(s).extraText)),delegated("click",ge,()=>get(s).done("extra")),append(he,ge)};if_block(ce,he=>{get(s).extraText&&he(ue)})}template_effect(()=>{set_text(ne,get(s).okText),set_text(le,get(s).cancelText)}),delegated("click",ae,()=>get(s).done(!0)),delegated("click",oe,()=>get(s).done(!1)),append(te,re)};if_block(q,te=>{get(s).confirm&&te(H)})}template_effect(()=>{f=set_class(e,1,"toast svelte-1odiyg0",null,f,{confirm:get(s).confirm}),set_text(R,get(s).message)}),append(y,e)}),append(z,A)};if_block(p,z=>{toasts.length&&z(w)})}append(o,c),pop()}delegate(["click"]);function terminToJsonLd(o,n={}){const c=o.thea_adressenname||o.thea_ort||o.ort,d=o.thea_strasse||"",h=o.thea_plz||"",m=o.thea_adressenort||"";if(!c)return null;const p=n[o.thea_ort],w=p?{"@id":p}:{"@type":"Place",name:c,...d||h||m?{address:`${d}${d&&(h||m)?", ":""}${h} ${m}`.trim()}:{}},z={"@context":"https://schema.org","@type":"Event",name:o.titel||o.thea_titel,location:w,description:[o.thea_kurztext1,o.thea_kurztext2,o.thea_kurztext3,o.thea_kurztext4].filter(Boolean).join(" / "),startDate:o.beginn,endDate:o.ende,"@id":`https://staatstheater-augsburg.de/${o.link||o.thea_link}?thea_v_id=${o.thea_veranstaltungs_id}`,eventStatus:`https://schema.org/${["-1","-3"].includes(o.thea_status)?"EventCancelled":"EventScheduled"}`};if(o.kartenlink||o.bilettix_link){const A=o.kartenlink?`${/^http/.test(o.kartenlink)?"":"https://webshop-tickets.staatstheater-augsburg.de/de/tickets/"}${o.kartenlink}`:o.bilettix_link;z.offers={"@type":"Offer",url:A}}return o.thea_bild&&(z.image=o.thea_bild),o.thea_branch&&(z.organizer={"@type":"Organization",name:"Staatstheater Augsburg",sameAs:"https://staatstheater-augsburg.de"}),Object.keys(z).forEach(A=>{(z[A]===null||z[A]===void 0||z[A]==="")&&delete z[A]}),z}function spielplanToJsonLd(o,n={}){if(!Array.isArray(o))return[];const c=Array.from(o),d=["martini-Park","brechtbühne im Gaswerk","Sommerbühne am Gaswerk"];return c.filter(h=>!!(h.thea_adressenname||h.thea_ort||h.ort)).filter(h=>d.includes(h.thea_ort)).map(h=>terminToJsonLd(h,n)).filter(Boolean)}var md5={exports:{}},crypt={exports:{}},hasRequiredCrypt;function requireCrypt(){return hasRequiredCrypt||(hasRequiredCrypt=1,(function(){var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(c,d){return c<<d|c>>>32-d},rotr:function(c,d){return c<<32-d|c>>>d},endian:function(c){if(c.constructor==Number)return n.rotl(c,8)&16711935|n.rotl(c,24)&4278255360;for(var d=0;d<c.length;d++)c[d]=n.endian(c[d]);return c},randomBytes:function(c){for(var d=[];c>0;c--)d.push(Math.floor(Math.random()*256));return d},bytesToWords:function(c){for(var d=[],h=0,m=0;h<c.length;h++,m+=8)d[m>>>5]|=c[h]<<24-m%32;return d},wordsToBytes:function(c){for(var d=[],h=0;h<c.length*32;h+=8)d.push(c[h>>>5]>>>24-h%32&255);return d},bytesToHex:function(c){for(var d=[],h=0;h<c.length;h++)d.push((c[h]>>>4).toString(16)),d.push((c[h]&15).toString(16));return d.join("")},hexToBytes:function(c){for(var d=[],h=0;h<c.length;h+=2)d.push(parseInt(c.substr(h,2),16));return d},bytesToBase64:function(c){for(var d=[],h=0;h<c.length;h+=3)for(var m=c[h]<<16|c[h+1]<<8|c[h+2],p=0;p<4;p++)h*8+p*6<=c.length*8?d.push(o.charAt(m>>>6*(3-p)&63)):d.push("=");return d.join("")},base64ToBytes:function(c){c=c.replace(/[^A-Z0-9+\/]/ig,"");for(var d=[],h=0,m=0;h<c.length;m=++h%4)m!=0&&d.push((o.indexOf(c.charAt(h-1))&Math.pow(2,-2*m+8)-1)<<m*2|o.indexOf(c.charAt(h))>>>6-m*2);return d}};crypt.exports=n})()),crypt.exports}var charenc_1,hasRequiredCharenc;function requireCharenc(){if(hasRequiredCharenc)return charenc_1;hasRequiredCharenc=1;var o={utf8:{stringToBytes:function(n){return o.bin.stringToBytes(unescape(encodeURIComponent(n)))},bytesToString:function(n){return decodeURIComponent(escape(o.bin.bytesToString(n)))}},bin:{stringToBytes:function(n){for(var c=[],d=0;d<n.length;d++)c.push(n.charCodeAt(d)&255);return c},bytesToString:function(n){for(var c=[],d=0;d<n.length;d++)c.push(String.fromCharCode(n[d]));return c.join("")}}};return charenc_1=o,charenc_1}var isBuffer_1,hasRequiredIsBuffer;function requireIsBuffer(){if(hasRequiredIsBuffer)return isBuffer_1;hasRequiredIsBuffer=1,isBuffer_1=function(c){return c!=null&&(o(c)||n(c)||!!c._isBuffer)};function o(c){return!!c.constructor&&typeof c.constructor.isBuffer=="function"&&c.constructor.isBuffer(c)}function n(c){return typeof c.readFloatLE=="function"&&typeof c.slice=="function"&&o(c.slice(0,0))}return isBuffer_1}var hasRequiredMd5;function requireMd5(){return hasRequiredMd5||(hasRequiredMd5=1,(function(){var o=requireCrypt(),n=requireCharenc().utf8,c=requireIsBuffer(),d=requireCharenc().bin,h=function(m,p){m.constructor==String?p&&p.encoding==="binary"?m=d.stringToBytes(m):m=n.stringToBytes(m):c(m)?m=Array.prototype.slice.call(m,0):!Array.isArray(m)&&m.constructor!==Uint8Array&&(m=m.toString());for(var w=o.bytesToWords(m),z=m.length*8,A=1732584193,y=-271733879,s=-1732584194,e=271733878,f=0;f<w.length;f++)w[f]=(w[f]<<8|w[f]>>>24)&16711935|(w[f]<<24|w[f]>>>8)&4278255360;w[z>>>5]|=128<<z%32,w[(z+64>>>9<<4)+14]=z;for(var g=h._ff,R=h._gg,q=h._hh,H=h._ii,f=0;f<w.length;f+=16){var te=A,re=y,ae=s,ne=e;A=g(A,y,s,e,w[f+0],7,-680876936),e=g(e,A,y,s,w[f+1],12,-389564586),s=g(s,e,A,y,w[f+2],17,606105819),y=g(y,s,e,A,w[f+3],22,-1044525330),A=g(A,y,s,e,w[f+4],7,-176418897),e=g(e,A,y,s,w[f+5],12,1200080426),s=g(s,e,A,y,w[f+6],17,-1473231341),y=g(y,s,e,A,w[f+7],22,-45705983),A=g(A,y,s,e,w[f+8],7,1770035416),e=g(e,A,y,s,w[f+9],12,-1958414417),s=g(s,e,A,y,w[f+10],17,-42063),y=g(y,s,e,A,w[f+11],22,-1990404162),A=g(A,y,s,e,w[f+12],7,1804603682),e=g(e,A,y,s,w[f+13],12,-40341101),s=g(s,e,A,y,w[f+14],17,-1502002290),y=g(y,s,e,A,w[f+15],22,1236535329),A=R(A,y,s,e,w[f+1],5,-165796510),e=R(e,A,y,s,w[f+6],9,-1069501632),s=R(s,e,A,y,w[f+11],14,643717713),y=R(y,s,e,A,w[f+0],20,-373897302),A=R(A,y,s,e,w[f+5],5,-701558691),e=R(e,A,y,s,w[f+10],9,38016083),s=R(s,e,A,y,w[f+15],14,-660478335),y=R(y,s,e,A,w[f+4],20,-405537848),A=R(A,y,s,e,w[f+9],5,568446438),e=R(e,A,y,s,w[f+14],9,-1019803690),s=R(s,e,A,y,w[f+3],14,-187363961),y=R(y,s,e,A,w[f+8],20,1163531501),A=R(A,y,s,e,w[f+13],5,-1444681467),e=R(e,A,y,s,w[f+2],9,-51403784),s=R(s,e,A,y,w[f+7],14,1735328473),y=R(y,s,e,A,w[f+12],20,-1926607734),A=q(A,y,s,e,w[f+5],4,-378558),e=q(e,A,y,s,w[f+8],11,-2022574463),s=q(s,e,A,y,w[f+11],16,1839030562),y=q(y,s,e,A,w[f+14],23,-35309556),A=q(A,y,s,e,w[f+1],4,-1530992060),e=q(e,A,y,s,w[f+4],11,1272893353),s=q(s,e,A,y,w[f+7],16,-155497632),y=q(y,s,e,A,w[f+10],23,-1094730640),A=q(A,y,s,e,w[f+13],4,681279174),e=q(e,A,y,s,w[f+0],11,-358537222),s=q(s,e,A,y,w[f+3],16,-722521979),y=q(y,s,e,A,w[f+6],23,76029189),A=q(A,y,s,e,w[f+9],4,-640364487),e=q(e,A,y,s,w[f+12],11,-421815835),s=q(s,e,A,y,w[f+15],16,530742520),y=q(y,s,e,A,w[f+2],23,-995338651),A=H(A,y,s,e,w[f+0],6,-198630844),e=H(e,A,y,s,w[f+7],10,1126891415),s=H(s,e,A,y,w[f+14],15,-1416354905),y=H(y,s,e,A,w[f+5],21,-57434055),A=H(A,y,s,e,w[f+12],6,1700485571),e=H(e,A,y,s,w[f+3],10,-1894986606),s=H(s,e,A,y,w[f+10],15,-1051523),y=H(y,s,e,A,w[f+1],21,-2054922799),A=H(A,y,s,e,w[f+8],6,1873313359),e=H(e,A,y,s,w[f+15],10,-30611744),s=H(s,e,A,y,w[f+6],15,-1560198380),y=H(y,s,e,A,w[f+13],21,1309151649),A=H(A,y,s,e,w[f+4],6,-145523070),e=H(e,A,y,s,w[f+11],10,-1120210379),s=H(s,e,A,y,w[f+2],15,718787259),y=H(y,s,e,A,w[f+9],21,-343485551),A=A+te>>>0,y=y+re>>>0,s=s+ae>>>0,e=e+ne>>>0}return o.endian([A,y,s,e])};h._ff=function(m,p,w,z,A,y,s){var e=m+(p&w|~p&z)+(A>>>0)+s;return(e<<y|e>>>32-y)+p},h._gg=function(m,p,w,z,A,y,s){var e=m+(p&z|w&~z)+(A>>>0)+s;return(e<<y|e>>>32-y)+p},h._hh=function(m,p,w,z,A,y,s){var e=m+(p^w^z)+(A>>>0)+s;return(e<<y|e>>>32-y)+p},h._ii=function(m,p,w,z,A,y,s){var e=m+(w^(p|~z))+(A>>>0)+s;return(e<<y|e>>>32-y)+p},h._blocksize=16,h._digestsize=16,md5.exports=function(m,p){if(m==null)throw new Error("Illegal argument "+m);var w=o.wordsToBytes(h(m,p));return p&&p.asBytes?w:p&&p.asString?d.bytesToString(w):o.bytesToHex(w)}})()),md5.exports}requireMd5();
2375var lazysizes={exports:{}},hasRequiredLazysizes;function requireLazysizes(){return hasRequiredLazysizes||(hasRequiredLazysizes=1,(function(o){(function(n,c){var d=c(n,n.document,Date);n.lazySizes=d,o.exports&&(o.exports=d)})(typeof window<"u"?window:{},function(c,d,h){var m,p;if((function(){var Se,ye={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",fastLoadedClass:"ls-is-cached",iframeLoadMode:0,srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};p=c.lazySizesConfig||c.lazysizesConfig||{};for(Se in ye)Se in p||(p[Se]=ye[Se])})(),!d||!d.getElementsByClassName)return{init:function(){},cfg:p,noSupport:!0};var w=d.documentElement,z=c.HTMLPictureElement,A="addEventListener",y="getAttribute",s=c[A].bind(c),e=c.setTimeout,f=c.requestAnimationFrame||e,g=c.requestIdleCallback,R=/^picture$/i,q=["load","error","lazyincluded","_lazyloaded"],H={},te=Array.prototype.forEach,re=function(Se,ye){return H[ye]||(H[ye]=new RegExp("(\\s|^)"+ye+"(\\s|$)")),H[ye].test(Se[y]("class")||"")&&H[ye]},ae=function(Se,ye){re(Se,ye)||Se.setAttribute("class",(Se[y]("class")||"").trim()+" "+ye)},ne=function(Se,ye){var ke;(ke=re(Se,ye))&&Se.setAttribute("class",(Se[y]("class")||"").replace(ke," "))},oe=function(Se,ye,ke){var Ae=ke?A:"removeEventListener";ke&&oe(Se,ye),q.forEach(function(Ie){Se[Ae](Ie,ye)})},le=function(Se,ye,ke,Ae,Ie){var qe=d.createEvent("Event");return ke||(ke={}),ke.instance=m,qe.initEvent(ye,!Ae,!Ie),qe.detail=ke,Se.dispatchEvent(qe),qe},ce=function(Se,ye){var ke;!z&&(ke=c.picturefill||p.pf)?(ye&&ye.src&&!Se[y]("srcset")&&Se.setAttribute("srcset",ye.src),ke({reevaluate:!0,elements:[Se]})):ye&&ye.src&&(Se.src=ye.src)},ue=function(Se,ye){return(getComputedStyle(Se,null)||{})[ye]},he=function(Se,ye,ke){for(ke=ke||Se.offsetWidth;ke<p.minSize&&ye&&!Se._lazysizesWidth;)ke=ye.offsetWidth,ye=ye.parentNode;return ke},ge=(function(){var Se,ye,ke=[],Ae=[],Ie=ke,qe=function(){var Je=Ie;for(Ie=ke.length?Ae:ke,Se=!0,ye=!1;Je.length;)Je.shift()();Se=!1},Ge=function(Je,Te){Se&&!Te?Je.apply(this,arguments):(Ie.push(Je),ye||(ye=!0,(d.hidden?e:f)(qe)))};return Ge._lsFlush=qe,Ge})(),Oe=function(Se,ye){return ye?function(){ge(Se)}:function(){var ke=this,Ae=arguments;ge(function(){Se.apply(ke,Ae)})}},$e=function(Se){var ye,ke=0,Ae=p.throttleDelay,Ie=p.ricTimeout,qe=function(){ye=!1,ke=h.now(),Se()},Ge=g&&Ie>49?function(){g(qe,{timeout:Ie}),Ie!==p.ricTimeout&&(Ie=p.ricTimeout)}:Oe(function(){e(qe)},!0);return function(Je){var Te;(Je=Je===!0)&&(Ie=33),!ye&&(ye=!0,Te=Ae-(h.now()-ke),Te<0&&(Te=0),Je||Te<9?Ge():e(Ge,Te))}},Pe=function(Se){var ye,ke,Ae=99,Ie=function(){ye=null,Se()},qe=function(){var Ge=h.now()-ke;Ge<Ae?e(qe,Ae-Ge):(g||Ie)(Ie)};return function(){ke=h.now(),ye||(ye=e(qe,Ae))}},Le=(function(){var Se,ye,ke,Ae,Ie,qe,Ge,Je,Te,ve,et,mt,ht=/^img$/i,ct=/^iframe$/i,Ue="onscroll"in c&&!/(gle|ing)bot/.test(navigator.userAgent),ot=0,bt=0,At=0,ft=-1,be=function(st){At--,(!st||At<0||!st.target)&&(At=0)},Et=function(st){return mt==null&&(mt=ue(d.body,"visibility")=="hidden"),mt||!(ue(st.parentNode,"visibility")=="hidden"&&ue(st,"visibility")=="hidden")},St=function(st,vt){var gt,Ot=st,Dt=Et(st);for(Je-=vt,et+=vt,Te-=vt,ve+=vt;Dt&&(Ot=Ot.offsetParent)&&Ot!=d.body&&Ot!=w;)Dt=(ue(Ot,"opacity")||1)>0,Dt&&ue(Ot,"overflow")!="visible"&&(gt=Ot.getBoundingClientRect(),Dt=ve>gt.left&&Te<gt.right&&et>gt.top-1&&Je<gt.bottom+1);return Dt},Jt=function(){var st,vt,gt,Ot,Dt,Gt,Ft,Pt,qt,on,He,Ve,pt=m.elements;if((Ae=p.loadMode)&&At<8&&(st=pt.length)){for(vt=0,ft++;vt<st;vt++)if(!(!pt[vt]||pt[vt]._lazyRace)){if(!Ue||m.prematureUnveil&&m.prematureUnveil(pt[vt])){xt(pt[vt]);continue}if((!(Pt=pt[vt][y]("data-expand"))||!(Gt=Pt*1))&&(Gt=bt),on||(on=!p.expand||p.expand<1?w.clientHeight>500&&w.clientWidth>500?500:370:p.expand,m._defEx=on,He=on*p.expFactor,Ve=p.hFac,mt=null,bt<He&&At<1&&ft>2&&Ae>2&&!d.hidden?(bt=He,ft=0):Ae>1&&ft>1&&At<6?bt=on:bt=ot),qt!==Gt&&(qe=innerWidth+Gt*Ve,Ge=innerHeight+Gt,Ft=Gt*-1,qt=Gt),gt=pt[vt].getBoundingClientRect(),(et=gt.bottom)>=Ft&&(Je=gt.top)<=Ge&&(ve=gt.right)>=Ft*Ve&&(Te=gt.left)<=qe&&(et||ve||Te||Je)&&(p.loadHidden||Et(pt[vt]))&&(ye&&At<3&&!Pt&&(Ae<3||ft<4)||St(pt[vt],Gt))){if(xt(pt[vt]),Dt=!0,At>9)break}else!Dt&&ye&&!Ot&&At<4&&ft<4&&Ae>
23752&&(Se[0]||p.preloadAfterLoad)&&(Se[0]||!Pt&&(et||ve||Te||Je||pt[vt][y](p.sizesAttr)!="auto"))&&(Ot=Se[0]||pt[vt])}Ot&&!Dt&&xt(Ot)}},Bt=$e(Jt),Vt=function(st){var vt=st.target;if(vt._lazyCache){delete vt._lazyCache;return}be(st),ae(vt,p.loadedClass),ne(vt,p.loadingClass),oe(vt,Be),le(vt,"lazyloaded")},Tt=Oe(Vt),Be=function(st){Tt({target:st.target})},Xe=function(st,vt){var gt=st.getAttribute("data-load-mode")||p.iframeLoadMode;gt==0?st.contentWindow.location.replace(vt):gt==1&&(st.src=vt)},Ke=function(st){var vt,gt=st[y](p.srcsetAttr);(vt=p.customMedia[st[y]("data-media")||st[y]("media")])&&st.setAttribute("media",vt),gt&&st.setAttribute("srcset",gt)},nt=Oe(function(st,vt,gt,Ot,Dt){var Gt,Ft,Pt,qt,on,He;(on=le(st,"lazybeforeunveil",vt)).defaultPrevented||(Ot&&(gt?ae(st,p.autosizesClass):st.setAttribute("sizes",Ot)),Ft=st[y](p.srcsetAttr),Gt=st[y](p.srcAttr),Dt&&(Pt=st.parentNode,qt=Pt&&R.test(Pt.nodeName||"")),He=vt.firesLoad||"src"in st&&(Ft||Gt||qt),on={target:st},ae(st,p.loadingClass),He&&(clearTimeout(ke),ke=e(be,2500),oe(st,Be,!0)),qt&&te.call(Pt.getElementsByTagName("source"),Ke),Ft?st.setAttribute("srcset",Ft):Gt&&!qt&&(ct.test(st.nodeName)?Xe(st,Gt):st.src=Gt),Dt&&(Ft||qt)&&ce(st,{src:Gt})),st._lazyRace&&delete st._lazyRace,ne(st,p.lazyClass),ge(function(){var Ve=st.complete&&st.naturalWidth>1;(!He||Ve)&&(Ve&&ae(st,p.fastLoadedClass),Vt(on),st._lazyCache=!0,e(function(){"_lazyCache"in st&&delete st._lazyCache},9)),st.loading=="lazy"&&At--},!0)}),xt=function(st){if(!st._lazyRace){var vt,gt=ht.test(st.nodeName),Ot=gt&&(st[y](p.sizesAttr)||st[y]("sizes")),Dt=Ot=="auto";(Dt||!ye)&&gt&&(st[y]("src")||st.srcset)&&!st.complete&&!re(st,p.errorClass)&&re(st,p.lazyClass)||(vt=le(st,"lazyunveilread").detail,Dt&&me.updateElem(st,!0,st.offsetWidth),st._lazyRace=!0,At++,nt(st,vt,Dt,Ot,gt))}},Mt=Pe(function(){p.loadMode=3,Bt()}),Ye=function(){p.loadMode==3&&(p.loadMode=2),Mt()},at=function(){if(!ye){if(h.now()-Ie<999){e(at,999);return}ye=!0,p.loadMode=3,Bt(),s("scroll",Ye,!0)}};return{_:function(){Ie=h.now(),m.elements=d.getElementsByClassName(p.lazyClass),Se=d.getElementsByClassName(p.lazyClass+" "+p.preloadClass),s("scroll",Bt,!0),s("resize",Bt,!0),s("pageshow",function(st){if(st.persisted){var vt=d.querySelectorAll("."+p.loadingClass);vt.length&&vt.forEach&&f(function(){vt.forEach(function(gt){gt.complete&&xt(gt)})})}}),c.MutationObserver?new MutationObserver(Bt).observe(w,{childList:!0,subtree:!0,attributes:!0}):(w[A]("DOMNodeInserted",Bt,!0),w[A]("DOMAttrModified",Bt,!0),setInterval(Bt,999)),s("hashchange",Bt,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach(function(st){d[A](st,Bt,!0)}),/d$|^c/.test(d.readyState)?at():(s("load",at),d[A]("DOMContentLoaded",Bt),e(at,2e4)),m.elements.length?(Jt(),ge._lsFlush()):Bt()},checkElems:Bt,unveil:xt,_aLSL:Ye}})(),me=(function(){var Se,ye=Oe(function(qe,Ge,Je,Te){var ve,et,mt;if(qe._lazysizesWidth=Te,Te+="px",qe.setAttribute("sizes",Te),R.test(Ge.nodeName||""))for(ve=Ge.getElementsByTagName("source"),et=0,mt=ve.length;et<mt;et++)ve[et].setAttribute("sizes",Te);Je.detail.dataAttr||ce(qe,Je.detail)}),ke=function(qe,Ge,Je){var Te,ve=qe.parentNode;ve&&(Je=he(qe,ve,Je),Te=le(qe,"lazybeforesizes",{width:Je,dataAttr:!!Ge}),Te.defaultPrevented||(Je=Te.detail.width,Je&&Je!==qe._lazysizesWidth&&ye(qe,ve,Te,Je)))},Ae=function(){var qe,Ge=Se.length;if(Ge)for(qe=0;qe<Ge;qe++)ke(Se[qe])},Ie=Pe(Ae);return{_:function(){Se=d.getElementsByClassName(p.autosizesClass),s("resize",Ie)},checkElems:Ie,updateElem:ke}})(),we=function(){!we.i&&d.getElementsByClassName&&(we.i=!0,me._(),Le._())};return e(function(){p.init&&we()}),m={cfg:p,autoSizer:me,loader:Le,init:we,uP:ce,aC:ae,rC:ne,hC:re,fire:le,gW:he,rAF:ge},m})})(lazysizes)),lazysizes.exports}requireLazysizes();var root_2=from_html('<meta name="description"/>'),root_3=from_html('<meta name="robots" content="noindex"/>'),root_1=with_script(from_html(`<meta name="viewport" content="width=device-width,initial-scale=1"/> <meta name="facebook-domain-verification" content="w3zhfekxqj6hp1udwqy7mm41zzkgxz"/> <script async="" src="https://www.googletagmanager.com/gtag/js?i
2375d=G-Y6H284TH55"><\/script> <script>
2376		if (/Trident\\/|MSIE/.test(window.navigator.userAgent))
2377			alert(
2378				"Sie verwenden als Browser »Internet Explorer« von Microsoft. Den kann man mit Fug und Recht als sehr alt bezeichnen. Diese Website funktioniert damit nicht bzw. nicht richtig. Nehmen Sie einen modernen Browser wie Chrome oder Firefox oder auch Edge, letzteren aber bitte in einer neuen Version."
2379			);
2380	<\/script> <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"/> <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"/> <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"/> <link rel="manifest" href="/site.webmanifest"/> <meta name="msapplication-TileColor" content="#004122"/> <meta name="theme-color" content="#ffffff"/> <!> <!>`,1)),root_5=from_html("<div><!></div>"),root_9=from_html("<footer><!></footer>"),root_11=from_html(`<aside><div style="width:340px;font-family:museosans; position: fixed; bottom: 0px; right:0px;height: 340px; z-index: 1009; background: url(https://staatstheater-augsburg.de/img/cookie.svg?3434); text-align: center;color:#fff;font-size:1.05rem; line-height:1.4rem;"><div style="padding: 40px 40px 0 40px;">Wir nutzen<br/>google Analytics, <br/>das hilft uns dabei, unsere
2381			Nutzer:innen besser zu verstehen. Mehr dazu in der <a href="/datenschutz" style="text-decoration: underline;background: none;color:#fff">Datenschutzerklärung</a>. <br/>Wir benötigen für die Verwendung von Cookies eine</div> <div style=""><div style="cursor: pointer; display:inline-block; padding: 4px 6px; background-color: rgb(0,65,34); color: #fff; text-align: center; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin: 10px auto 0 auto;">Zustimmung</div> <br/>oder<br/> <div style="cursor: pointer; display:inline-block; padding: 4px 6px; background-color: rgba(0,65,34,.3); color: #fff; text-align: center; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin: 2px auto 0 auto;">Ablehnung</div> <div style="display:none;position: absolute; right:9.5rem; top:1rem;cursor: pointer;"><svg xmlns="http://www.w3.org/2000/svg" style="height: 1.5rem; width: 2.3rem;" viewBox="0 0 100 100"><polyline fill="none" stroke="#fff" stroke-width="12" stroke-linejoin="miter" stroke-miterlimit="2" points="10,10 90,90"></polyline><polyline fill="none" stroke="#fff" stroke-width="12" stroke-linejoin="miter" stroke-miterlimit="2" points="90,10 10,90"></polyline></svg></div></div></div></aside>`),root_12=from_html('<div class="nl3go svelte-1n46o8q"><img src="https://staatstheater-augsburg.de/img/die_verwandlung/300/die_verwandlung_foto_jan-pieter_fuhr_7713.png" style="cursor:pointer;" alt=""/></div> <div class="zehnprozentblase svelte-1n46o8q"><img src="/img/10prozentblase.svg" style="width:150px;cursor:pointer;" alt=""/></div> <div class="xn svelte-1n46o8q"><img src="/img/x2.svg" style="width:100%;cursor:pointer;" alt=""/></div>',1),root=from_html('<!> <div><nav><!></nav> <div class="logo svelte-1n46o8q"><a href="/home" style="background:none"><!></a></div> <!> <main><!></main></div> <!> <!> <!> <!> <!>',1);function App(o,n){push(n,!0);const c=()=>store_get(curRoute,"$curRoute",d),[d,h]=setup_stores();window._=_;const m="2026-09-01";window.dataLayer=window.dataLayer||[];function p(){dataLayer.push(arguments)}p("js",new Date),p("config","AW-11435929265");function w(Ue){const ot=document.cookie.match("(^|;)\\s*"+Ue+"\\s*=\\s*([^;]+)");return ot?ot.pop():""}const z="ga-disable-UA-151590648-1";document.cookie.indexOf(z+"=true")>-1&&(window[z]=!0);let A=state(!!w("cookieopted")),y=state(!!w("newsletterweggeklickt"));w("internerHinweisGesehen"),user_effect(()=>console.log("newsletterweggeklickt:",get(y)));function s(){const Ue=new Date,bt=Ue.getTime()+36e5*24*28;Ue.setTime(bt),document.cookie="newsletterweggeklickt=true; expires="+Ue.toUTCString()+";path=/",set(y,!0)}function e(){var Ue=new Date,ot=new Date;ot.setTime(Ue.getTime()+36e5*24*3),document.cookie=z+"=true; expires="+ot.toUTCString()+" path=/",window[z]=!0}function f(){const Ue=new Date,bt=Ue.getTime()+36e5*24*7;Ue.setTime(bt),document.cookie="cookieopted=true; expires="+Ue.toUTCString()+";path=/"}const g=async()=>
2381{if(appState.eingeloggt)return;const ot=await(await fetch("/api/eingeloggt")).json();ot.message=="eingeloggt"&&(appState.eingeloggt=!0,appState.roles=ot.roles,appState.userName=ot.name||"")},R=new URLSearchParams(window.location.search);appState.params=Object.fromEntries(R.entries()),smoothscroll.polyfill();const q=window.matchMedia("(pointer: coarse)");appState.istouch=q.matches,q.addEventListener("change",Ue=>{appState.istouch=Ue.matches});const H=window.uri!="{{ uri }}"&&window.uri!=""?"/"+window.uri:window.location.pathname==="/"||window.location.pathname==="/undefined"?"/start":window.location.pathname;curRoute.set(H),console.log(c());let te=user_derived(()=>c().slice(1));"scrollRestoration"in history&&(window.history.scrollRestoration="manual");let re=user_derived(()=>appState.doc.titel?appState.doc.titel+" — Staatstheater Augsburg":"Staatstheater Augsburg"),ae=user_derived(()=>appState.spielplan&&appState.spielplan.length>0?spielplanToJsonLd(appState.spielplan,oe):[]);const ne=[{"@context":"https://schema.org","@type":"Organization","@id":"https://www.staatstheater-augsburg.de/#organization",name:"Staatstheater Augsburg",url:"https://www.staatstheater-augsburg.de",logo:"https://www.staatstheater-augsburg.de/logo.png"},{"@context":"https://schema.org","@type":"LocalBusiness","@id":"https://www.staatstheater-augsburg.de/#provinostrasse",name:"Staatstheater Augsburg – Provinostraße",parentOrganization:{"@type":"Organization","@id":"https://www.staatstheater-augsburg.de/#organization"},address:{"@type":"PostalAddress",streetAddress:"Provinostraße 52/Halle B4",addressLocality:"Augsburg",postalCode:"86153",addressCountry:"DE"},hasMap:"https://maps.google.com/?cid=16239091249071310348"},{"@context":"https://schema.org","@type":"LocalBusiness","@id":"https://www.staatstheater-augsburg.de/#brechtbuehne",name:"Staatstheater Augsburg – brechtbühne im Gaswerk",parentOrganization:{"@type":"Organization","@id":"https://www.staatstheater-augsburg.de/#organization"},address:{"@type":"PostalAddress",streetAddress:"Am Alten Gaswerk 8",addressLocality:"Augsburg",postalCode:"86156",addressCountry:"DE"},hasMap:"https://maps.google.com/?cid=1107289560047762315"},{"@context":"https://schema.org","@type":"LocalBusiness","@id":"https://www.staatstheater-augsburg.de/#sommerbuehne",name:"Staatstheater Augsburg – Sommerbühne am Gaswerk",parentOrganization:{"@type":"Organization","@id":"https://www.staatstheater-augsburg.de/#organization"},address:{"@type":"PostalAddress",streetAddress:"Am Alten Gaswerk 8",addressLocality:"Augsburg",postalCode:"86156",addressCountry:"DE"}}],oe={"martini-Park":"https://www.staatstheater-augsburg.de/#provinostrasse","brechtbühne im Gaswerk":"https://www.staatstheater-augsburg.de/#brechtbuehne","Sommerbühne am Gaswerk":"https://www.staatstheater-augsburg.de/#sommerbuehne"};user_effect(()=>{const Ue=c()==="/start"||c()==="/"||c()==="/spielplan";if(document.querySelectorAll('script[type="application/ld+json"][data-spielplan]').forEach(bt=>bt.remove()),document.querySelectorAll('script[type="application/ld+json"][data-business]').forEach(bt=>bt.remove()),!Ue)return;if(get(ae).length>0){const bt=document.createElement("script");bt.type="application/ld+json",bt.setAttribute("data-spielplan","true"),bt.textContent=JSON.stringify({"@context":"https://schema.org","@graph":get(ae)},null,2),document.head.appendChild(bt),console.log("[App] JSON-LD aktualisiert:",get(ae).length,"Events")}const ot=document.createElement("script");ot.type="application/ld+json",ot.setAttribute("data-business","true"),ot.textContent=JSON.stringify({"@context":"https://schema.org","@graph":ne},null,2),document.head.appendChild(ot),console.log("[App] Business JSON-LD hinzugefügt")}),user_effect(()=>{window.history.state||window.history.replaceState({path:H,y:0},get(re),H+window.location.search+window.location.hash)}),user_effect(()=>{appState.doc.sorte==="scrolly"?applyMode(theme.mode):document.documentElement.classList.remove("dark")}),user_effect(()=>{}),user_effect(()=>{g(appState.eingeloggt)}),user_effect(()=>{appState.bearbeitungssicht||(document.querySelector(".main").style.width=window.innerWidth+"px",(appState.doc.sorte==="mauer"||appState.doc.sorte==="pressefotos")&&mauerbau())}),user_effect(()=>{const Ue=_.debounce(()=>{appState.bearbeitungssicht||(document.querySelector(".main").style.width=window.innerWidth+"px",(appState.doc.sorte==="mauer"||appState.doc.sorte==="pressefotos")&&mauerbau())},300);return window.addEventListener("resize",Ue),()=>{window.removeEventListener("resize",Ue),Ue.cancel()}}),onMount(async()=>{let ot=await(await fetch("/api/personenseiten")).json();const bt={};_.each(ot.rows,at=>{bt[at.key]=at.value}),appState.personenseiten=bt;const At=xdatelokalisiert(new XDate(!0)).toISOString().substr(0,10);let be=await(await fetch("/api/spieltermine_next12?limit=80&startkey="+encodeURIComponent(At))).json(),Et=be&&be.rows?be.rows:[],St=_.map(Et,at=>at.doc);if(_.filter(St,at=>!!at.frei),_.filter(St,at=>at.beginn>"2025-12-27"&&at.beginn<"2026-01-01"),appState.spielplannext12bundled=spielplanmonateweise(St),appState.eingeloggt){let st=await(await fetch("/api/zahlen")).json();appState.zahlen=_.groupBy(st,vt=>vt.id)}let Bt=await(await fetch("/api/status")).json();appState.status=_.groupBy(Bt,at=>at.id);const Tt=await(await fetch("/api/spieltermine_abheute?public="+!appState.eingeloggt+"&startkey="+encodeURIComponent(At))).json(),Be=Tt&&Tt.rows?Tt.rows:[],Xe=_.map(Be,at=>at.doc),Ke=_.filter(Xe,at=>!!at.frei);appState.spielplan=Xe,appState.spielplanbundled=spielplanmonateweise(Ke),appState.spielplanallebundled=spielplanmonateweise(Xe);let nt;appState.eingeloggt?nt=await fetch("/api/spieltermine_mitabo?alle=true&startkey="+encodeURIComponent("2026-09-01")):nt=await fetch("/api/spieltermine_mitabo?alle=false&startkey="+encodeURIComponent(m));const xt=await nt.json(),Mt=xt&&xt.rows?xt.rows:[],Ye=_.map(Mt,at=>at.doc);appState.abotermine=Ye}),appState.bearbeitungssicht=!0;var le=root();head("1n46o8q",Ue=>{var ot=root_1(),bt=sibling(first_child(ot),20);{var At=Et=>{var St=root_2();template_effect(()=>set_attribute(St,"content",appState.doc.description)),append(Et,St)};if_block(bt,Et=>{appState.doc.description&&Et(At)})}var ft=sibling(bt,2);{var be=Et=>{var St=root_3();append(Et,St)};if_block(ft,Et=>{appState.doc.noindex&&Et(be)})}deferred_template_effect(()=>{$document.title=get(re)??""}),append(Ue,ot)}),event("popstate",$window,function(...Ue){handlerBackNavigation?.apply(this,Ue)});var ce=first_child(le);Toasts(ce,{});var ue=sibling(ce,2),he=child(ue),ge=child(he);{var Oe=Ue=>{HamburgerNav(Ue,{})};if_block(ge,Ue=>
2381{appState.doc.sorte!="scrolly"&&Ue(Oe)})}var $e=sibling(he,2),Pe=child($e),Le=child(Pe);Logo(Le,{});var me=sibling($e,2);{var we=Ue=>{var ot=root_5(),bt=child(ot);Switch(bt,{get checked(){return appState.bearbeitungssicht},set checked(At){appState.bearbeitungssicht=At}}),template_effect(()=>set_class(ot,1,`webfreigegebenetrigger ${appState.doc.sorte=="scrolly"?"scrolly":""}`,"svelte-1n46o8q")),append(Ue,ot)};if_block(me,Ue=>{appState.eingeloggt&&Ue(we)})}var Se=sibling(me,2),ye=child(Se);{var ke=Ue=>{Seite(Ue,{})},Ae=Ue=>{Spielplan(Ue,{})},Ie=Ue=>{Seite(Ue,{})};if_block(ye,Ue=>{c()==="/"?Ue(ke):c()==="/spielplan"?Ue(Ae,1):Ue(Ie,-1)})}var qe=sibling(ue,2);{var Ge=Ue=>{var ot=root_9(),bt=child(ot);Fuss(bt),append(Ue,ot)};if_block(qe,Ue=>{appState.doc&&appState.doc.sorte!="mauer"&&appState.doc.sorte!="pressefotos"&&appState.doc.sorte!="scrolly"&&Ue(Ge)})}var Je=sibling(qe,2);{var Te=Ue=>{Modal(Ue,{})};if_block(Je,Ue=>{appState.modal.offen&&Ue(Te)})}var ve=sibling(Je,2);{var et=Ue=>{var ot=root_11(),bt=child(ot),At=sibling(child(bt),2),ft=child(At),be=sibling(ft,6),Et=sibling(be,2);delegated("click",ft,()=>{set(A,!0),f()}),delegated("click",be,()=>{set(A,!0),f(),e()}),delegated("click",Et,()=>{set(A,!0),e()}),append(Ue,ot)};if_block(ve,Ue=>{get(A)||Ue(et)})}var mt=sibling(ve,2);{var ht=Ue=>{var ot=root_12(),bt=first_child(ot),At=child(bt),ft=sibling(bt,2),be=child(ft),Et=sibling(ft,2),St=child(Et);delegated("click",At,()=>{s(),curRoute.set("/newsletter")}),delegated("click",be,()=>{s(),curRoute.set("/newsletter")}),delegated("click",St,()=>{s()}),append(Ue,ot)};if_block(mt,Ue=>{get(y)||Ue(ht)})}var ct=sibling(mt,2);if_block(ct,Ue=>{}),template_effect(()=>{set_class(ue,1,`main ${(get(te)==""?"start":get(te)=="spielplan"?"spielplan":appState.doc.sorte?appState.doc.sorte:"")??""}`,"svelte-1n46o8q"),set_style(ue,appState.doc.shadow?"color:rgba(0,65,34,.6)":""),set_style($e,`position:absolute;top:0;left:calc(50% - 60px); z-index:4; display: ${appState.doc.sorte=="scrolly"?"none":"block"}`)}),bind_window_scroll("y",()=>appState.ypsilon,Ue=>appState.ypsilon=Ue),bind_window_size("innerWidth",Ue=>appState.fensterbreite=Ue),delegated("click",ue,function(...Ue){linkHandler?.apply(this,Ue)}),append(o,le),pop(),h()}delegate(["click"]);mount(App,{target:document.getElementById("app")});export{onDestroy as $,mauerbau as A,sizzle as B,connectYjs as C,child as D,text$1 as E,set_text as F,set_style as G,Hjson as H,each as I,index as J,set_value as K,set_checked as L,bind_checked as M,from_html as N,oderleer as O,set_attribute as P,redirectTo as Q,delegate as R,confirmToast as S,Textarea$1 as T,noop as U,attribute_effect as V,init_select as W,select_option as X,invalid_default_snippet as Y,to_array as Z,_,prop as a,bind_this as a0,comment$1 as b,createEventDispatcher as c,append as d,pop as e,first_child as f,state as g,proxy as h,init as i,get as j,set as k,appState as l,action as m,sibling as n,onMount as o,push as p,if_block as q,template_effect as r,slot as s,toast as t,user_effect as u,set_class as v,delegated as w,bind_select_value as x,bind_value as y,user_derived as z};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.