1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[141],{1184:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MCP_STANDALONE_ISSUER_ORIGIN_HEADER=t.AUTHKIT_EXTERNAL_CALLBACK_PATH=void 0,t.AUTHKIT_EXTERNAL_CALLBACK_PATH="/oauth2/external/callback",t.MCP_STANDALONE_ISSUER_ORIGIN_HEADER="x-storika-mcp-standalone-issuer-origin"},2145:(e,t)=>{var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.AgentJobStatus=t.AgentType=void 0,function(e){e.ACCOUNT_EXPORT="account_export",e.COMMUNICATION_EN="seeding_communication_en",e.COMMUNICATION_KR="seeding_communication_kr",e.COMMUNICATION_JP="seeding_communication_jp",e.ORCHESTRATOR="campaign_orchestrator",e.SOCIAL_RESEARCH="social_research",e.CONTACT_DISCOVERY="contact_discovery",e.DISCOVERY_FAN_OUT="discovery_fan_out"}(n||(t.AgentType=n={})),function(e){e.PENDING="pending",e.PROCESSING="processing",e.FAILED="failed",e.COMPLETED="completed",e.CANCELED="canceled"}(r||(t.AgentJobStatus=r={}))},4070:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.NumberDisplayFormat=void 0,function(e){e.FULL="full",e.COMPACT="compact"}(n||(t.NumberDisplayFormat=n={}))},5500:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.CriticVerdict=void 0,function(e){e.PASS="pass",e.REJECT="reject"}(n||(t.CriticVerdict=n={}))},6567:(e,t)=>{var n,r,i;Object.defineProperty(t,"__esModule",{value:!0}),t.OpsEventActorType=t.OpsEventVisibility=t.CampaignCreatorOpsEventType=void 0,function(e){e.ADDRESS_REQUESTED="address_requested",e.ADDRESS_COLLECTED="address_collected",e.ADDRESS_INVALID="address_invalid",e.ITEM_SENT="item_sent",e.DELIVERY_UPDATED="delivery_updated",e.DELIVERED="delivered",e.EXCEPTION_FLAGGED="exception_flagged",e.INTERNAL_NOTE_ADDED="internal_note_added",e.STATUS_CHANGED="status_changed",e.SHIPPING_INFO_UPDATED="shipping_info_updated"}(n||(t.CampaignCreatorOpsEventType=n={})),function(e){e.INTERNAL="internal",e.CLIENT_VISIBLE="client_visible"}(r||(t.OpsEventVisibility=r={})),function(e){e.SYSTEM="system",e.AGENT="agent",e.HUMAN="human",e.API="api"}(i||(t.OpsEventActorType=i={}))},7726:(e,t)=>{var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.ProductInfoImageRole=t.ProductInfoImageSource=void 0,function(e){e.OG="og",e.JSONLD="jsonld",e.MANUAL="manual"}(n||(t.ProductInfoImageSource=n={})),function(e){e.FRONT="front",e.BACK="back",e.PACKAGING="packaging",e.LIFESTYLE="lifestyle",e.OTHER="other"}(r||(t.ProductInfoImageRole=r={}))},8188:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DISCOVERY_EDITOR_LEASE_HEADER=t.DISCOVERY_FINAL_SELECTION_MAX=t.DISCOVERY_FINAL_COUNTS_SCHEMA_VERSION=void 0,t.DISCOVERY_FINAL_COUNTS_SCHEMA_VERSION=2,t.DISCOVERY_FINAL_SELECTION_MAX=500,t.DISCOVERY_EDITOR_LEASE_HEADER="x-discovery-editor-lease"},9200:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.REQUIRED_SHIPPING_ADDRESS_FIELDS=t.ShippingAddressField=void 0,t.isShippingAddressComplete=function(e){return t.REQUIRED_SHIPPING_ADDRESS_FIELDS.every(t=>{var n;return!!(n=e[t])&&n.trim().length>0})},function(e){e.CREATOR_NAME="creatorName",e.PHONE_NUMBER="phoneNumber",e.ADDRESS="address",e.CITY="city",e.STATE="state",e.POSTAL_CODE="postalCode"}(n||(t.ShippingAddressField=n={})),t.REQUIRED_SHIPPING_ADDRESS_FIELDS=[n.ADDRESS,n.POSTAL_CODE,n.CITY,n.STATE,n.PHONE_NUMBER,n.CREATOR_NAME]},9273:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}
1),t.MAX_BRAND_COMPETITORS=t.BrandCompetitorSource=void 0,function(e){e.USER="user",e.SUGGESTED="suggested"}(n||(t.BrandCompetitorSource=n={})),t.MAX_BRAND_COMPETITORS=10},10141:(e,t,n)=>{var r=Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]},i=function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(45638),t),i(n(50116),t),i(n(53016),t),i(n(10437),t),i(n(93902),t),i(n(34054),t),i(n(35825),t),i(n(76473),t),i(n(47933),t),i(n(50794),t),i(n(14859),t),i(n(60442),t),i(n(25212),t),i(n(60591),t),i(n(51092),t),i(n(58399),t),i(n(1184),t),i(n(92599),t),i(n(86049),t),i(n(28194),t),i(n(93025),t),i(n(34275),t),i(n(26986),t),i(n(84876),t),i(n(31906),t),i(n(33820),t),i(n(75147),t),i(n(28171),t),i(n(80939),t),i(n(29885),t),i(n(47778),t),i(n(90386),t),i(n(13553),t),i(n(15137),t),i(n(84526),t),i(n(65963),t),i(n(34719),t),i(n(26996),t),i(n(23844),t),i(n(84181),t),i(n(61708),t),i(n(8188),t),i(n(93570),t),i(n(96446),t),i(n(86678),t),i(n(99905),t),i(n(70319),t),i(n(9200),t),i(n(9273),t),i(n(30308),t),i(n(75258),t),i(n(36553),t),i(n(65054),t),i(n(64713),t),i(n(14971),t),i(n(35903),t)},10273:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.OrchestratorChatErrorCode=void 0,function(e){e.IN_FLIGHT="ORCHESTRATOR_CHAT_IN_FLIGHT",e.TURN_ALREADY_COMPLETED="ORCHESTRATOR_CHAT_TURN_ALREADY_COMPLETED",e.THREAD_MONEY_DUE="CHAT_THREAD_MONEY_DUE",e.THREAD_STATE_CONFLICT="CHAT_THREAD_STATE_CONFLICT"}(n||(t.OrchestratorChatErrorCode=n={}))},10437:(e,t,n)=>{var r,i,a,o,_,l,E,c,s,u,d,A;Object.defineProperty(t,"__esModule",{value:!0}),t.CREATOR_BRIEF_CAPS=t.EMPTY_CREATOR_BRIEF_STRUCTURED=t.ProofOfPosting=t.DraftSubmissionChannel=t.DeadlineAnchor=t.AdDisclosurePlacement=t.AdDisclosureMethod=t.CreativeFreedom=t.RequiredCta=t.ProductVisibility=t.ContentFormat=t.PostingObligation=t.EMPTY_VIDEO_LENGTH_RANGE=t.VideoLengthUnit=t.CREATOR_BRIEF_GUIDE_MODES=t.CreatorBriefGuideMode=t.DEFAULT_PLAYBOOK_POLICIES=void 0,t.videoLengthRangePresent=O,t.isContentReviewApprovalLocked=function(e){return e.type===T.CampaignType.PAID_COLLABORATION||e.type===T.CampaignType.AFFILIATE_MARKETING||!0===e.isPaidCollaboration},t.creatorBriefSectionPresent=function(e,t){if(null==t)return!1;if("contentReviewApproval"===e)return!0;if("faq"===e)return Array.isArray(t.items)&&t.items.length>0;let n=t[I[e]],r=Array.isArray(n)&&n.length>0,i="string"==typeof t.notes?t.notes:"";if(r||""!==i.trim())return!0;let a=e=>"string"==typeof e&&""!==e.trim(),o=e=>Array.isArray(e)&&e.some(e=>a(e));return"whatCreatorsReceive"===e?"number"==typeof t.quantityPerCreator&&t.quantityPerCreator>0||!0===t.cashCompensation:"deliverables"===e?O(t.videoLength)||a(t.postingObligation)||Array.isArray(t.contentFormats)&&t.contentFormats.length>0||"number"==typeof t.quantityPerPerson&&t.quantityPerPerson>0||a(t.contentLanguage)||!0===t.originalContent||a(t.keyMessage)||a(t.productVisibility)||a(t.requiredCta):"contentGuidelines"===e&&(o(t.prohibitedItems)||a(t.creativeFreedom)||o(t.requiredPhrases)||a(t.adDisclosureMethod)||a(t.adDisclosurePlacement))};let T=n(43754);function O(e){if(null==e||"object"!=typeof e)return!1;let t=e.min,n=e.max;return"number"==typeof(null==t?void 0:t.value)&&t.value>0||"number"==typeof(null==n?void 0:n.value)&&n.value>0}t.DEFAULT_PLAYBOOK_POLICIES={schemaVersion:1,guardrails:{noCompPromises:!0,enforceMaxFee:!0,noAddressBeforeApproval:!0,customProhibitions:[]},cadence:{maxFollowUps:3,minHoursBetweenTouches:24,maxOutreachPerCreatorPerWeek:0,quietHoursNote:""},escalation:{onLegalOrClaimsRisk:!0,onFeeAboveMax:!0,onNegativeSentiment:!1,customTriggers:[]}},function(e){e.LINK="link",e.PDF="pdf",e.TEXT="text"}(r||(t.CreatorBriefGuideMode=r={})),t.CREATOR_BRIEF_GUIDE_MODES=Object.values(r),function(e){e.SEC="sec",e.MIN="min"}(i||(t.VideoLengthUnit=i={})),t.EMPTY_VIDEO_LENGTH_RANGE={min:{value:0,unit:i.SEC},max:{value:0,unit:i.SEC}},function(e){e.REQUIRED="required",e.OPTIONAL="optional"}(a||(t.PostingObligation=a={})),function(e){e.REELS="reels",e.FEED="feed",e.STORY="story",e.SHORTS="shorts"}(o||(t.ContentFormat=o={})),function(e){e.FULL_PRODUCT="full_product",e.LABEL_VISIBLE="label_visible",e.UNBOXING="unboxing",e.IN_USE="in_use"}(_||(t.ProductVisibility=_={})),function(e){e.LINK_CLICK="link_click",e.PROFILE_VISIT="profile_visit",e.CODE_USE="code_use",e.NONE="none"}(l||(t.RequiredCta=l={})),function(e){e.FOLLOW_SCRIPT="follow_script",e.KEEP_MESSAGE="keep_message",e.FULL_FREEDOM="full_freedom"}(E||(t.CreativeFreedom=E={})),function(e){e.GIFTED="gifted",e.AD="ad",e.SPONSORED="sponsored",e.PLATFORM_LABEL="platform_label"}(c||(t.AdDisclosureMethod=c={})),function(e){e.FIRST_CAPTION_LINE="first_caption_line",e.ANYWHERE_IN_CAPTION="anywhere_in_caption",e.VIDEO_SUBTITLE="video_subtitle"}(s||(t.AdDisclosurePlacement=s={})),function(e){e.CAMPAIGN_START="campaign_start",e.DELIVERY_DATE="delivery_date",e.FINAL_APPROVAL="final_approval"}(u||(t.DeadlineAnchor=u={})),function(e){e.STORIKA="storika",e.EMAIL="email",e.DM="dm"}(d||(t.DraftSubmissionChannel=d={})),function(e){e.SUBMIT_URL="submit_url",e.SCREENSHOT="screenshot",e.AUTO_DETECT="auto_detect"}(A||(t.ProofOfPosting=A={})),t.EMPTY_CREATOR_BRIEF_STRUCTURED={schemaVersion:1,whatCreatorsReceive:null,deliverables:null,contentGuidelines:null,contentReviewApproval:null,faq:null};let I={whatCreatorsReceive:"offerings",deliverables:"items",contentGuidelines:"guides"};t.CREATOR_BRIEF_CAPS={offerings:20,deliverableItems:20,guides:10,faqItems:20,shortText:120,question:300,notes:2e3,answer:2e3,guideText:2e4,url:2048,quantityMax:999,turnaroundDaysMax:60,revisionRoundsMax:10,videoLengthValueMax:999,offsetDaysMax:365,prohibitedItems:20,prohibitedItemText:300,keyMessage:500,requiredPhrases:10,requiredPhraseText:300,contentFormats:4}},12134:(e,t)=>
1{Object.defineProperty(t,"__esModule",{value:!0}),t.PREFLIGHT_ORG_PLACEHOLDER_NAME=t.UNTITLED_CAMPAIGN_NAME=void 0,t.signupCardRequiredFor=function(e){return e.name===t.PREFLIGHT_ORG_PLACEHOLDER_NAME&&null==e.monthlyTokensGrantedAt},t.UNTITLED_CAMPAIGN_NAME="Untitled campaign",t.PREFLIGHT_ORG_PLACEHOLDER_NAME="Preflight"},13132:(e,t)=>{var n,r,i;Object.defineProperty(t,"__esModule",{value:!0}),t.DISCOVERY_SERVING_REASONS_RETIRED=t.DISCOVERY_SERVING_REASONS=t.DISCOVERY_SERVING_SOURCES=t.FRESHNESS_FUTURE_TOLERANCE_MS=t.CORPUS_NULL_COUNTRY_RATIO_CEILING=t.CORPUS_STALE_DAYS_THRESHOLD=t.DiscoveryRunError=t.DiscoveryApprovalMode=t.ShortlistRunStatus=void 0,t.classifyCorpusFreshness=function(e,n){if(0===e.sampledRows)return"sample_unavailable";if(!e.lastPostAt)return"no_posts";let r=n-new Date(e.lastPostAt).getTime();return-r>t.FRESHNESS_FUTURE_TOLERANCE_MS?"future_dated":r>24*t.CORPUS_STALE_DAYS_THRESHOLD*36e5?"stale":e.countryNullRatio>t.CORPUS_NULL_COUNTRY_RATIO_CEILING?"high_null_country_ratio":"ok"},function(e){e.PENDING="pending",e.RUNNING="running",e.AWAITING_BATCH="awaiting_batch",e.AWAITING_REVIEW="awaiting_review",e.REVIEWING="reviewing",e.CONVERGED="converged",e.SHORTLIST_READY="shortlist_ready",e.COMPLETED="completed",e.FAILED="failed",e.CANCELED="canceled"}(n||(t.ShortlistRunStatus=n={})),function(e){e.ALWAYS_ASK="always_ask",e.YOLO="yolo"}(r||(t.DiscoveryApprovalMode=r={})),function(e){e.AGENT_NOT_RESPONDING="agent_not_responding",e.ANALYSIS_TIMEOUT="analysis_timeout",e.WRONG_AGENT_DEPLOYED="wrong_agent_deployed",e.DB_CONNECTION_FAILED="db_connection_failed",e.NO_CREATORS_FOUND="no_creators_found",e.SCORING_FAILED="scoring_failed",e.FILTER_NON_CONVERGENCE="filter_non_convergence",e.EXECUTION_ID_TIMEOUT="execution_id_capture_failed",e.DISCOVERY_COMPILE_LLM_FAILED="discovery_compile_llm_failed",e.DISCOVERY_COMPILE_PARSE_FAILED="discovery_compile_parse_failed",e.DISCOVERY_RECALL_TIMEOUT="discovery_recall_timeout"}(i||(t.DiscoveryRunError=i={})),t.CORPUS_STALE_DAYS_THRESHOLD=14,t.CORPUS_NULL_COUNTRY_RATIO_CEILING=.3,t.FRESHNESS_FUTURE_TOLERANCE_MS=36e5,t.DISCOVERY_SERVING_SOURCES=["mart","spanner"],t.DISCOVERY_SERVING_REASONS=["canaried","spanner_disabled","spec_creator_history_filter","spec_creator_history_rank","spec_unsupported_predicate","spec_brief_unavailable","corpus_freshness_unknown","corpus_stale","saturation_projection_unavailable","exclusions_too_large","spanner_error","spanner_timeout","spanner_retrieval_unavailable","spanner_empty","spanner_under_filled"],t.DISCOVERY_SERVING_REASONS_RETIRED=["org_not_canaried","serving_mode_off","spec_sponsored_saturation","relaxation_ladder_enabled"]},13553:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CHAT_ATTACHMENT_MAX_DEFAULT_SIZE_MB=t.CHAT_ATTACHMENT_MAX_REFERENCES=t.CHAT_ATTACHMENT_MAX_VIDEO_SIZE_MB=t.CHAT_ATTACHMENT_ALLOWED_MIME_TYPES=t.CHAT_ATTACHMENT_ERROR_CODES=t.CHAT_ATTACHMENT_RUN_ERROR_CODES=t.CHAT_ATTACHMENT_KEY_PREFIX=void 0,t.isChatAttachmentBlock=function(e){let n=(0,r.asRecord)(e);if(!n)return!1;let i=["type","objectKey","generation","fileName","fileSize","mimeType"],a=Reflect.ownKeys(n);return a.length===i.length&&a.every(e=>"string"==typeof e&&i.includes(e))&&"attachment"===n.type&&"string"==typeof n.objectKey&&n.objectKey.length<=1024&&n.objectKey.startsWith(t.CHAT_ATTACHMENT_KEY_PREFIX)&&/^[A-Za-z0-9._/-]+$/.test(n.objectKey)&&n.objectKey.split("/").every(e=>""!==e&&"."!==e&&".."!==e)&&"string"==typeof n.generation&&/^[1-9][0-9]{0,19}$/.test(n.generation)&&"string"==typeof n.fileName&&n.fileName.trim().length>0&&n.fileName.length<=255&&!/[\/\\\x00-\x1f\x7f]/.test(n.fileName)&&"number"==typeof n.fileSize&&Number.isSafeInteger(n.fileSize)&&n.fileSize>0&&"string"==typeof n.mimeType&&n.mimeType.length<=255&&/^[a-zA-Z0-9!#$&^_.+-]+\/[a-zA-Z0-9!#$&^_.+-]+$/.test(n.mimeType)};let r=n(65054);t.CHAT_ATTACHMENT_KEY_PREFIX="chat-attachments/",t.CHAT_ATTACHMENT_RUN_ERROR_CODES={ALREADY_PERSISTED:"attachment_already_persisted",REFERENCE_CONFLICT:"attachment_reference_conflict",QUOTA_EXCEEDED:"attachment_quota_exceeded"},t.CHAT_ATTACHMENT_ERROR_CODES={QUOTA_EXCEEDED:"CHAT_ATTACHMENT_QUOTA_EXCEEDED",CONTENT_UNSUPPORTED:"CHAT_ATTACHMENT_CONTENT_UNSUPPORTED"},t.CHAT_ATTACHMENT_ALLOWED_MIME_TYPES=["image/jpeg","image/png","image/gif","
1image/webp","video/mp4","video/quicktime","application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],t.CHAT_ATTACHMENT_MAX_VIDEO_SIZE_MB=500,t.CHAT_ATTACHMENT_MAX_REFERENCES=20,t.CHAT_ATTACHMENT_MAX_DEFAULT_SIZE_MB=10},14859:(e,t)=>{var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.VideoAnalysisConfidence=t.VideoSceneLabel=void 0,function(e){e.HOOK="hook",e.PROBLEM="problem",e.DEMONSTRATION="demonstration",e.RESULT="result",e.CTA="cta",e.OTHER="other"}(n||(t.VideoSceneLabel=n={})),function(e){e.LOW="low",e.MEDIUM="medium",e.HIGH="high"}(r||(t.VideoAnalysisConfidence=r={}))},14971:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SAMPLE_REVIEW_RECEIPT_LINE=t.SAMPLE_REVIEW_RECEIPT=t.SAMPLE_REFUSAL_RECEIPT_LINE=t.SAMPLE_REFUSAL_RECEIPT=t.SAMPLE_ACTION_RECEIPT_LINE=t.SAMPLE_ACTION_RECEIPT=void 0,t.SAMPLE_ACTION_RECEIPT={status:"ok",verdict:"Updated the campaign detail.",counts:{candidates:0,kept:3,dropped:0,reviewers:0,iteration:1},ledger_ref:"iter_01",read_trigger:"get_discovery_run_state",next_action:null,disposition:"completed"},t.SAMPLE_ACTION_RECEIPT_LINE="Updated the campaign detail. (candidates 0, kept 3, dropped 0, reviewers 0, pass 1)",t.SAMPLE_REFUSAL_RECEIPT={status:"refused",verdict:"Refused: the payout gate is not approved.",counts:{candidates:0,kept:0,dropped:0,reviewers:0,iteration:0},ledger_ref:null,read_trigger:"",next_action:"approve_payout_gate",disposition:"refused",refusal:{not_done:"No payout was sent",why:"the payout gate has no approval",unblock:"approve the pending payout gate card"}},t.SAMPLE_REFUSAL_RECEIPT_LINE="Not done: No payout was sent. Why: the payout gate has no approval. To unblock: approve the pending payout gate card.",t.SAMPLE_REVIEW_RECEIPT={status:"ok",verdict:"Reviewed 4 creators: 2 kept, 2 dropped",counts:{candidates:4,kept:2,dropped:2,reviewers:2,iteration:1},ledger_ref:"iter_02",read_trigger:"get_discovery_run_state",next_action:"Continue the search",disposition:"completed",recommendation:"continue",feedback:["country: widen to US and CA","followers: lower the floor"]},t.SAMPLE_REVIEW_RECEIPT_LINE="Reviewed 4 creators: 2 kept, 2 dropped (candidates 4, kept 2, dropped 2, reviewers 2, pass 1) Keep looking. Suggested changes: country: widen to US and CA; followers: lower the floor"},15137:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TURN_EVENT_SCHEMA_VERSION=void 0,t.isTurnEvent=o,t.decodeTurnEvent=function(e){let t="string"==typeof e?JSON.parse(e):e;if(!o(t))throw Error("Malformed turn event: does not match the shared SSOT");return t};let r=n(22206);t.TURN_EVENT_SCHEMA_VERSION=1;let i=new Set(Object.values(r.TurnEventClass));function a(e){return"string"==typeof e&&e.length>0}function o(e){if("object"!=typeof e||null===e||"number"!=typeof e.schemaVersion||!a(e.eventClass)||!i.has(e.eventClass)||!a(e.runId)||!a(e.threadId)||!a(e.emittedAt))return!1;switch(e.eventClass){case r.TurnEventClass.TURN_LIFECYCLE:return"started"===e.phase||"completed"===e.phase||"aborted"===e.phase;case r.TurnEventClass.TOOL:return("call"===e.phase||"result"===e.phase)&&a(e.toolCallId)&&a(e.name);case r.TurnEventClass.APPROVAL:return("minted"===e.phase||"decided"===e.phase)&&a(e.approvalId);case r.TurnEventClass.ERROR:return a(e.code)&&a(e.message);default:return!1}}},16145:(e,t)=>{var n,r,i,a,o;Object.defineProperty(t,"__esModule",{value:!0}),t.X_STORIKA_PAGE_LOCATION=t.X_STORIKA_PARENT_CALL_ID=t.X_STORIKA_ROOT_REQUEST_ID=t.BATCH_JOB_ID_METADATA_KEY=t.LlmPageLocation=t.CostConfidence=t.CostEstimationMethod=t.LlmFeature=t.LlmCallSurface=void 0,function(e){e.Api="api",e.ApiWorker="api-worker",e.Agent="agent",e.Dagster="dagster"}(n||(t.LlmCallSurface=n={})),function(e){e.OrchestratorChat="orchestrator_chat",e.CampaignCreationChat="campaign_creation_chat",e.CampaignOnboarding="campaign_onboarding",e.CampaignCreationExtractSource="campaign_creation_extract_source",e.AiDraft="ai_draft",e.TranslateIncoming="translate_incoming",e.TranslateOutgoing="translate_outgoing",e.PreflightKnowledgeRevision="preflight_knowledge_revision",e.PreflightSimulation="preflight_simulation",e.CreativeGuideDigest="creative_guide_digest",e.CampaignEmailPolish="campaign_email_polish",e.TemplateIntroSample="template_intro_sample",e.KnowledgeDigest="knowledge_digest",e.KnowledgeVibeEdit="knowledge_vibe_edit",e.OrganizationBrandAnalysis="organization_brand_analysis",e.CampaignReportAnalysis="c
1ampaign_report_analysis",e.OrchestratorLoop="orchestrator_loop",e.OrchestratorSegmentDraft="orchestrator_segment_draft",e.OrchestratorAutopilotSelfDraft="orchestrator_autopilot_self_draft",e.OrchestratorPolicyEvaluation="orchestrator_policy_evaluation",e.GmailCommunicateAgent="gmail_communicate_agent",e.SocialResearchAgentWorkflow="social_research_agent_workflow",e.SocialResearchDeepResearch="social_research_deep_research",e.VlmPostModeration="vlm_post_moderation",e.FollowUpEmail="follow_up_email",e.DiscoveryRecallCompiler="discovery_recall_compiler",e.DiscoveryLlmGate="discovery_llm_gate",e.DiscoveryReviewRationale="discovery_review_rationale",e.DiscoveryIntentParse="discovery_intent_parse",e.DiscoveryCandidateReview="discovery_candidate_review",e.DiscoveryWebSearch="discovery_web_search",e.ContactEvaluator="contact_evaluator",e.EmailReasoningExtractor="email_reasoning_extractor",e.GeminiVideoAnalysis="gemini_video_analysis",e.GeminiTextAnalysis="gemini_text_analysis",e.GeminiStructuredAnalysis="gemini_structured_analysis",e.VocClassifier="voc_classifier",e.VocMeetingExtractor="voc_meeting_extractor",e.VocClusterer="voc_clusterer",e.VocPriority="voc_priority",e.DiscoveryBatchProposal="discovery_batch_proposal",e.OutreachEmail="outreach_email",e.CampaignComplianceRubricExtraction="campaign_compliance_rubric_extraction",e.CampaignContentCompliance="campaign_content_compliance",e.VisualAdherenceCheck="visual_adherence_check",e.SocialResearchPlanner="social_research_planner",e.SocialResearchSynthesizer="social_research_synthesizer",e.SocialResearchCritic="social_research_critic",e.SocialResearchFinalizer="social_research_finalizer",e.SocialResearchSubagentGoogle="social_research_subagent_google",e.SocialResearchSubagentBrandSite="social_research_subagent_brand_site",e.SocialResearchSubagentInstagram="social_research_subagent_instagram",e.SocialResearchSubagentTiktok="social_research_subagent_tiktok",e.SocialResearchAnalyzeBrandPage="social_research_analyze_brand_page",e.SocialResearchAnalyzeVideo="social_research_analyze_video",e.CampaignOrchestratorExperimentStrategist="campaign_orchestrator_experiment_strategist",e.CampaignOrchestratorCreatorDiscovery="campaign_orchestrator_creator_discovery",e.CampaignOrchestratorCommunicationRouter="campaign_orchestrator_communication_router",e.CampaignOrchestratorKnowledgeCurator="campaign_orchestrator_knowledge_curator",e.CampaignOrchestratorOutreachPlanner="campaign_orchestrator_outreach_planner",e.CommunicationAgent="communication_agent",e.CampaignCreationAgent="campaign_creation_agent",e.DagsterIgPostPhase1Vlm="dagster_ig_post_phase1_vlm",e.DagsterIgPostPhase1Text="dagster_ig_post_phase1_text",e.DagsterTtPostPhase1Vlm="dagster_tt_post_phase1_vlm",e.DagsterTtPostPhase1Text="dagster_tt_post_phase1_text",e.DagsterIgProfileEnrichment="dagster_ig_profile_enrichment",e.DagsterTtProfileEnrichment="dagster_tt_profile_enrichment",e.DagsterCommentClassification="dagster_comment_classification",e.DagsterCreatorRateExtraction="dagster_creator_rate_extraction",e.DagsterMultimodalEmbedding="dagster_multimodal_embedding",e.DagsterVideoAnalysis="dagster_video_analysis",e.DagsterAudioTranscription="dagster_audio_transcription",e.Unspecified="unspecified"}(r||(t.LlmFeature=r={})),function(e){e.TokensExact="tokens_exact",e.CharProxy="char_proxy",e.InheritsFromChildren="inherits_from_children",e.Unknown="unknown"}(i||(t.CostEstimationMethod=i={})),function(e){e.Exact="exact",e.Estimated="estimated",e.Unknown="unknown"}(a||(t.CostConfidence=a={})),function(e){e.CampaignCreation="campaign-creation",e.CampaignEdit="campaign-edit",e.CampaignDashboard="campaign-dashboard",e.CampaignOverview="campaign-overview",e.CampaignStrategy="campaign-strategy",e.CampaignConversations="campaign-conversations",e.CampaignCreators="campaign-creators",e.CampaignContents="campaign-contents",e.CampaignKnowledge="campaign-knowledge",e.CampaignPreflight="campaign-preflight",e.CampaignActivity="campaign-activity",e.CampaignBroadcast="campaign-broadcast",e.CampaignMessageTemplates="campaign-message-templates",e.CampaignPerformances="campaign-performances",e.CampaignProgress="campaign-progress",e.CampaignProspects="campaign-prospects",e.CampaignReport="campaign-report",e.CampaignSearch="campaign-search",e.CampaignShortlistRuns="campaign-shortlist-runs",e.Dashboard="dashboard",e.Brief="brief",e.ProfileDetail="profile-detail",e.Admin="admin",e.Settings="settings",e.Onboarding="onboarding",e.ProductCreation="product-creation",e.ProductDetail="product-detail",e.InstagramProfileRequests="instagram-profile-requests",e.System="system",e.Unknown="unknown"}(o||(t.LlmPageLocation=o={})),t.BATCH_JOB_ID_METADATA_KEY="batch_job_id",t.X_STORIKA_ROOT_REQUEST_ID="X-Storika-Root-Request-Id",t.X_STORIKA_PARENT_CALL_ID="X-Storika-Parent-Call-Id",t.X_STORIKA_PAGE_LOCATION="X-Storika-Page-Location"},18130:(e,t)=>{var n,r;
1Object.defineProperty(t,"__esModule",{value:!0}),t.TiktokShopConnectErrorCode=t.TiktokTrackingTargetType=void 0,function(e){e.HANDLE="handle",e.HASHTAG="hashtag"}(n||(t.TiktokTrackingTargetType=n={})),function(e){e.SESSION_EXPIRED="session_expired",e.ACCESS_DENIED="access_denied",e.TEMPORARILY_UNAVAILABLE="temporarily_unavailable",e.ALREADY_LINKED="already_linked",e.MOVE_CONFIRMATION_REQUIRED="move_confirmation_required",e.MULTIPLE_SHOPS="multiple_shops",e.NO_SHOPS="no_shops",e.UNEXPECTED="unexpected"}(r||(t.TiktokShopConnectErrorCode=r={}))},19252:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.CampaignResultSourceType=void 0,function(e){e.DISCOVERY="discovery",e.RE_ENGAGEMENT="re_engagement"}(n||(t.CampaignResultSourceType=n={}))},19268:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.OrganizationCapability=void 0,function(e){e.SEND_ON_BEHALF="send_on_behalf",e.READ_CAMPAIGNS="read_campaigns",e.WRITE_CAMPAIGNS="write_campaigns",e.MANAGE_USERS="manage_users",e.BILLING_ROLLUP="billing_rollup"}(n||(t.OrganizationCapability=n={}))},20299:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DISCOVERY_EXCLUSION_REASON_PRECEDENCE=t.DiscoveryExclusionReason=void 0,function(e){e.USER_NO_GO="user_no_go",e.PREVIOUSLY_SAMPLED="previously_sampled",e.EXISTING_CAMPAIGN_CREATOR="existing_campaign_creator"}(n||(t.DiscoveryExclusionReason=n={})),t.DISCOVERY_EXCLUSION_REASON_PRECEDENCE=[n.USER_NO_GO,n.EXISTING_CAMPAIGN_CREATOR,n.PREVIOUSLY_SAMPLED]},22206:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.TurnEventClass=void 0,function(e){e.TURN_LIFECYCLE="turn_lifecycle",e.TOOL="tool",e.APPROVAL="approval",e.ERROR="error"}(n||(t.TurnEventClass=n={}))},22613:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.PermissionMode=void 0,function(e){e.ASK_ALWAYS="ask_always",e.SKIP_PERMISSIONS="skip_permissions"}(n||(t.PermissionMode=n={}))},23844:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DISCOVERY_BRAND_AFFILIATION_CHIP_CAP=void 0,t.readDiscoveryBrandAffiliations=function(e){var i;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||!e.trim())return[];let o=(null==(i=a.selfHandle)?void 0:i.trim().replace(/^@/,"").toLowerCase())||null,_=[],l=new Set;for(let i of e.split(/\r\n|\r|\n/)){let e;if(_.length>=t.DISCOVERY_BRAND_AFFILIATION_CHIP_CAP)break;for(r.lastIndex=0;null!==(e=r.exec(i))&&!(_.length>=t.DISCOVERY_BRAND_AFFILIATION_CHIP_CAP);){let t=e[1],r=e[2],a=e.index+t.length,E=a+r.length,c=r.slice(1).replace(/[._]+$/,"");if(c.length<2||!/[a-zA-Z]/.test(c))continue;let s=c.toLowerCase();!l.has(s)&&s!==o&&function(e,t,r){let i;for(n.lastIndex=0;null!==(i=n.exec(e));){let e=i.index,n=e+i[0].length;if((e>=r?e-r:n<=t?t-n:0)<=40)return!0}return!1}(i,a,E)&&(l.add(s),_.push(c))}}return _},t.DISCOVERY_BRAND_AFFILIATION_CHIP_CAP=3;let n=/\b(?:affiliate|affiliated|ambassador|partnered|partnership|sponsor|sponsored|athlete|collab|collaboration|code|discount)\b/gi,r=/(^|[\s([{<â¢Â·\-*,])(@[A-Za-z0-9_.]{2,30})/g},25212:(e,t)=>{var n,r,i,a;Object.defineProperty(t,"__esModule",{value:!0}),t.ModerationRunTrigger=t.ModerationRunState=t.ModerationVerdict=t.ModerationCheckKind=void 0,function(e){e.PRODUCT_MATCH="product_match",e.DISCLOSURE="disclosure",e.BRAND_MENTION="brand_mention",e.REQUIRED_HASHTAGS="required_hashtags"}(n||(t.ModerationCheckKind=n={})),function(e){e.PASS="pass",e.REVIEW="review",e.FAIL="fail"}(r||(t.ModerationVerdict=r={})),function(e){e.NONE="none",e.IN_PROGRESS="in_progress",e.READY="ready"}(i||(t.ModerationRunState=i={})),function(e){e.FIRST_PASS="first_pass",e.FORCE="force",e.BACKSTOP="backstop",e.RESCRAPE_DELTA="rescrape_delta"}(a||(t.ModerationRunTrigger=a={}))},26986:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SENSITIVE_QUESTION_KEYWORDS=t.REQUIRED_INFO_CATEGORY_PRESETS=t.REQUIRED_INFO_LOCKED_ERROR_CODE=t.REQUIRED_INFO_FIELD_LABELS=t.REQUIRED_INFO_FIELD_SPECS=t.REQUIRED_INFO_ACCOUNT_HANDLE_MAX=t.REQUIRED_INFO_MAX_CUSTOM_QUESTIONS=t.REQUIRED_INFO_MAX_REQUIRED_FIELDS=t.REQUIRED_INFO_QUESTION_LABEL_MAX=t.REQUIRED_INFO_CUSTOM_ANSWER_MAX=t.PLATFORM_VALUES=t.SPICE_TOLERANCE_VALUES=t.DIETARY_RESTRICTION_VALUES=t.FOOD_ALLERGY_VALUES=t.METAL_ALLERGY_VALUES=t.SHOE_WIDTH_VALUES=t.HEIGHT_VALUES=t.FIT_PREFERENCE_VALUES=t.INGREDIENT_ALLERGY_VALUES=t.SCALP_SENSITIVITY_VALUES=t.COLOR_TREATED_VALUES=t.HAIR_TYPE_VALUES=t.UNDERTONE_VALUES=t.SKIN_TONE_VALUES=t.SKIN_TYPE_VALUES=void 0,t.humanizeRequiredInfoOption=function(e){let t=a[e];return t||(i.has(e)?e.toUpperCase():/^\d/.test(e)?e:e.split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "))},t.containsSensitiveKeyword=function(e){return o.test(e)};let r=n(86606);t.SKIN_TYPE_VALUES=["dry","oily","combination","normal","sensitive"],t.SKIN_TONE_VALUES=["fair","light","medium","tan","deep"],t.UNDERTONE_VALUES=["cool","warm","neutral"],t.HAIR_TYPE_VALUES=["straight","wavy","curly","coily"],t.COLOR_TREATED_VALUES=["yes","no"],t.SCALP_SENSITIVITY_VALUES=["yes","no"],t.INGREDIENT_ALLERGY_VALUES=["fragrance","parabens","sulfates","alcohol","essential_oils","none"],t.FIT_PREFERENCE_VALUES=["slim","regular","relaxed","oversized"],t.HEIGHT_VALUES=["under_5ft","5ft0_5ft3","5ft4_5ft7","5ft8_5ft11","6ft_and_over"],t.SHOE_WIDTH_VALUES=["narrow","medium","wide","extra_wide"],t.METAL_ALLERGY_VALUES=["nickel","brass","copper","none"],t.FOOD_ALLERGY_VALUES=["peanuts","tree_nuts","dairy","eggs","shellfish","soy","gluten","none"],t.DIETARY_RESTRICTION_VALUES=["vegan","vegetarian","halal","kosher","gluten_free","dairy_free"],t.SPICE_TOLERANCE_VALUES=["mild","medium","hot","extra_hot"],t.PLATFORM_VALUES=["ios","android"],t.REQUIRED_INFO_CUSTOM_ANSWER_MAX=200,t.REQUIRED_INFO_QUESTION_LABEL_MAX=160,t.REQUIRED_INFO_MAX_REQUIRED_FIELDS=5,t.REQUIRED_INFO_MAX_CUSTOM_QUESTIONS=3,t.REQUIRED_INFO_ACCOUNT_HANDLE_MAX=200,t.REQUIRED_INFO_FIELD_SPECS={skin_type:{kind:"single",options:t.SKIN_TYPE_VALUES},skin_tone:{kind:"single",options:t.SKIN_TONE_VALUES},undertone:{kind:"single",options:t.UNDERTONE_VALUES},hair_type:{kind:"single",options:t.HAIR_TYPE_VALUES}
1,color_treated:{kind:"single",options:t.COLOR_TREATED_VALUES},scalp_sensitivity:{kind:"single",options:t.SCALP_SENSITIVITY_VALUES},ingredient_allergies:{kind:"multi",options:t.INGREDIENT_ALLERGY_VALUES},fit_preference:{kind:"single",options:t.FIT_PREFERENCE_VALUES},height:{kind:"single",options:t.HEIGHT_VALUES},shoe_width:{kind:"single",options:t.SHOE_WIDTH_VALUES},metal_allergy:{kind:"multi",options:t.METAL_ALLERGY_VALUES},food_allergies:{kind:"multi",options:t.FOOD_ALLERGY_VALUES},dietary_restrictions:{kind:"multi",options:t.DIETARY_RESTRICTION_VALUES},spice_tolerance:{kind:"single",options:t.SPICE_TOLERANCE_VALUES},platform:{kind:"single",options:t.PLATFORM_VALUES},account_handle:{kind:"text",maxLength:t.REQUIRED_INFO_ACCOUNT_HANDLE_MAX}},t.REQUIRED_INFO_FIELD_LABELS={skin_type:"Skin type",skin_tone:"Skin tone",undertone:"Undertone",hair_type:"Hair type",color_treated:"Color-treated hair",scalp_sensitivity:"Scalp sensitivity",ingredient_allergies:"Ingredient allergies",fit_preference:"Fit preference",height:"Height",shoe_width:"Shoe width",metal_allergy:"Metal allergy",food_allergies:"Food allergies",dietary_restrictions:"Dietary restrictions",spice_tolerance:"Spice tolerance",platform:"Platform",account_handle:"Account handle"},t.REQUIRED_INFO_LOCKED_ERROR_CODE="REQUIRED_INFO_LOCKED";let i=new Set(["xs","s","m","l","xl","xxl"]),a={ios:"iOS",android:"Android",under_5ft:"Under 5'0\"","5ft0_5ft3":"5'0\" - 5'3\"","5ft4_5ft7":"5'4\" - 5'7\"","5ft8_5ft11":"5'8\" - 5'11\"","6ft_and_over":"6'0\" and over"};t.REQUIRED_INFO_CATEGORY_PRESETS={[r.ProductCategory.COSMETICS_SKINCARE]:{autoRequired:["skin_type","skin_tone"],optional:["ingredient_allergies","undertone"]},[r.ProductCategory.MAKEUP]:{autoRequired:["skin_tone","undertone"],optional:["skin_type"]},[r.ProductCategory.HAIR]:{autoRequired:["hair_type"],optional:["color_treated","scalp_sensitivity"]},[r.ProductCategory.APPAREL]:{autoRequired:[],optional:["fit_preference","height"]},[r.ProductCategory.FOOTWEAR]:{autoRequired:[],optional:["shoe_width"]},[r.ProductCategory.ACCESSORIES_JEWELRY]:{autoRequired:[],optional:["metal_allergy"]},[r.ProductCategory.FOOD_BEVERAGE]:{autoRequired:["food_allergies"],optional:["dietary_restrictions","spice_tolerance"]},[r.ProductCategory.HEALTH_SUPPLEMENTS]:{autoRequired:["food_allergies","dietary_restrictions"],optional:[]},[r.ProductCategory.TECH_DIGITAL_SERVICES]:{autoRequired:[],optional:["platform","account_handle"]},[r.ProductCategory.OTHER]:{autoRequired:[],optional:[]}},t.SENSITIVE_QUESTION_KEYWORDS=["medical","medication","medicine","prescription","doctor","surgery","diagnosis","disease","illness","allergy","allergies","allergic","pregnant","pregnancy","disability","disabled","mental health","therapy","income","salary","financial","bank account","credit card","ssn","social security","passport","religion","religious","political","ethnicity","sexual","email","phone number","home address"];let o=RegExp("\\b(?:".concat(t.SENSITIVE_QUESTION_KEYWORDS.map(e=>e.replace(/ /g,"\\s+")).join("|"),")\\b"),"i")},26996:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SUPPORTED_SOCIAL_CONTENT_URL_MAX_LENGTH=void 0,t.parseSupportedSocialContentUrl=r,t.canonicalSocialPostUrl=i,t.readCanonicalPostPermalink=function(e){return"string"==typeof e?i(e.trim()):null},t.SUPPORTED_SOCIAL_CONTENT_URL_MAX_LENGTH=500;let n={instagram:new Set(["instagram.com","www.instagram.com"]),tiktok:new Set(["tiktok.com","www.tiktok.com"])};function r(e){let r;if("string"!=typeof e||e!==e.trim()||!/^https:\/\//iu.test(e)||Array.from(e).some(e=>RegExp("[\\s\\p{Cc}]","u").test(e)))return null;try{r=new URL(e)}catch(e){return null}if("https:"!==r.protocol||""!==r.username||""!==r.password)return null;let i=e.indexOf("://")+3,a=e.slice(i).search(/[/?#]/u),o=e.slice(i,-1===a?void 0:i+a),_=r.hostname.toLowerCase();if(o.toLowerCase()!==_)return null;let l=i+o.length,E=e.slice(l).search(/[?#]/u);if(e.slice(l,-1===E?void 0:l+E)!==r.pathname)return null;let c=r.toString();if(Array.from(c).length>t.SUPPORTED_SOCIAL_CONTENT_URL_MAX_LENGTH)return null;if(n.instagram.has(_)){let e=r.pathname.match(/^\/(?:p|reel|reels|tv)\/([A-Za-z0-9_-]+)\/?$/u);return e?{canonicalUrl:c,platform:"instagram",postId:e[1]}:null}if(n.tiktok.has(_)){let e=r.pathname.match(/^\/@([A-Za-z0-9._-]+)\/video\/([0-9]+)\/?$/u);return e?{canonicalUrl:c,platform:"tiktok",postId:e[2],tiktokHandle:e[1]}:null}return null}function i(e){let t=r(e);if(!t)return null;let n=new URL(t.canonicalUrl);return"".concat(n.origin).concat(n.pathname)}},28171:(e,t)=>
1{Object.defineProperty(t,"__esModule",{value:!0}),t.FOCUS_INPUT_RE=t.PARTIAL_BOLD_OPTION_LINE_RE=t.CONTENT_GUIDELINES_COA_ESCAPE_DESCRIPTION=t.CONTENT_GUIDELINES_COA_ESCAPE_LABEL=t.CONTENT_GUIDELINES_COA_OPTION_COUNT=t.CONTENT_GUIDELINES_COA_MARKER=void 0,t.clampDegenerateText=o,t.stripContentGuidelinesCoaMarker=_,t.parseOptionLine=l,t.parseTerminalChatOptions=function(e){var n;let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=null!=(n=i.minimumOptionCount)?n:2,o=i.allowPartial?function(e){let n=e.split("\n"),r=n.length-1;for(;r>=0&&""===n[r].trim();)r-=1;if(r<0)return null;let i=t.PARTIAL_BOLD_OPTION_LINE_RE.exec(n[r]);return i?Number(i[1]):null}(e):null,E=i.allowPartial?function(e){let n=e.split("\n"),r=n.length-1;for(;r>=0&&""===n[r].trim();)r-=1;return r<0||!t.PARTIAL_BOLD_OPTION_LINE_RE.test(n[r])?e:n.slice(0,r).join("\n").trimEnd()}(e):e,c=E.split("\n"),s=c.length-1;for(;s>=0&&""===c[s].trim();)s-=1;if(s<0)return null;let u=[],d=s+1;for(;s>=0;){let e=c[s];if(""===e.trim()){s-=1;continue}let t=l(e);if(!t)break;u.push(t),d=s,s-=1}let A=u.reverse();if(0===A.length)return null;let T=A[A.length-1],O=1===A.length&&T.focusInput&&T.hadBoldLabel;if(!i.allowPartial&&A.length<a&&!O||!A.every((e,t)=>e.index===t+1))return null;let I=c.slice(0,d).join("\n").trim(),S=I.split("\n").map(e=>e.trim()).filter(Boolean),R=S.flatMap((e,n)=>e===t.CONTENT_GUIDELINES_COA_MARKER?[n]:[]),C=R.length>0;if(C&&!function(e,n,r,i,a){var o;let _=null!=(o=n[n.length-1])?o:"",l=1===r.length&&r[0]===n.length-2&&_.endsWith("?"),E=!i.allowPartial&&e.length!==t.CONTENT_GUIDELINES_COA_OPTION_COUNT,c=i.allowPartial&&(e.length>t.CONTENT_GUIDELINES_COA_OPTION_COUNT||null!==a&&(e.length>=t.CONTENT_GUIDELINES_COA_OPTION_COUNT||a!==e.length+1)),s=e.length===t.CONTENT_GUIDELINES_COA_OPTION_COUNT&&(!e.every(e=>e.hadBoldLabel)||e[t.CONTENT_GUIDELINES_COA_OPTION_COUNT-1].label!==t.CONTENT_GUIDELINES_COA_ESCAPE_LABEL||e[t.CONTENT_GUIDELINES_COA_OPTION_COUNT-1].description!==t.CONTENT_GUIDELINES_COA_ESCAPE_DESCRIPTION);return!(!l||E||c||s)}(A,S,R,i,o))return null;let N=C?A.map((e,n)=>({...e,focusInput:n===t.CONTENT_GUIDELINES_COA_OPTION_COUNT-1})):A,p=N[N.length-1],D=O||N.length>=a&&p.focusInput,f=C?_(I).trim():I;return D||N.every(e=>e.hadBoldLabel)?{options:N,isMultiSelect:!C&&r.test(E),messageWithoutOptions:f,isComplete:D,hasTrailingPartialOption:null!==o}:null},t.CONTENT_GUIDELINES_COA_MARKER="\x3c!-- storika:content-guidelines-coa-v1 --\x3e",t.CONTENT_GUIDELINES_COA_OPTION_COUNT=4,t.CONTENT_GUIDELINES_COA_ESCAPE_LABEL="Type in your answer",t.CONTENT_GUIDELINES_COA_ESCAPE_DESCRIPTION="tell me in your own words";let n=/^\s*(?:\*\*)?(\d{1,2})[.)]\s+(?:\*\*([^*]+)\*\*|([^*ââ-]+?))(?:\*\*)?(?:\s*(?:â|â|-)\s*(.*))?\s*$/;t.PARTIAL_BOLD_OPTION_LINE_RE=/^\s*(\d{1,2})[.)]\s+\*\*(?![^*\n]*\*\*)/;let r=/\b(select all|choose all|choose multiple|multiple select|pick any|pick all|all that apply|as many)\b/i;function i(e){return e.replace(/\*\*/g,"").replace(/`/g,"").trim()}t.FOCUS_INPUT_RE=/\b(?:free[- ]?form|chat freely|talk to agents?|own words|your answer|paste)\b/i;let a=/^[\x21-\x7e]+$/;function o(e,t){let n=e.trim().split(/\s+/),r=n.findIndex(e=>e.length>40&&a.test(e)||e.length>24&&e.includes("_")),i=(r<0?n:n.slice(0,r)).join(" ");return i.length>t?i.slice(0,t).trimEnd():i}function _(e){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=e.split("\n");return r.filter((e,i)=>{let a=e.trim();return!(a===t.CONTENT_GUIDELINES_COA_MARKER||n&&i===r.length-1&&a.length>0&&t.CONTENT_GUIDELINES_COA_MARKER.startsWith(a))}).join("\n")}function l(e){var r,a,_;let l=n.exec(e);if(!l)return null;let E=o(i(null!=(a=null!=(r=l[2])?r:l[3])?a:""),80);if(!E)return null;let c=o(i(null!=(_=l[4])?_:""),220),s=c?"".concat(E," - ").concat(c):E;return{index:Number(l[1]),label:E,description:c,submitText:s,focusInput:t.FOCUS_INPUT_RE.test(s),hadBoldLabel:void 0!==l[2]}}},28194:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SETUP_FORM_MAX_TOTAL_STEPS=t.SETUP_FORM_PREVIOUS_QUESTION_IDS=t.SETUP_FORM_TRAVERSAL_QUESTION_IDS=void 0,t.SETUP_FORM_TRAVERSAL_QUESTION_IDS=["platform","needsShippingAddress","products","name","campaignType"],t.SETUP_FORM_PREVIOUS_QUESTION_IDS=[...t.SETUP_FORM_TRAVERSAL_QUESTION_IDS,"timeline"],t.SETUP_FORM_MAX_TOTAL_STEPS=6},28355:(e,t)=>{var n;
1Object.defineProperty(t,"__esModule",{value:!0}),t.AcquisitionSelfReportedSource=void 0,function(e){e.CHATGPT="chatgpt",e.CLAUDE="claude",e.PERPLEXITY="perplexity",e.OTHER_AI="other_ai",e.GOOGLE_SEARCH="google_search",e.LINKEDIN="linkedin",e.PERSON_REFERRAL="person_referral",e.EVENT_QR="event_qr",e.PRESS="press",e.OTHER="other"}(n||(t.AcquisitionSelfReportedSource=n={}))},29885:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},30308:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},31906:(e,t,n)=>{var r=Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]},i=function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(73590),t),i(n(69072),t),i(n(76600),t)},32694:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.AutopilotOperationalReadinessKey=void 0,function(e){e.OUTREACH_DRAFT="outreach_draft",e.CAMPAIGN_KNOWLEDGE="campaign_knowledge",e.PAYMENT_CARD_ON_FILE="payment_card_on_file"}(n||(t.AutopilotOperationalReadinessKey=n={}))},33820:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VOC_LOW_CONFIDENCE_THRESHOLD=void 0,t.VOC_LOW_CONFIDENCE_THRESHOLD=.7},34054:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EMBEDDED_DISCOVERY_HEADING_CONTENT_FIDELITY_FIXTURES=t.EMBEDDED_DISCOVERY_HEADING_FIXTURES=t.MULTI_ALIAS_PREFER_FILLED_SECTION_CONTENT_FIXTURE=t.DUAL_TITLE_SECTION_CONTENT_FIXTURE=t.ALIAS_SECTION_CONTENT_FIXTURE=t.MULTI_ALIAS_PREFER_FILLED_MERGE_FIXTURE=t.DIRECT_TITLE_DUPLICATE_MERGE_FIXTURE=t.CREATOR_DISCOVERY_SUBSECTION_LOOKUP_FIXTURES=t.COMPOSE_GROUP_DOC_FIXTURES=t.GROUP_CANON_LIVE=t.GROUP_CANON_PIN=t.FENCED_HEADING_PARSE_FIXTURES=t.PARSE_FIXTURES=t.SLUGIFY_FIXTURES=void 0,t.SLUGIFY_FIXTURES=[{input:"Brand Info",expected:"brand-info"},{input:"Objection Handling",expected:"objection-handling"},{input:"Scenario Guidelines",expected:"scenario-guidelines"},{input:"Q&A!!!",expected:"qa"},{input:" Trim Me ",expected:"trim-me"},{input:"èªå·±ç´¹ä»",expected:"èªå·±ç´¹ä»"},{input:"ì í ìê°",expected:"ì í-ìê°"},{input:"Brand æ¦è¦",expected:"brand-æ¦è¦"},{input:"ä¼ç¤¾æ¡å
/ Company",expected:"ä¼ç¤¾æ¡å
-company"},{input:"",expected:""}],t.PARSE_FIXTURES=[{name:"en-multi",md:"## Brand Info\nx\n\n## Target Audience\ny",expectedSectionIds:["brand-info","target-audience"]},{name:"jp-headings",md:"## èªå·±ç´¹ä»\nx\n\n## 製åç´¹ä»\ny",expectedSectionIds:["èªå·±ç´¹ä»","製åç´¹ä»"]},{name:"kr-headings",md:"## ì í ìê°\nx\n\n## ê°ê²© ì ì±
\ny",expectedSectionIds:["ì í-ìê°","ê°ê²©-ì ì±
"]},{name:"overview-only",md:"plain text no heading",expectedSectionIds:["overview"]},{name:"overview-plus",md:"intro\n\n## Brand Info\nx",expectedSectionIds:["overview","brand-info"]},{name:"exact top-level setext FAQ",md:"FAQ\n---\nHistorical answer.",expectedSectionIds:["faq"]},{name:"does not split on a setext Creator Discovery heading by default (group-editor consistency guard, STORIKA-7610)",md:"Creator Discovery\n---\nSome content.",expectedSectionIds:["overview"]}],t.FENCED_HEADING_PARSE_FIXTURES=[{name:"backtick fence preserves an apparent level-two heading as content",md:"## Content Guidelines\n```markdown\n## Example heading, not a section\nKeep this byte-for-byte.\n```\n\n## FAQ\nContact us.",expectedSectionIds:["content-guidelines","faq"]},{name:"tilde fence preserves an apparent level-two heading as content",md:"## Creator Discovery\n~~~text\n## Example heading, not a section\nKeep this byte-for-byte.\n~~~~\n\n## Approval & Onboarding\nReview first.",expectedSectionIds:["creator-discovery","approval-onboarding"]},{name:"CRLF backtick fence closes before the next level-two heading",md:"## Content Guidelines\r\n```markdown\r\n## Example heading, not a section\r\nFenced body.\r\n```\r\n\r\n## FAQ\r\nAfter fence.",expectedSectionIds:["content-guidelines","faq"],expectedSerializedMd:"## Content Guidelines\n```markdown\n## Example heading, not a section\nFenced body.\n```\n\n## FAQ\nAfter fence."},{name:"lone-CR tilde fence closes before the next level-two heading",md:"## Creator Discovery\r~~~text\r## Example heading, not a section\rFenced body.\r~~~~\r\r## Approval & Onboarding\rAfter fence.",expectedSectionIds:["creator-discovery","approval-onboarding"],expectedSerializedMd:"## Creator Discovery\n~~~text\n## Example heading, not a section\nFenced body.\n~~~~\n\n## Approval & Onboarding\nAfter fence."}];let r=n(55836),i=n(87695);t.GROUP_CANON_PIN=[{group:r.CampaignContentGroup.BRAND_PROFILE,titles:["Brand Overview","Products & Services","Positioning","Brand Story","Target Audience"]},{group:r.CampaignContentGroup.CAMPAIGN_SETUP,titles:["Objectives & KPIs","Product & Offer","Recruitment Timeline","Creator Discovery","Compensation & Deal Terms","Approval & Onboarding"]},{group:r.CampaignContentGroup.CREATOR_BRIEF,titles:["What Creators Receive","Deliverables","Posting Instructions","Content Guidelines","Content Review & Approval","FAQ"]},{group:r.CampaignContentGroup.AGENT_PLAYBOOK,titles:["Voice & Tone","Claims & Brand Safety","Scenario Handling"]}],t.GROUP_CANON_LIVE={[r.CampaignContentGroup.BRAND_PROFILE]:i.BRAND_PROFILE_SECTIONS,[r.CampaignContentGroup.CAMPAIGN_SETUP]:i.CAMPAIGN_SETUP_SECTIONS,[r.CampaignContentGroup.CREATOR_BRIEF]:i.CREATOR_BRIEF_SECTIONS,[r.CampaignContentGroup.AGENT_PLAYBOOK]:i.AGENT_PLAYBOOK_SECTIONS},t.COMPOSE_GROUP_DOC_FIXTURES=[{name:"campaign-setup: write one section into an empty doc, normalize body",group:r.CampaignContentGroup.CAMPAIGN_SETUP,existingDoc:null,updates:{"Objectives & KPIs":"Grow awareness\r\n\r\n\r\nDrive trial "},expectedDoc:"## Objectives & KPIs\nGrow awareness\n\nDrive trial",expectedChanged:["Objectives & KPIs"],expectedKept:[]},{name:"creator-brief: Posting Instructions is non-authorable â update ignored, stored section stripped",group:r.CampaignContentGroup.CREATOR_BRIEF,existingDoc:"## Posting Instructions\nstale projection\n\n## FAQ\nold faq",updates:{"Posting Instructions":"injected",FAQ:"New FAQ"},expectedDoc:"## FAQ\nNew FAQ",expectedChanged:["FAQ"],expectedKept:[]},{name:"creator-brief: editing a historical setext FAQ updates that one section instead of appending a duplicate",group:r.CampaignContentGroup.CREATOR_BRIEF,existingDoc:"FAQ\n---\nHistorical answer.",updates:{FAQ:"Updated answer."},expectedDoc:"## FAQ\nUpdated answer.",expectedChanged:["FAQ"],expectedKept:[]},{name:"campaign-setup: onlyIfEmpty keeps an existing body",group:r.CampaignContentGroup.CAMPAIGN_SETUP,existingDoc:"## Product & Offer\nKeep me",updates:{"Product & Offer":"replace attempt"},opts:{onlyIfEmpty:!0},expectedDoc:"## Product & Offer\nKeep me",expectedChanged:[],expectedKept:["Product & Offer"]},{name:"agent-playbook: custom section passes through after the canonical block; non-canonical update key ignored",group:r.CampaignContentGroup.AGENT_PLAYBOOK,existingDoc:"## Voice & Tone\nwarm\n\n## My Custom Rule\nalways smile",updates:{"Scenario Handling":"De-escalate","Not A Section":"noise"},expectedDoc:"## Voice & Tone\nwarm\n\n## Scenario Handling\nDe-escalate\n\n## My Custom Rule\nalways smile",expectedChanged:["Sce
1nario Handling"],expectedKept:[]},{name:"campaign-setup: whitespace-variant duplicate keys dedupe (last wins) in canonical order",group:r.CampaignContentGroup.CAMPAIGN_SETUP,existingDoc:null,updates:{"Creator Discovery":"first value"," creator discovery ":"second value wins","Objectives & KPIs":"Awareness"},expectedDoc:"## Objectives & KPIs\nAwareness\n\n## Creator Discovery\nsecond value wins",expectedChanged:["Objectives & KPIs","Creator Discovery"],expectedKept:[]},{name:"brand-profile: headerless preamble survives, no-op updates",group:r.CampaignContentGroup.BRAND_PROFILE,existingDoc:"intro preamble\n\n## Brand Story\nfounded 1999",updates:{},expectedDoc:"intro preamble\n\n## Brand Story\nfounded 1999",expectedChanged:[],expectedKept:[]},{name:"campaign-setup: old-title 'Timeline & Key Dates' doc retitles to 'Recruitment Timeline' on merge (alias, STORIKA-6797)",group:r.CampaignContentGroup.CAMPAIGN_SETUP,existingDoc:"## Timeline & Key Dates\nLaunch July 1.",updates:{},expectedDoc:"## Recruitment Timeline\nLaunch July 1.",expectedChanged:[],expectedKept:[]},{name:"campaign-setup: dual-title doc with an EMPTY retired shell keeps a single 'Recruitment Timeline' card, empty shell consumed, no tail card (alias, STORIKA-6797)",group:r.CampaignContentGroup.CAMPAIGN_SETUP,existingDoc:"## Recruitment Timeline\nNew content.\n\n## Timeline & Key Dates",updates:{},expectedDoc:"## Recruitment Timeline\nNew content.",expectedChanged:[],expectedKept:[]},{name:"campaign-setup: dual-title doc with BOTH sections filled - canonical card carries the direct-title body, retired-titled section survives verbatim in the custom tail (lossless, alias, STORIKA-6797)",group:r.CampaignContentGroup.CAMPAIGN_SETUP,existingDoc:"## Recruitment Timeline\nnew body\n\n## Timeline & Key Dates\nold body",updates:{},expectedDoc:"## Recruitment Timeline\nnew body\n\n## Timeline & Key Dates\nold body",expectedChanged:[],expectedKept:[]},{name:"campaign-setup: filled direct-title section plus an EMPTY direct-title duplicate - canonical card keeps the body; the empty duplicate is dropped by pruning (a persist-ready no-op), not silently swallowed by merge (STORIKA-6797)",group:r.CampaignContentGroup.CAMPAIGN_SETUP,existingDoc:"## Recruitment Timeline\nbody\n\n## Recruitment Timeline",updates:{},expectedDoc:"## Recruitment Timeline\nbody",expectedChanged:[],expectedKept:[]},{name:"campaign-setup: generic compose preserves retired Creator Criteria as compatibility data",group:r.CampaignContentGroup.CAMPAIGN_SETUP,existingDoc:"## Creator Criteria\nUS beauty creators.",updates:{},expectedDoc:"## Creator Criteria\nUS beauty creators.",expectedChanged:[],expectedKept:[]},{name:"campaign-setup: generic compose preserves retired Creative Direction as compatibility data",group:r.CampaignContentGroup.CAMPAIGN_SETUP,existingDoc:"## Creative Direction\nWarm natural light.",updates:{},expectedDoc:"## Creative Direction\nWarm natural light.",expectedChanged:[],expectedKept:[]},{name:"campaign-setup: generic compose preserves both retired headings in authored order",group:r.CampaignContentGroup.CAMPAIGN_SETUP,existingDoc:"## Creator Criteria\nUS beauty creators.\n\n## Creative Direction\nWarm natural light.",updates:{},expectedDoc:"## Creator Criteria\nUS beauty creators.\n\n## Creative Direction\nWarm natural light.",expectedChanged:[],expectedKept:[]},{name:"campaign-setup: generic compose preserves reversed retired heading order",group:r.CampaignContentGroup.CAMPAIGN_SETUP,existingDoc:"## Creative Direction\nWarm natural light.\n\n## Creator Criteria\nUS beauty creators.",updates:{},expectedDoc:"## Creative Direction\nWarm natural light.\n\n## Creator Criteria\nUS beauty creators.",expectedChanged:[],expectedKept:[]},{name:"campaign-setup: canonical discovery remains separate from retired compatibility sections",group:r.CampaignContentGroup.CAMPAIGN_SETUP,existingDoc:"## Creative Direction\nWarm natural light.\n\n## Creator Discovery\nFind launch creators.\n\n## Creator Criteria\nUS beauty creators.",updates:{},expectedDoc:"## Creator Discovery\nFind launch creators.\n\n## Creative Direction\nWarm natural light.\n\n## Creator Criteria\nUS beauty creators.",expectedChanged:[],expectedKept:[]},{name:"campaign-setup: empty retired discovery shells remain compatibility data",group:r.CampaignContentGroup.CAMPAIGN_SETUP,existingDoc:"## Creator Criteria\n\n## Creative Direction",updates:{},expectedDoc:"## Creator Criteria\n\n## Creative Direction",expectedChanged:[],expectedKept:[]},{name:"campaign-setup: unrelated canonical update preserves retired headings and their authored order",group:r.CampaignContentGroup.CAMPAIGN_SETUP,existingDoc:"## Creative Direction\nWarm natural light.\n\n## Creator Criteria\nUS beauty creators.",updates:{"Objectives & KPIs":"Grow awareness."},expectedDoc:"## Objectives & KPIs\nGrow awareness.\n\n## Creative Direction\nWarm natural light.\n\n## Creator Criteria\nUS beauty creators.",expectedChanged:["Objectives & KPIs"],expectedKept:[]},{name:"campaign-setup: legacy split-section writes update only their labeled bodies",group:r.CampaignContentGroup.CAMPAIGN_SETUP,existingDoc:"## Creator Discovery\nInternal fit notes.\
1n\n### Creator Criteria\nOld criteria.\n\n### Creative Direction\nOld direction.\n### Shot list\nKeep this nested guidance.",updates:{"Creator Criteria":"New criteria.","Creative Direction":"New direction.\n### Shot list\nKeep the replacement nested guidance."},expectedError:"Retired campaign setup subsections are read-only",expectedDoc:"## Creator Discovery\nInternal fit notes.\n\n### Creator Criteria\nNew criteria.\n\n### Creative Direction\nNew direction.\n### Shot list\nKeep the replacement nested guidance.",expectedChanged:["Creator Discovery"],expectedKept:[]},{name:"campaign-setup: canonical and retired discovery updates are order-independent",group:r.CampaignContentGroup.CAMPAIGN_SETUP,existingDoc:"## Creator Discovery\nOld direct prose.",updates:{"Creative Direction":"New visual direction.","Creator Discovery":"New direct prose."},expectedError:"Retired campaign setup subsections are read-only",expectedDoc:"## Creator Discovery\nNew direct prose.\n\n### Creative Direction\nNew visual direction.",expectedChanged:["Creator Discovery"],expectedKept:[]},{name:"campaign-setup: onlyIfEmpty applies to the requested retired subsection, not its filled sibling",group:r.CampaignContentGroup.CAMPAIGN_SETUP,existingDoc:"## Creator Discovery\n### Creator Criteria\nKeep criteria.",updates:{"Creative Direction":"Add direction."},expectedError:"Retired campaign setup subsections are read-only",opts:{onlyIfEmpty:!0},expectedDoc:"## Creator Discovery\n### Creator Criteria\nKeep criteria.\n\n### Creative Direction\nAdd direction.",expectedChanged:["Creator Discovery"],expectedKept:[]},{name:"campaign-setup: legacy subsection update combines duplicate sibling bodies losslessly",group:r.CampaignContentGroup.CAMPAIGN_SETUP,existingDoc:"## Creator Discovery\n### Creator Criteria\nFirst criteria.\n\n### Creator Criteria\nSecond criteria.\n\n### Creative Direction\nOld direction.",updates:{"Creative Direction":"New direction."},expectedError:"Retired campaign setup subsections are read-only",expectedDoc:"## Creator Discovery\n### Creator Criteria\nFirst criteria.\n\nSecond criteria.\n\n### Creative Direction\nNew direction.",expectedChanged:["Creator Discovery"],expectedKept:[]},{name:"campaign-setup: generic compose leaves duplicate direct sections separate",group:r.CampaignContentGroup.CAMPAIGN_SETUP,existingDoc:"## Creator Discovery\n### Creative Direction\nShareable direction.\n\n## Creator Discovery\nInternal selection notes.",updates:{},expectedDoc:"## Creator Discovery\n### Creative Direction\nShareable direction.\n\n## Creator Discovery\nInternal selection notes.",expectedChanged:[],expectedKept:[]}],t.CREATOR_DISCOVERY_SUBSECTION_LOOKUP_FIXTURES=[{name:"lookup before normalize: retired Creative Direction",markdown:"## Creative Direction\nWarm natural light.",subsectionTitle:"Creative Direction",expectedContent:"Warm natural light."},{name:"lookup excludes surrounding unified prose and sibling criteria",markdown:"## Creator Discovery\nUnified internal prose.\n\n### Creator Criteria\nUS creators.\n\n### Creative Direction\nWarm natural light.",subsectionTitle:"Creative Direction",expectedContent:"Warm natural light."},{name:"creator-facing lookup fails closed at the next level-three heading",markdown:"## Creator Discovery\n### Creator Criteria\nUS creators.\n\n### Creative Direction\nWarm natural light.\n### Shot list\nShow the texture close up.",subsectionTitle:"Creative Direction",expectedContent:"Warm natural light."},{name:"creator-facing lookup cannot absorb following Creator Vetting criteria",markdown:"## Creator Discovery\n### Creative Direction\nWarm natural light.\n### Creator Vetting\nExclude creators under 10k followers.",subsectionTitle:"Creative Direction",expectedContent:"Warm natural light."},{name:"creator-facing lookup excludes a later duplicate direct section",markdown:"## Creator Discovery\n### Creative Direction\nShareable direction.\n\n## Creator Discovery\nInternal selection notes.",subsectionTitle:"Creative Direction",expectedContent:"Shareable direction."},{name:"lookup returns null when the requested level-three subsection is absent",markdown:"## Creator Discovery\nUnified internal prose only.",subsectionTitle:"Creative Direction",expectedContent:null},{name:"lookup ignores level-three headings inside fenced examples",markdown:"## Creator Discovery\n```markdown\n### Creative Direction\nFenced example only.\n```",subsectionTitle:"Creative Direction",expectedContent:null}],t.DIRECT_TITLE_DUPLICATE_MERGE_FIXTURE={canonical:["Recruitment Timeline"],md:"## Recruitment Timeline\nbody\n\n## Recruitment Timeline",expectedMerged:[{title:"Recruitment Timeline",content:"body"},{title:"Recruitment Timeline",content:""}]},t.MULTI_ALIAS_PREFER_FILLED_MERGE_FIXTURE={canonical:["Recruitment Timeline"],md:"## Timeline & Key Dates\n\n## Timeline & Key Dates\nfilled",expectedMerged:[{title:"Recruitment Timeline",content:"filled"}]},t.ALIAS_SECTION_CONTENT_FIXTURE={md:"## Timeline & Key Dates\nLaunch July 1.",title:"Recruitment Timeline",expectedContent:"Launch July 1."},t.DUAL_TITLE_SECTION_CONTENT_FIXTURE={md:"## Timeline & Key Dates\nOld content.\n\n## Recruitment Timeline\nNew content.",title:"Recruitment Timeline",expectedContent:"New content."},t.MULTI_ALIAS_PREFER_FILLED_SECTION_CONTENT_FIXTURE={md:"## Timeline & Key Dates\n\n## Timeline & Key Dates\nfilled",title:"Recruitment Timeline",expectedContent:"filled"},t.EMBEDDED_DISCOVERY_HEADING_FIXTURES=[{name:"reabsorbs an embedded Phase 1 heading truncated by parseKnowledgeSections",md:"## Creator Discovery\n\n### Creator Discovery Guide\n## Phase 1 - Quantitative recall criteria\n- **Followers count:** 15,000-150,000",expectedDiscoveryContentContains:"Followers count"},{name:"keeps a following Objectives & KPIs section separate while reabsorbing the embedded guide",md:"## Creator Discovery\n\n### Creator Discovery Guide\n## Phase 1 - Quantitative recall criteria\n- **Followers count:** 15,000-150,000\n\n## Objectives & KPIs\nGrow reach.",expectedDiscoveryContentContains:"Followers count",expectedOtherSections:[{title:"Objectives & KPIs",content:"Grow reach."}]},{name:"does not reabsorb a trailing Additional notes section separated by a real section",md:"## Creator Discovery\n\n### Creator Discovery Guide\nPrefer skincare educators.\n\n## Objectives & KPIs\nGrow reach.\n\n## Additional notes\nSome unrelated campaign-level notes.",expectedDiscoveryContentContains:"Prefer skincare educators.",expectedDiscoveryContentExcludes:"Some unrelated campaign-level notes.",expectedOtherSections:[{title:"Objectives & KPIs",content:"Grow reach."},{title:"Additional notes",content:"Some unrelated campaign-level notes."}]},{name:"keeps a legitimate Additional notes section independent when Creator Discovery has no guide H3",md:"## Creator Discovery\nPlain discovery prose.\n\n## Additional notes\nCampaign-level note.",expectedDiscoveryContentContains:"Plain discovery prose.",expectedDiscoveryContentExcludes:"Campaign-level note.",expectedOtherSections:[{title:"Additional notes",content:"Campaign-level note."}]},{name:"closes the guide H3 when a later subsection opens inside the same parsed section, so a trailing Additional notes section is not reabsorbed",md:"## Creator Discovery\n\n### Creator Discovery Guide\n## Phase 1 - Quantitative recall criteria\n- **Followers count:** 15,000-150,000\n\n### Benchmark & Reference Brands\n- Acme | Website: https://acme.example\n\n## Additional notes\nCampaign-level note.",expectedDiscoveryContentContains:"Followers count",expectedDiscoveryContentExcludes:"Campaign-level note.",expectedOtherSections:[{title:"Additional notes",content:"Campaign-level note."}]}],t.EMBEDDED_DISCOVERY_HEADING_CONTENT_FIDELITY_FIXTURES=[{name:"an empty reserved heading survives reabsorption content-preservingly",md:"## Creator Discovery\n\n### Creator Discovery Guide\n## Phase 1 - Quantitative recall criteria\n- **Followers count:** 15,000-150,000\n\n## Additional notes",expectedDiscoveryContent:"### Creator Discovery Guide\n\n## Phase 1 - Quantitative recall criteria\n- **Followers count:** 15,000-150,000\n\n## Additional notes"},{name:"indented content in an absorbed reserved section round-trips content-preservingly",md:"## Creator Discovery\n\n### Creator Discovery Guide\n## Additional notes\n indented code line\n another indented line",expectedDiscoveryContent:"### Creator Discovery Guide\n\n## Additional notes\n indented code line\n another indented line"}]},34275:(e,t,n)=>
1{Object.defineProperty(t,"__esModule",{value:!0}),t.PRESET_STRUCTURE=void 0,t.isLegacyDefaultProposalOnly=i,t.isFlowNodeArray=a,t.isRealCustomFlowTree=function(e,t){return a(e)&&e.length>0&&!(t&&i(e))};let r=n(54576);function i(e){if(!Array.isArray(e)||1!==e.length)return!1;let t=e[0];return!!t&&"object"==typeof t&&"send"===t.kind&&"proposal"===t.variant}function a(e){return Array.isArray(e)&&e.every(e=>!!e&&"object"==typeof e)}t.PRESET_STRUCTURE=[{kind:"send",send:{type:"proposal"}},{kind:"branch",branch:{variant:"replied",arm:"false",sends:[{type:"proposal_reminder",wait:{days:3}}]}},{kind:"branch",branch:{variant:"funnel_gate",funnelStatus:r.FunnelStatus.ITEM_SENT,arm:"true",sends:[{type:"item_sent",wait:{days:1}}]}},{kind:"branch",branch:{variant:"funnel_gate",funnelStatus:r.FunnelStatus.DELIVERED,arm:"true",sends:[{type:"delivered"}]}},{kind:"branch",branch:{variant:"funnel_gate",funnelStatus:r.FunnelStatus.UPLOADED,arm:"true",sends:[{type:"uploaded"}]}}]},34719:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DISCOVERY_DISPLAY_SNAPSHOT_POST_DERIVED_KEYS=t.DISCOVERY_DISPLAY_SNAPSHOT_CANONICAL_KEYS=t.DISCOVERY_DISPLAY_SNAPSHOT_KEYS=t.DISCOVERY_LOOKALIKE_FIT_THRESHOLD=t.DISCOVERY_DISPLAY_SNAPSHOT_SCHEMA_VERSION=void 0,t.readSafePermalink=u,t.readDiscoveryDisplayProfile=d,t.readDiscoveryDisplayIdentity=function(e){let t=d(e);return{name:t.fullName,handle:t.username,avatarUrl:t.profilePicUrl}};let r=n(84181),i=n(26996),a=n(65054);function o(e,t){if(!e)return null;for(let n of t){let t=e[n];if("string"==typeof t&&t.trim().length>0)return t}return null}function _(e,t){let n=o(e,t);return null===n?null:Number.isFinite(Date.parse(n))?n:null}function l(e,t){if(!e)return null;for(let n of t){let t=e[n];if("number"==typeof t&&Number.isFinite(t))return t}return null}function E(e,t){if(!e)return!1;for(let n of t)if(!0===e[n])return!0;return!1}function c(e,t){let n=l(e,t);return null===n||n<0?null:n}function s(e,t){if(!e)return[];for(let n of t){let t=e[n];if(!Array.isArray(t))continue;let r=t.filter(e=>"string"==typeof e&&e.trim().length>0);if(r.length>0)return r}return[]}function u(e){if("string"!=typeof e)return null;let t=e.trim();return/^https?:\/\//i.test(t)?t:null}function d(e){let n=(0,a.asRecord)(e);return{username:o(n,t.DISCOVERY_DISPLAY_SNAPSHOT_KEYS.username),fullName:o(n,t.DISCOVERY_DISPLAY_SNAPSHOT_KEYS.fullName),profilePicUrl:o(n,t.DISCOVERY_DISPLAY_SNAPSHOT_KEYS.profilePicUrl),followersCount:l(n,t.DISCOVERY_DISPLAY_SNAPSHOT_KEYS.followersCount),engagementRatePercentage:l(n,t.DISCOVERY_DISPLAY_SNAPSHOT_KEYS.engagementRatePercentage),primaryCountry:o(n,t.DISCOVERY_DISPLAY_SNAPSHOT_KEYS.primaryCountry),countryUnverified:E(n,t.DISCOVERY_DISPLAY_SNAPSHOT_KEYS.countryUnverified),languageUnverified:E(n,t.DISCOVERY_DISPLAY_SNAPSHOT_KEYS.languageUnverified),biography:o(n,t.DISCOVERY_DISPLAY_SNAPSHOT_KEYS.biography),categories:s(n,t.DISCOVERY_DISPLAY_SNAPSHOT_KEYS.categories),avgViews:l(n,t.DISCOVERY_DISPLAY_SNAPSHOT_KEYS.avgViews),avgLikes:l(n,t.DISCOVERY_DISPLAY_SNAPSHOT_KEYS.avgLikes),avgComments:l(n,t.DISCOVERY_DISPLAY_SNAPSHOT_KEYS.avgComments),postsPerMonth:l(n,t.DISCOVERY_DISPLAY_SNAPSHOT_KEYS.postsPerMonth),recentPosts:function(e,t){if(!e)return[];for(let n of t){let t=e[n];if(!Array.isArray(t))continue;let r=[];for(let e of t){let t=(0,a.asRecord)(e),n=o(t,["imageUrl"]);if(null===n)continue;let E=(0,i.readCanonicalPostPermalink)(null==t?void 0:t.url),c=function(e,t){let n=l(e,t);return null===n||n<=0?null:n}(t,["viewsCount","playCount","videoViewCount"]),s={imageUrl:n,url:E};null!==c&&(s.viewsCount=c);let u=_(t,["postedAt"]);null!==u&&(s.postedAt=u),r.push(s)}if(r.length>0)return r}return[]}(n,t.DISCOVERY_DISPLAY_SNAPSHOT_KEYS.recentPosts),recentPostImageUrls:s(n,t.DISCOVERY_DISPLAY_SNAPSHOT_KEYS.recentPostImageUrls),matchReason:o(n,t.DISCOVERY_DISPLAY_SNAPSHOT_KEYS.matchReason),matchFit:function(e,t){let n=l(e,t);return null===n||n<0||n>1?null:n}(n,t.DISCOVERY_DISPLAY_SNAPSHOT_KEYS.matchFit),suggestedSignals:(0,r.readDiscoveryReviewSignalSuggestions)(null==n?void 0:n[t.DISCOVERY_DISPLAY_SNAPSHOT_KEYS.suggestedSignals[0]]),postsCount:c(n,t.DISCOVERY_DISPLAY_SNAPSHOT_KEYS.postsCount),followingCount:c(n,t.DISCOVERY_DISPLAY_SNAPSHOT_KEYS.followingCount),bioExternalUrl:u(o(n,t.DISCOVERY_DISPLAY_SNAPSHOT_KEYS.bioExternalUrl)),secondaryHandle:function(e,t){if(!e)return null;for(let n of t){let t=(0,a.asRecord)(e[n]);if(!t)continue;let r=o(t,["platform"]),i=o(t,["handle"]);if(null===r||null===i)continue;let _=i.replace(/^@/,"");if(0!==_.length)return{platform:r,handle:_}}return null}(n,t.DISCOVERY_DISPLAY_SNAPSHOT_KEYS.secondaryHandle),postsLastCrawledAt:_(n,t.DISCOVERY_DISPLAY_SNAPSHOT_KEYS.postsLastCrawledAt)}}t.DISCOVERY_DISPLAY_SNAPSHOT_SCHEMA_VERSION=8,t.DISCOVERY_LOOKALIKE_FIT_THRESHOLD=.75,t.DISCOVERY_DISPLAY_SNAPSHOT_KEYS={username:["username","userName","handle","uniqueId"],fullName:["fullName","name","displayName","nickname"],profilePicUrl:["profilePicUrl","avatarUrl","profileImageUrl","imageUrl"],followersCount:["followersCount"],engagementRatePercentage:["engagementRatePercentage"],primaryCountry:["primaryCountry"],countryUnverified:["countryUnverified"],languageUnverified:["languageUnverified"],biography:["biography"],categories:["categories"],avgViews:["avgViews"],avgLikes:["avgLikes"],avgComments:["avgComments"],postsPerMonth:["postsPerMonth"],recentPosts:["recentPosts"],recentPostImageUrls:["recentPostImageUrls"],matchReason:["matchReason"],matchFit:["matchFit"],suggestedSignals:["suggestedSignals"],postsCount:["postsCount"],followingCount:["followingCount"],bioExternalUrl:["bioExternalUrl"],secondaryHandle:["secondaryHandle"],postsLastCrawledAt:["postsLastCrawledAt"]},t.DISCOVERY_DISPLAY_SNAPSHOT_CANONICAL_KEYS=Object.keys(t.DISCOVERY_DISPLAY_SNAPSHOT_KEYS),t.DISCOVERY_DISPLAY_SNAPSHOT_POST_DERIVED_KEYS=["recentPosts","avgVie
1ws","avgLikes","avgComments","postsPerMonth","postsLastCrawledAt","postsCount","recentPostImageUrls"]},35825:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NON_AUTHORITATIVE_CAMPAIGN_MD_SECTIONS=t.CAMPAIGN_MD_SECTIONS=t.BRAND_MD_SECTIONS=t.MD_SECTION_MAX_CHARS=t.LEARNED_FACTS_SECTION_TITLE=t.PLAYBOOK_OVERRIDES_SECTION_TITLE=t.REFERENCES_MD_COLUMN=t.REFERENCES_SECTION_TITLE=t.CREATOR_TASTE_SECTION_TITLE=void 0,t.encodePlaybookForRender=u,t.decodePlaybookFromWrite=d,t.encodeLearnedFactItems=function(e){return e.map(e=>e.split("\n").map((e,t)=>0===t?"- ".concat(e):" ".concat(e)).join("\n")).join("\n")},t.decodeLearnedFactItems=function(e){if(!e.trim())return[];let t=[],n=null;for(let r of e.split("\n"))r.startsWith("- ")?(n&&t.push(n.join("\n")),n=[r.slice(2)]):"-"===r?(n&&t.push(n.join("\n")),n=[""]):n?n.push(r.startsWith(" ")?r.slice(2):r):n=[r];return n&&t.push(n.join("\n")),t},t.composeMdDoc=function(e,t,n,r){let i=[],a=[],o=(null!=r?r:"").trimEnd();for(let r of(o&&i.push(o),e)){var l,E;let e=(null!=(l=n[r.title])?l:"").trimEnd(),o=r.column&&null!=(E=null==t?void 0:t[r.column])?E:"",c=function(e,t,n){let r=n.trimEnd(),i=[];if(e.column===_&&r){let e=u(n);i.push(...e.refusals),0===e.refusals.length&&(r=e.text.trimEnd())}else if(r){let e=s(n);null!==e&&i.push("unterminated fence opened at line ".concat(e))}if(0===i.length){let e=s(A(t,r));null!==e&&i.push("unterminated fence opened at line ".concat(e))}return i.length>0&&(r=n),{body:A(t,r),refusals:i}}(r,e,o);for(let e of c.refusals)a.push("".concat(r.title,": ").concat(e));i.push(c.body?"## ".concat(r.title,"\n").concat(c.body):"## ".concat(r.title))}return{doc:i.join("\n\n"),refusals:a}},t.parseMdSectionWrites=function(e,n){let r=[],a=new Map,o=new Map;for(let e of n)o.set((0,i.normalizeSectionTitle)(e.title),e);let l=new Set;for(let n of(0,i.parseKnowledgeSections)(e)){if("overview"===n.id&&"Overview"===n.title){n.content.trim()&&r.push("preamble: ".concat(n.content.slice(0,40),"..."));continue}let e=o.get((0,i.normalizeSectionTitle)(n.title));if(!e){r.push("unknown heading: ".concat(n.title));continue}let E=(0,i.normalizeSectionTitle)(e.title);if(l.has(E)){r.push("duplicate heading: ".concat(n.title));continue}if(l.add(E),null===e.column){n.content.trim()&&r.push("typed-only heading: ".concat(n.title));continue}let c=n.content.replace(/^(?:[ \t]*\n)+/,""),u=e.column===_?d(c):c;if(u.length>t.MD_SECTION_MAX_CHARS){r.push("heading over cap: ".concat(n.title));continue}if(null!==s(u)){r.push("unterminated fence in heading: ".concat(n.title));continue}a.set(e.column,u.trim()?u:null)}return r.length>0?{writes:new Map,refusals:r}:{writes:a,refusals:r}};let r=n(87695),i=n(93902);t.CREATOR_TASTE_SECTION_TITLE="Creator Taste",t.REFERENCES_SECTION_TITLE="References",t.REFERENCES_MD_COLUMN="reference_brands",t.PLAYBOOK_OVERRIDES_SECTION_TITLE="Playbook Overrides",t.LEARNED_FACTS_SECTION_TITLE="Learned Facts",t.MD_SECTION_MAX_CHARS=5e4;let a=[{title:r.BRAND_PROFILE_SECTIONS[0],column:"brand_overview",provenanceSlug:(0,i.slugify)(r.BRAND_PROFILE_SECTIONS[0])},{title:r.BRAND_PROFILE_SECTIONS[1],column:"products_services",provenanceSlug:(0,i.slugify)(r.BRAND_PROFILE_SECTIONS[1])},{title:r.BRAND_PROFILE_SECTIONS[2],column:"positioning",provenanceSlug:(0,i.slugify)(r.BRAND_PROFILE_SECTIONS[2])},{title:r.BRAND_PROFILE_SECTIONS[3],column:"brand_story",provenanceSlug:(0,i.slugify)(r.BRAND_PROFILE_SECTIONS[3])},{title:r.BRAND_PROFILE_SECTIONS[4],column:"target_audience",provenanceSlug:(0,i.slugify)(r.BRAND_PROFILE_SECTIONS[4])},{title:t.CREATOR_TASTE_SECTION_TITLE,column:"creator_taste",provenanceSlug:(0,i.slugify)(t.CREATOR_TASTE_SECTION_TITLE)},{title:t.REFERENCES_SECTION_TITLE,column:t.REFERENCES_MD_COLUMN,provenanceSlug:(0,i.slugify)(t.REFERENCES_SECTION_TITLE)},{title:r.AGENT_PLAYBOOK_SECTIONS[0],column:"voice_tone",provenanceSlug:(0,i.slugify)(r.AGENT_PLAYBOOK_SECTIONS[0])},{title:r.AGENT_PLAYBOOK_SECTIONS[1],column:"claims_brand_safety",provenanceSlug:(0,i.slugify)(r.AGENT_PLAYBOOK_SECTIONS[1])},{title:r.AGENT_PLAYBOOK_SECTIONS[2],column:"scenario_handling",provenanceSlug:(0,i.slugify)(r.AGENT_PLAYBOOK_SECTIONS[2])}
1,{title:t.LEARNED_FACTS_SECTION_TITLE,column:"learned_facts",provenanceSlug:(0,i.slugify)(t.LEARNED_FACTS_SECTION_TITLE)}],o=[{title:r.CAMPAIGN_SETUP_SECTIONS[0],column:"objectives_kpis",provenanceSlug:(0,i.slugify)(r.CAMPAIGN_SETUP_SECTIONS[0])},{title:r.CAMPAIGN_SETUP_SECTIONS[1],column:"product_offer",provenanceSlug:(0,i.slugify)(r.CAMPAIGN_SETUP_SECTIONS[1])},{title:r.CAMPAIGN_SETUP_SECTIONS[2],column:null,provenanceSlug:(0,i.slugify)(r.CAMPAIGN_SETUP_SECTIONS[2])},{title:r.CAMPAIGN_SETUP_SECTIONS[3],column:"creator_discovery",provenanceSlug:(0,i.slugify)(r.CAMPAIGN_SETUP_SECTIONS[3])},{title:r.CAMPAIGN_SETUP_SECTIONS[4],column:null,provenanceSlug:(0,i.slugify)(r.CAMPAIGN_SETUP_SECTIONS[4])},{title:r.CAMPAIGN_SETUP_SECTIONS[5],column:null,provenanceSlug:(0,i.slugify)(r.CAMPAIGN_SETUP_SECTIONS[5])},{title:r.CREATOR_BRIEF_SECTIONS[0],column:"what_creators_receive",provenanceSlug:(0,i.slugify)(r.CREATOR_BRIEF_SECTIONS[0])},{title:r.CREATOR_BRIEF_SECTIONS[1],column:"deliverables",provenanceSlug:(0,i.slugify)(r.CREATOR_BRIEF_SECTIONS[1])},{title:r.CREATOR_BRIEF_SECTIONS[2],column:null,provenanceSlug:(0,i.slugify)(r.CREATOR_BRIEF_SECTIONS[2])},{title:r.CREATOR_BRIEF_SECTIONS[3],column:"content_guidelines",provenanceSlug:(0,i.slugify)(r.CREATOR_BRIEF_SECTIONS[3])},{title:r.CREATOR_BRIEF_SECTIONS[4],column:null,provenanceSlug:(0,i.slugify)(r.CREATOR_BRIEF_SECTIONS[4])},{title:r.CREATOR_BRIEF_SECTIONS[5],column:"faq",provenanceSlug:(0,i.slugify)(r.CREATOR_BRIEF_SECTIONS[5])},{title:t.PLAYBOOK_OVERRIDES_SECTION_TITLE,column:"playbook_overrides",provenanceSlug:(0,i.slugify)(t.PLAYBOOK_OVERRIDES_SECTION_TITLE)},{title:t.LEARNED_FACTS_SECTION_TITLE,column:"learned_facts",provenanceSlug:(0,i.slugify)(t.LEARNED_FACTS_SECTION_TITLE)}];t.BRAND_MD_SECTIONS=a,t.CAMPAIGN_MD_SECTIONS=o,t.NON_AUTHORITATIVE_CAMPAIGN_MD_SECTIONS=["what_creators_receive","deliverables","faq","content_guidelines"];let _="playbook_overrides",l=r.CREATOR_BRIEF_SECTIONS[5],E=/^ {0,3}-+[ \t]*$/;function c(e,t){let n=e.split("\n"),r=n.map(e=>e.replace(/\r$/,"")),i=[],a=[],o=null;for(let e=0;e<n.length;e+=1){var _;let l=n[e],E=r[e];if(o){i.push(l);let e=E.match(/^ {0,3}(`{3,}|~{3,})[\t ]*$/);e&&e[1][0]===o.marker&&e[1].length>=o.length&&(o=null);continue}let c=E.match(/^ {0,3}(`{3,}|~{3,})(.*)$/);if(c&&("~"===c[1][0]||!c[2].includes("`"))){o={marker:c[1][0],length:c[1].length,line:e+1},i.push(l);continue}let s=t(E,e+1,null!=(_=r[e+1])?_:null);i.push(l.endsWith("\r")?"".concat(s.line,"\r"):s.line),s.refusal&&a.push(s.refusal)}return{lines:i,refusals:a,openFence:o?o.line:null}}function s(e){return c(e,e=>({line:e,refusal:null})).openFence}function u(e){let{lines:t,refusals:n,openFence:r}=c(e,(e,t,n)=>{if(/^ {0,3}#{6}(?=[ \t]|$)/.test(e))return{line:e,refusal:"level-6 heading at line ".concat(t)};if(null!==n&&E.test(n)&&(0,i.normalizeSectionTitle)(e)===(0,i.normalizeSectionTitle)(l))return{line:e,refusal:"setext FAQ heading at line ".concat(t)};let r=e.match(/^( {0,3})(#{2,5})(?=[ \t]|$)/);return r?{line:"".concat(r[1]).concat(r[2],"#").concat(e.slice(r[0].length)),refusal:null}:{line:e,refusal:null}});return(null!==r&&n.push("unterminated fence opened at line ".concat(r)),n.length>0)?{text:e,refusals:n}:{text:t.join("\n"),refusals:n}}function d(e){let{lines:t}=c(e,e=>{let t=e.match(/^( {0,3})(#{3,6})(?=[ \t]|$)/);return t?{line:"".concat(t[1]).concat(t[2].slice(1)).concat(e.slice(t[0].length)),refusal:null}:{line:e,refusal:null}});return t.join("\n")}function A(e,t){return[e,t].filter(e=>e.length>0).join("\n\n")}},35903:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},36553:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},40876:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.SalesInquiryTopic=void 0,function(e){e.ENTERPRISE_PLAN="enterprise_plan",e.CUSTOM_VOLUME="custom_volume",e.PARTNERSHIP="partnership",e.OTHER="other"}(n||(t.SalesInquiryTopic=n={}))},41195:(e,t)=>{var n,r,i,a;Object.defineProperty(t,"__esModule",{value:!0}),t.OrganizationTier=t.TokenActionKey=t.TokenSource=t.CreditSource=void 0,function(e){e.SUBSCRIPTION="subscription",e.PURCHASE="purchase",e.GIFT="gift",e.GIVEAWAY="giveaway",e.ADMIN="admin",e.SYSTEM="system",e.PROMOTION="promotion",e.REFERRAL="referral"}(n||(t.CreditSource=n={})),function(e){e.SUBSCRIPTION="subscription",e.PURCHASE="purchase",e.GIFT="gift",e.WELCOME_GRANT="giveaway",e.ADMIN="admin",e.SYSTEM="system",e.PROMOTION="promotion",e.REFERRAL="referral",e.OVERAGE="overage"}(r||(t.TokenSource=r={})),function(e){e.PREFLIGHT_SIMULATION="preflight_simulation",e.OUTREACH_EMAIL="outreach_email",e.CREATOR_SEARCH="creator_search",e.AGENT_EXECUTION="agent_execution",e.BRAND_EXTRACTION="brand_extraction",e.SHIPMENT_TRACKING_SCAN="shipment_tracking_scan",e.MAPS_ADDRESS_LOOKUP="maps_address_lookup",e.POST_MONITORING_SCAN="post_monitoring_scan",e.ORCHESTRATOR_CHAT="orchestrator_chat",e.BRAND_CHAT="brand_chat",e.CAMPAIGN_CREATION_CHAT="campaign_creation_chat",e.KNOWLEDGE_EDIT="knowledge_edit",e.TRANSLATE_OUTGOING="translate_outgoing",e.CEA_EMAIL="cea_email",e.VISUAL_ADHERENCE_CHECK="visual_adherence_check",e.PRODUCT_URL_PARSE="product_url_parse",e.URL_PAGE_FETCH="url_page_fetch",e.CREATOR_EXPORT="creator_export",e.ACCOUNT_EXPORT="account_export",e.CAMPAIGN_EMAIL_POLISH="campaign_email_polish",e.ORGANIZATION_BRAND_ANALYSIS="organization_brand_analysis",e.CAMPAIGN_EMAIL_SEND="campaign_email_send",e.CAMPAIGN_REPORT_ANALYSIS="campaign_report_analysis",e.CREATOR_GRAPH_QUERY="creator_graph_query",e.REVIEW_CANDIDATES="review_candidates",e.WEB_SEARCH="web_search",e.SEARCH_APIFY="search_apify",e.CANDIDATE_ANALYSIS="candidate_analysis",e.SOCIAL_LISTENING_RUN="social_listening_run",e.COMMENT_SCRAPE="comment_scrape"}(i||(t.TokenActionKey=i={})),function(e){e.SELF_SERVE="self_serve",e.ENTERPRISE="enterprise"}(a||(t.OrganizationTier=a={}))},43466:(e,t)=>{var n,r;
1Object.defineProperty(t,"__esModule",{value:!0}),t.ReferenceSource=t.ReferenceRole=void 0,function(e){e.COMPETITOR="competitor",e.REFERENCE="reference",e.VERTICAL_LEADER="vertical_leader"}(n||(t.ReferenceRole=n={})),function(e){e.MARKETER="marketer",e.WEB_SEARCH="web search",e.CRAWL="crawl"}(r||(t.ReferenceSource=r={}))},43527:(e,t)=>{var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.PostHogActivationEvent=t.BetaLifecycleEvent=void 0,function(e){e.WELCOME="welcome",e.BRAND_ASSETS_REQUIRED="brand_assets_required",e.FIRST_CREATOR_RESPONDED="first_creator_responded",e.HUNDRED_CREATORS_AWAITING_RESPONSE="hundred_creators_awaiting_response",e.PAYMENT_REQUIRED="payment_required",e.MEMBER_UPGRADE_REQUEST="member_upgrade_request",e.CARD_ADDED="card_added",e.TOKEN_50_PCT_USED="tok_50_pct_used",e.TOKEN_80_PCT_USED="tok_80_pct_used",e.TOKEN_100_PCT_USED="tok_100_pct_used",e.SUBSCRIPTION_RENEWED="subscription_renewed",e.SUBSCRIPTION_CANCELLATION_CONFIRMED="subscription_cancellation_confirmed",e.PASSWORD_RESET="password_reset"}(n||(t.BetaLifecycleEvent=n={})),function(e){e.USER_SIGNUP="user_signup",e.EMAIL_VERIFIED="email_verified",e.ORGANIZATION_CREATED="organization_created",e.FIRST_BRAND_ASSETS_UPLOADED="first_brand_assets_uploaded",e.FIRST_CAMPAIGN_CREATED="first_campaign_created",e.FIRST_OUTREACH_SENT="first_outreach_sent",e.FIRST_INBOX_REPLY_SENT="first_inbox_reply_sent",e.CARD_ADDED="card_added",e.PAYWALL_HIT="paywall_hit",e.SUBSCRIPTION_STARTED="subscription_started",e.TOKEN_50_PCT_USED="tok_50_pct_used",e.TOKEN_80_PCT_USED="tok_80_pct_used",e.TOKEN_100_PCT_USED="tok_100_pct_used"}(r||(t.PostHogActivationEvent=r={}))},43754:(e,t)=>{var n,r,i,a,o,_,l,E,c,s;Object.defineProperty(t,"__esModule",{value:!0}),t.CampaignType=t.WorkflowSortBy=t.PipelineSortBy=t.PipelineStage=t.ConversationSearchScope=t.CreatorAcceptanceFlow=t.normalizeCreatorCategory=t.CREATOR_CATEGORY_VALUES=t.CreatorCategory=t.CampaignPlatform=t.CampaignOutcome=t.CampaignStatus=void 0,function(e){e.DRAFT="draft",e.ACTIVE="active",e.INACTIVE="inactive",e.TERMINATED="terminated",e.COMPLETED="completed",e.CANCELED="canceled",e.TEST="test",e.ARCHIVED="archived"}(n||(t.CampaignStatus=n={})),function(e){e.COMPLETED="completed",e.CANCELED="canceled",e.ABANDONED="abandoned"}(r||(t.CampaignOutcome=r={})),function(e){e.INSTAGRAM="instagram",e.TIKTOK="tiktok",e.YOUTUBE="youtube"}(i||(t.CampaignPlatform=i={})),function(e){e.CULTURE_ENTERTAINMENT="Culture & Entertainment",e.FASHION_STYLE="Fashion & Style",e.EVENTS_ACTIVITIES="Events & Activities",e.FOOD_DRINK="Food & Drink",e.TRAVEL_TOURISM="Travel & Tourism",e.HOME_LIVING="Home & Living",e.BEAUTY_PERSONAL_CARE="Beauty & Personal Care",e.SPORTS_OUTDOORS="Sports & Outdoors",e.RELATIONSHIPS_FAMILY="Relationships & Family",e.HEALTH_WELLNESS="Health & Wellness",e.ARTS_CRAFTS="Arts & Crafts",e.BUSINESS_FINANCE="Business & Finance",e.EDUCATION_LEARNING="Education & Learning",e.PETS="Pets",e.REVIEWS_RECOMMENDATIONS="Reviews & Recommendations",e.AUTOMOTIVE="Automotive",e.PHOTOGRAPHY_VIDEOGRAPHY="Photography & Videography",e.MUSIC_ENTERTAINMENT="Music & Entertainment",e.BOOKS_LITERATURE="Books & Literature",e.NEWS_MEDIA="News & Media",e.AI_TECHNOLOGY="AI & Technology",e.ARCHITECTURE_CONSTRUCTION="Architecture & Construction",e.SCIENCE_NATURE="Science & Nature",e.GAMING="Gaming"}(a||(t.CreatorCategory=a={})),t.CREATOR_CATEGORY_VALUES=Object.values(a);let u=e=>e.trim().toLowerCase().replace(/&/g," and ").replace(/[^a-z0-9]+/g," ").trim().replace(/\s+/g," "),d=[["culture",a.CULTURE_ENTERTAINMENT],["entertainment",a.CULTURE_ENTERTAINMENT],["fashion",a.FASHION_STYLE],["style",a.FASHION_STYLE],["events",a.EVENTS_ACTIVITIES],["activities",a.EVENTS_ACTIVITIES],["food",a.FOOD_DRINK],["drink",a.FOOD_DRINK],["beverage",a.FOOD_DRINK],["beverages",a.FOOD_DRINK],["travel",a.TRAVEL_TOURISM],["tourism",a.TRAVEL_TOURISM],["home",a.HOME_LIVING],["living",a.HOME_LIVING],["beauty",a.BEAUTY_PERSONAL_CARE],["personal care",a.BEAUTY_PERSONAL_CARE],["health",a.HEALTH_WELLNESS],["wellness",a.HEALTH_WELLNESS],["sports",a.SPORTS_OUTDOORS],["outdoors",a.SPORTS_OUTDOORS],["relationships",a.RELATIONSHIPS_FAMILY],["family",a.RELATIONSHIPS_FAMILY],["arts",a.ARTS_CRAFTS],["crafts",a.ARTS_CRAFTS],["business",a.BUSINESS_FINANCE],["finance",a.BUSINESS_FINANCE],["education",a.EDUCATION_LEARNING],["learning",a.EDUCATION_LEARNING],["reviews",a.REVIEWS_RECOMMENDATIONS],["recommendations",a.REVIEWS_RECOMMENDATIONS],["photography",a.PHOTOGRAPHY_VIDEOGRAPHY],["videography",a.PHOTOGRAPHY_VIDEOGRAPHY],["music",a.MUSIC_ENTERTAINMENT],["books",a.BOOKS_LITERATURE],["literature",a.BOOKS_LITERATURE],["news",a.NEWS_MEDIA],["media",a.NEWS_MEDIA],["ai",a.AI_TECHNOLOGY],["technology",a.AI_TECHNOLOGY],["tech",a.AI_TECHNOLOGY],["architecture",a.ARCHITECTURE_CONSTRUCTION],["construction",a.ARCHITECTURE_CONSTRUCTION],["science",a.SCIENCE_NATURE],["nature",a.SCIENCE_NATURE]],A={...Object.fromEntries(t.CREATOR_CATEGORY_VALUES.map(e=>[u(e),e])),...Object.fromEntries(d.map(e=>{let[t,n]=e;return[u(t),n]}))};t.normalizeCreatorCategory=e=>{let t=u(e);return Object.prototype.hasOwnProperty.call(A,t)?A[t]:void 0},function(e){e.COLLECT_INFO_IMMEDIATELY="collect_info_immediately",e.BRAND_FINAL_REVIEW_REQUIRED="brand_final_review_required"}(o||(t.CreatorAcceptanceFlow=o={})),function(e){e.ALL="all",e.USERNAME="username",e.PROFILE_ID="profileId",e.CREATOR_EMAIL="creatorEmail",e.SENT_FROM="sentFrom",e.DONE_BY="doneBy"}(_||(t.ConversationSearchScope=_={})),function(e){e.SELECTED="selected",e.CONTACTS_FOUND="contacts_found",e.PROPOSAL_DRAFTED="proposal_drafted",e.OUTREACH_SENT="outreach_sent",e.RESPONDED="responded",e.INFO_COLLECTED="info_collected",e.ITEM_SENT="item_sent",e.DELIVERED="delivered",e.COMPLETED="completed",e.UPLOADED="uploaded",e.MODERATED="moderated",e.DECLINED="declined"}(l||(t.PipelineStage=l={})),function(e){e.USERNAME="username",e.CURRENT_STAGE="currentStage",e.LAST_ACTIVITY="lastActivity",e.CONTACT_COUNT="contactCount",e.FUNNEL_STATUS="funnelStatus"}(E||(t.PipelineSortBy=E={})),function(e){e.USERNAME="username",e.FUNNEL_STATUS="funnelStatus",e.OUTREACH_SENT_AT="outreachSentAt",e.RESPONDED_AT="respondedAt",e.INFO_COLLECTED_AT="infoCollectedAt",e.ITEM_SENT_AT="itemSentAt",e.DELIVERED_AT="deliveredAt",e.COMPLETED_AT="completedAt",e.UPLOADED_AT="uploadedAt",e.MODERATED_AT="verifiedAt",e.SHIPPING_STATUS="shippingStatus"}(c||(t.WorkflowSortBy=c={})),function(e){e.SEEDING="seeding",e.PAID_COLLABORATION="paid_collaboration",e.AFFILIATE_MARKETING="affiliate_marketing"}(s||(t.CampaignType=s={}))},44440:(e,t)=>{var n,r;
1Object.defineProperty(t,"__esModule",{value:!0}),t.ConfidenceThresholdLevel=t.ConfidenceLevel=void 0,function(e){e.LOW="low",e.MEDIUM="medium",e.HIGH="high",e.XHIGH="xhigh"}(n||(t.ConfidenceLevel=n={})),function(e){e.LOW="low",e.MEDIUM="medium",e.HIGH="high",e.XHIGH="xhigh",e.MANUAL="manual"}(r||(t.ConfidenceThresholdLevel=r={}))},45543:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.CommunicationMode=void 0,function(e){e.SANDBOX="sandbox",e.LIVE="live"}(n||(t.CommunicationMode=n={}))},45638:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ANALYTICS_EVENT_NAMES=void 0,t.ANALYTICS_EVENT_NAMES=Object.values(n(73590).AnalyticsEventName)},47269:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DeclineReason=void 0,function(e){e.PAID_ONLY="paid_only",e.FIT_MISMATCH="fit_mismatch",e.SCHEDULE_CONFLICT="schedule_conflict",e.NOT_INTERESTED="not_interested",e.CONTENT_RESTRICTIONS="content_restrictions",e.OTHER="other"}(n||(t.DeclineReason=n={}))},47778:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CHAT_HISTORY_BODY_BYTE_BUDGET=t.CHAT_HISTORY_MESSAGE_CONTENT_MAX_CHARS=t.CHAT_HISTORY_MAX_MESSAGES=void 0,t.packChatHistory=function(e){return function(e){let n=[],r=32;for(let i=e.length-1;i>=0;i--){let a=e[i],o=function(e){let t=0;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);r<128?t+=1:r<2048?t+=2:r>=55296&&r<=56319&&n+1<e.length&&(64512&e.charCodeAt(n+1))==56320?(t+=4,n+=1):t+=3}return t}(JSON.stringify(a))+1;if(n.length>0&&r+o>t.CHAT_HISTORY_BODY_BYTE_BUDGET)break;n.unshift(a),r+=o}return n}(e.slice(-t.CHAT_HISTORY_MAX_MESSAGES).map(r))},t.CHAT_HISTORY_MAX_MESSAGES=40,t.CHAT_HISTORY_MESSAGE_CONTENT_MAX_CHARS=1e4,t.CHAT_HISTORY_BODY_BYTE_BUDGET=8e4;let n="\n...[truncated]";function r(e){if(e.content.length<=t.CHAT_HISTORY_MESSAGE_CONTENT_MAX_CHARS)return e;let r=Math.max(0,t.CHAT_HISTORY_MESSAGE_CONTENT_MAX_CHARS-n.length);return{...e,content:e.content.slice(0,r)+n}}},47933:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.YOUTUBE_HANDLE_PATTERN=t.TIKTOK_HANDLE_PATTERN=t.INSTAGRAM_HANDLE_PATTERN=t.normalizeSocialHandle=void 0,t.normalizeSocialHandle=e=>e.trim().replace(/^@+/,"").trim().toLowerCase(),t.INSTAGRAM_HANDLE_PATTERN=/^[a-z0-9._]{1,30}$/,t.TIKTOK_HANDLE_PATTERN=/^[a-z0-9._]{0,23}[a-z0-9_]$/,t.YOUTUBE_HANDLE_PATTERN=RegExp("^[\\p{L}\\p{M}\\p{N}._-]{3,30}$","u")},50116:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GmailAuthType=t.GmailAccountType=t.EmailStatus=t.EmailDirection=t.OrganizationLifecycleStatus=t.UserLifecycleStatus=t.PostHogActivationEvent=t.BetaLifecycleEvent=t.OrganizationTier=t.TokenActionKey=t.TokenSource=t.CreditSource=t.CollectionType=t.CollectionStatus=t.TRIGGER_BRAND_ENRICHMENT_TOOL_NAME=t.normalizeProductCategory=t.PRODUCT_CATEGORY_LABELS=t.PRODUCT_CATEGORY_VALUES=t.ProductCategory=t.ReferenceSource=t.ReferenceRole=t.BrandApprovalSource=t.BRAND_CATEGORY_VALUES=t.BrandCategory=t.WorkflowSortBy=t.PipelineSortBy=t.PipelineStage=t.ConversationSearchScope=t.CreatorAcceptanceFlow=t.normalizeCreatorCategory=t.CREATOR_CATEGORY_VALUES=t.CreatorCategory=t.CampaignPlatform=t.CampaignType=t.CampaignOutcome=t.CampaignStatus=t.ShortlistRunStatus=t.classifyCorpusFreshness=t.FRESHNESS_FUTURE_TOLERANCE_MS=t.CORPUS_NULL_COUNTRY_RATIO_CEILING=t.CORPUS_STALE_DAYS_THRESHOLD=t.DISCOVERY_SERVING_REASONS_RETIRED=t.DISCOVERY_SERVING_REASONS=t.DISCOVERY_SERVING_SOURCES=t.DiscoveryRunError=t.DiscoveryApprovalMode=t.AutopilotOperationalReadinessKey=t.AgentType=t.AgentJobStatus=t.AcquisitionSelfReportedSource=void 0,t.AGENT_PLAYBOOK_SECTIONS=t.CREATOR_BRIEF_OVERRIDABLE_SECTIONS=t.CREATOR_BRIEF_SECTIONS=t.CAMPAIGN_SETUP_SECTIONS=t.BRAND_PROFILE_SECTIONS=t.CAMPAIGN_KNOWLEDGE_SECTIONS=t.BRAND_KNOWLEDGE_SECTIONS=t.ProductInfoImageRole=t.ProductInfoImageSource=t.ConfidenceThresholdLevel=t.ConfidenceLevel=t.PermissionMode=t.AutomationLevel=t.ResourceErrorCode=t.OrchestratorChatErrorCode=t.CriticVerdict=t.TurnEventClass=t.OrganizationCapability=t.WorkspaceSection=t.OpsEventActorType=t.OpsEventVisibility=t.CampaignCreatorOpsEventType=t.DeclineReason=t.CampaignResultSourceType=t.FUNNEL_STATUS_RANK=t.DeclinedBy=t.ResponseSentiment=t.FunnelPhase=t.FunnelStatus=t.AgentNotificationActionStatus=t.AgentNotificationType=t.isOwnerOrAdminRole=t.isOrganizationAdminRole=t.isOrganizationOwnerRole=t.
1LEGACY_ORGANIZATION_OWNER_ROLE=t.BrandRole=t.OrganizationMemberStatus=t.OrganizationRole=t.ShippingInfoSource=t.AddressValidationStatus=t.FulfillmentShipmentType=t.TrackEventStatusCode=t.PostType=t.MediaType=t.TiktokShopConnectErrorCode=t.TiktokTrackingTargetType=t.InstagramTrackingTargetType=t.InstagramDmAccountStatus=t.GmailMessageStatus=t.GmailMessageDirection=void 0,t.DISCOVERY_EXCLUSION_REASON_PRECEDENCE=t.DiscoveryExclusionReason=t.DISCOVERY_ENGAGEMENT_BANDS=t.DISCOVERY_FOLLOWERS_BANDS=t.DISCOVERY_ROUND_LEGAL_TRANSITIONS=t.DISCOVERY_RUN_LEGAL_TRANSITIONS=t.DiscoveryFinalShortfallReason=t.DiscoveryRunConflictCode=t.DiscoveryRunNextAction=t.DiscoveryHumanAuthority=t.DiscoveryHumanDecision=t.DiscoveryReviewState=t.DiscoveryRoundState=t.DiscoveryRunStatus=t.DiscoveryEntryPoint=t.DiscoveryCriteriaProvenance=t.CampaignFieldProvenance=t.OrchestratorQuickAction=t.WorkflowSpotlightSection=t.Language=t.Country=t.CreatorArchetype=t.GARMCategory=t.GARMRiskLevel=t.AccountType=t.Ethnicity=t.AgeGroup=t.Gender=t.UserType=t.NumberDisplayFormat=t.SalesInquiryTopic=t.CANCEL_REASON_LABELS=t.CancelReason=t.FeedbackType=t.CommunicationMode=t.GuidelineSource=t.X_STORIKA_PAGE_LOCATION=t.X_STORIKA_PARENT_CALL_ID=t.X_STORIKA_ROOT_REQUEST_ID=t.BATCH_JOB_ID_METADATA_KEY=t.CostConfidence=t.CostEstimationMethod=t.LlmPageLocation=t.LlmFeature=t.LlmCallSurface=t.CAMPAIGN_DOC_GROUPS=t.CampaignContentGroup=t.CANONICAL_SECTIONS_BY_GROUP=t.AGENT_PLAYBOOK_TYPED_SECTION_TITLES=t.CAMPAIGN_SETUP_TYPED_SECTION_TITLES=void 0,t.signupCardRequiredFor=t.PREFLIGHT_ORG_PLACEHOLDER_NAME=t.UNTITLED_CAMPAIGN_NAME=void 0;var r=n(28355);Object.defineProperty(t,"AcquisitionSelfReportedSource",{enumerable:!0,get:function(){return r.AcquisitionSelfReportedSource}});var i=n(2145);Object.defineProperty(t,"AgentJobStatus",{enumerable:!0,get:function(){return i.AgentJobStatus}}),Object.defineProperty(t,"AgentType",{enumerable:!0,get:function(){return i.AgentType}});var a=n(32694);Object.defineProperty(t,"AutopilotOperationalReadinessKey",{enumerable:!0,get:function(){return a.AutopilotOperationalReadinessKey}});var o=n(13132);Object.defineProperty(t,"DiscoveryApprovalMode",{enumerable:!0,get:function(){return o.DiscoveryApprovalMode}}),Object.defineProperty(t,"DiscoveryRunError",{enumerable:!0,get:function(){return o.DiscoveryRunError}}),Object.defineProperty(t,"DISCOVERY_SERVING_SOURCES",{enumerable:!0,get:function(){return o.DISCOVERY_SERVING_SOURCES}}),Object.defineProperty(t,"DISCOVERY_SERVING_REASONS",{enumerable:!0,get:function(){return o.DISCOVERY_SERVING_REASONS}}),Object.defineProperty(t,"DISCOVERY_SERVING_REASONS_RETIRED",{enumerable:!0,get:function(){return o.DISCOVERY_SERVING_REASONS_RETIRED}}),Object.defineProperty(t,"CORPUS_STALE_DAYS_THRESHOLD",{enumerable:!0,get:function(){return o.CORPUS_STALE_DAYS_THRESHOLD}}),Object.defineProperty(t,"CORPUS_NULL_COUNTRY_RATIO_CEILING",{enumerable:!0,get:function(){return o.CORPUS_NULL_COUNTRY_RATIO_CEILING}}),Object.defineProperty(t,"FRESHNESS_FUTURE_TOLERANCE_MS",{enumerable:!0,get:function(){return o.FRESHNESS_FUTURE_TOLERANCE_MS}}),Object.defineProperty(t,"classifyCorpusFreshness",{enumerable:!0,get:function(){return o.classifyCorpusFreshness}}),Object.defineProperty(t,"ShortlistRunStatus",{enumerable:!0,get:function(){return o.ShortlistRunStatus}});var _=n(43754);Object.defineProperty(t,"CampaignStatus",{enumerable:!0,get:function(){return _.CampaignStatus}}),Object.defineProperty(t,"CampaignOutcome",{enumerable:!0,get:function(){return _.CampaignOutcome}}),Object.defineProperty(t,"CampaignType",{enumerable:!0,get:function(){return _.CampaignType}}),Object.defineProperty(t,"CampaignPlatform",{enumerable:!0,get:function(){return _.CampaignPlatform}}),Object.defineProperty(t,"CreatorCategory",{enumerable:!0,get:function(){return _.CreatorCategory}}),Object.defineProperty(t,"CREATOR_CATEGORY_VALUES",{enumerable:!0,get:function(){return _.CREATOR_CATEGORY_VALUES}}),Object.defineProperty(t,"normalizeCreatorCategory",{enumerable:!0,get:function(){return _.normalizeCreatorCategory}}),Object.defineProperty(t,"CreatorAcceptanceFlow",{enumerable:!0,get:function(){return _.CreatorAcceptanceFlow}}),Object.defineProperty(t,"ConversationSearchScope",{enumerable:!0,get:function(){return _.ConversationSearchScope}}),Object.defineProperty(t,"PipelineStage",{enumerable:!0,get:function(){return _.PipelineStage}}),Object.defineProperty(t,"PipelineSortBy",{enumerable:!0,get:function(){return _.PipelineSortBy}}),Object.defineProperty(t,"WorkflowSortBy",{enumerable:!0,get:function(){return _.WorkflowSortBy}});var l=n(88713);Object.defineProperty(t,"BrandCategory",{enumerable:!0,get:function(){return l.BrandCategory}}),Object.defineProperty(t,"BRAND_CATEGORY_VALUES",{enumerable:!0,get:function(){return l.BRAND_CATEGORY_VALUES}});var E=n(59251);Object.defineProperty(t,"BrandApprovalSource",{enumerable:!0,get:function(){return E.BrandApprovalSource}});var c=n(43466);Object.defineProperty(t,"ReferenceRole",{enumerable:!0,get:function(){return c.ReferenceRole}}),Object.defineProperty(t,"ReferenceSource",{enumerable:!0,get:function(){return c.ReferenceSource}});var s=n(86606);Object.defineProperty(t,"ProductCategory",{enumerable:!0,get:function(){return s.ProductCategory}}),Object.defineProperty(t,"PRODUCT_CATEGORY_VALUES",{enumerable:!0,get:function(){return s.PRODUCT_CATEGORY_VALUES}}),Object.defineProperty(t,"PRODUCT_CATEGORY_LABELS",{enumerable:!0,get:function(){return s.PRODUCT_CATEGORY_LABELS}}),Object.defineProperty(t,"normalizeProductCategory",{enumerable:!0,get:function(){return s.normalizeProductCategory}});var u=n(50336);Object.defineProperty(t,"TRIGGER_BRAND_ENRICHMENT_TOOL_NAME",{enumerable:!0,get:function(){return u.TRIGGER_BRAND_ENRICHMENT_TOOL_NAME}});var d=n(97728);Object.defineProperty(t,"CollectionStatus",{enumerable:!0,get:function(){return d.CollectionStatus}}),Object.defineProperty(t,"CollectionType",{enumerable:!0,get:function(){return d.CollectionType}});var A=n(41195);Object.defineProperty(t,"CreditSource",{enumerable:!0,get:function(){return A.CreditSource}}),Object.defineProperty(t,"TokenSource",{enumerable:!0,get:function(){return A.TokenSource}}),Object.defineProperty(t,"TokenActionKey",{enumerable:!0,get:function(){return A.TokenActionKey}}),Object.defineProperty(t,"OrganizationTier",{enumerable:!0,get:function(){return A.OrganizationTier}});var T=n(43527);Object.defineProperty(t,"BetaLifecycleEvent",{enumerable:!0,get:function(){return T.BetaLifecycleEvent}}),Object.defineProperty(t,"PostHogActivationEvent",{enumerable:!0,get:function(){return T.PostHogActivationEvent}});var O=n(78126);Object.defineProperty(t,"UserLifecycleStatus",{enumerable:!0,get:function(){return O.UserLifecycleStatus}}),Object.defineProperty(t,"OrganizationLifecycleStatus",{enumerable:!0,get:function(){return O.OrganizationLifecycleStatus}});var I=n(78796);Object.defineProperty(t,"EmailDirection",{enumerable:!0,get:function(){return I.EmailDirection}}),Object.defineProperty(t,"EmailStatus",{enumerable:!0,get:function(){return I.EmailStatus}});var S=n(94826);Object.defineProperty(t,"GmailAccountType",{enumerable:!0,get:function(){return S.GmailAccountType}}),Object.defineProperty(t,"GmailAuthType",{enumerable:!0,get:function(){return S.GmailAuthType}}),Object.defineProperty(t,"GmailMessageDirection",{enumerable:!0,get:function(){return S.GmailMessageDirection}}),Object.defineProperty(t,"GmailMessageStatus",{enumerable:!0,get:function(){return S.GmailMessageStatus}});var R=n(80904);Object.defineProperty(t,"InstagramDmAccountStatus",{enumerable:!0,get:function(){return R.InstagramDmAccountStatus}}),Object.defineProperty(t,"InstagramTrackingTargetType",{enumerable:!0,get:function(){return R.InstagramTrackingTargetType}});var C=n(18130);Object.defineProperty(t,"TiktokTrackingTargetType",{enumerable:!0,get:function(){return C.TiktokTrackingTargetType}}),Object.defineProperty(t,"TiktokShopConnectErrorCode",{enumerable:!0,get:function(){return C.TiktokShopConnectErrorCode}});var N=n(54024);Object.defineProperty(t,"MediaType",{enumerable:!0,get:function(){return N.MediaType}}),Object.defineProperty(t,"PostType",{enumerable:!0,get:function(){return N.PostType}});var p=n(61762);Object.defineProperty(t,"TrackEventStatusCode",{enumerable:!0,get:function(){return p.TrackEventStatusCode}}),Object.defineProperty(t,"FulfillmentShipmentType",{enumerable:!0,get:function(){return p.FulfillmentShipmentType}});var D=n(59961);Object.defineProperty(t,"AddressValidationStatus",{enumerable:!0,get:function(){return D.AddressValidationStatus}});var f=n(65545);Object.defineProperty(t,"ShippingInfoSource",{enumerable:!0,get:function(){return f.ShippingInfoSource}});var m=n(99051);Object.defineProperty(t,"OrganizationRole",{enumerable:!0,get:function(){return m.OrganizationRole}}),Object.defineProperty(t,"OrganizationMemberStatus",{enumerable:!0,get:function(){return m.OrganizationMemberStatus}}
1),Object.defineProperty(t,"BrandRole",{enumerable:!0,get:function(){return m.BrandRole}}),Object.defineProperty(t,"LEGACY_ORGANIZATION_OWNER_ROLE",{enumerable:!0,get:function(){return m.LEGACY_ORGANIZATION_OWNER_ROLE}}),Object.defineProperty(t,"isOrganizationOwnerRole",{enumerable:!0,get:function(){return m.isOrganizationOwnerRole}}),Object.defineProperty(t,"isOrganizationAdminRole",{enumerable:!0,get:function(){return m.isOrganizationAdminRole}}),Object.defineProperty(t,"isOwnerOrAdminRole",{enumerable:!0,get:function(){return m.isOwnerOrAdminRole}});var g=n(94699);Object.defineProperty(t,"AgentNotificationType",{enumerable:!0,get:function(){return g.AgentNotificationType}}),Object.defineProperty(t,"AgentNotificationActionStatus",{enumerable:!0,get:function(){return g.AgentNotificationActionStatus}});var P=n(54576);Object.defineProperty(t,"FunnelStatus",{enumerable:!0,get:function(){return P.FunnelStatus}}),Object.defineProperty(t,"FunnelPhase",{enumerable:!0,get:function(){return P.FunnelPhase}}),Object.defineProperty(t,"ResponseSentiment",{enumerable:!0,get:function(){return P.ResponseSentiment}}),Object.defineProperty(t,"DeclinedBy",{enumerable:!0,get:function(){return P.DeclinedBy}}),Object.defineProperty(t,"FUNNEL_STATUS_RANK",{enumerable:!0,get:function(){return P.FUNNEL_STATUS_RANK}});var L=n(19252);Object.defineProperty(t,"CampaignResultSourceType",{enumerable:!0,get:function(){return L.CampaignResultSourceType}});var y=n(47269);Object.defineProperty(t,"DeclineReason",{enumerable:!0,get:function(){return y.DeclineReason}});var v=n(6567);Object.defineProperty(t,"CampaignCreatorOpsEventType",{enumerable:!0,get:function(){return v.CampaignCreatorOpsEventType}}),Object.defineProperty(t,"OpsEventVisibility",{enumerable:!0,get:function(){return v.OpsEventVisibility}}),Object.defineProperty(t,"OpsEventActorType",{enumerable:!0,get:function(){return v.OpsEventActorType}});var h=n(66733);Object.defineProperty(t,"WorkspaceSection",{enumerable:!0,get:function(){return h.WorkspaceSection}});var U=n(19268);Object.defineProperty(t,"OrganizationCapability",{enumerable:!0,get:function(){return U.OrganizationCapability}});var b=n(22206);Object.defineProperty(t,"TurnEventClass",{enumerable:!0,get:function(){return b.TurnEventClass}});var M=n(5500);Object.defineProperty(t,"CriticVerdict",{enumerable:!0,get:function(){return M.CriticVerdict}});var G=n(10273);Object.defineProperty(t,"OrchestratorChatErrorCode",{enumerable:!0,get:function(){return G.OrchestratorChatErrorCode}});var F=n(54671);Object.defineProperty(t,"ResourceErrorCode",{enumerable:!0,get:function(){return F.ResourceErrorCode}});var V=n(96268);Object.defineProperty(t,"AutomationLevel",{enumerable:!0,get:function(){return V.AutomationLevel}});var Y=n(22613);Object.defineProperty(t,"PermissionMode",{enumerable:!0,get:function(){return Y.PermissionMode}});var H=n(44440);Object.defineProperty(t,"ConfidenceLevel",{enumerable:!0,get:function(){return H.ConfidenceLevel}}),Object.defineProperty(t,"ConfidenceThresholdLevel",{enumerable:!0,get:function(){return H.ConfidenceThresholdLevel}});var w=n(7726);Object.defineProperty(t,"ProductInfoImageSource",{enumerable:!0,get:function(){return w.ProductInfoImageSource}}),Object.defineProperty(t,"ProductInfoImageRole",{enumerable:!0,get:function(){return w.ProductInfoImageRole}});var B=n(87695);Object.defineProperty(t,"BRAND_KNOWLEDGE_SECTIONS",{enumerable:!0,get:function(){return B.BRAND_KNOWLEDGE_SECTIONS}}),Object.defineProperty(t,"CAMPAIGN_KNOWLEDGE_SECTIONS",{enumerable:!0,get:function(){return B.CAMPAIGN_KNOWLEDGE_SECTIONS}}),Object.defineProperty(t,"BRAND_PROFILE_SECTIONS",{enumerable:!0,get:function(){return B.BRAND_PROFILE_SECTIONS}}),Object.defineProperty(t,"CAMPAIGN_SETUP_SECTIONS",{enumerable:!0,get:function(){return B.CAMPAIGN_SETUP_SECTIONS}}),Object.defineProperty(t,"CREATOR_BRIEF_SECTIONS",{enumerable:!0,get:function(){return B.CREATOR_BRIEF_SECTIONS}}),Object.defineProperty(t,"CREATOR_BRIEF_OVERRIDABLE_SECTIONS",{enumerable:!0,get:function(){return B.CREATOR_BRIEF_OVERRIDABLE_SECTIONS}}),Object.defineProperty(t,"AGENT_PLAYBOOK_SECTIONS",{enumerable:!0,get:function(){return B.AGENT_PLAYBOOK_SECTIONS}}
1),Object.defineProperty(t,"CAMPAIGN_SETUP_TYPED_SECTION_TITLES",{enumerable:!0,get:function(){return B.CAMPAIGN_SETUP_TYPED_SECTION_TITLES}}),Object.defineProperty(t,"AGENT_PLAYBOOK_TYPED_SECTION_TITLES",{enumerable:!0,get:function(){return B.AGENT_PLAYBOOK_TYPED_SECTION_TITLES}}),Object.defineProperty(t,"CANONICAL_SECTIONS_BY_GROUP",{enumerable:!0,get:function(){return B.CANONICAL_SECTIONS_BY_GROUP}});var k=n(55836);Object.defineProperty(t,"CampaignContentGroup",{enumerable:!0,get:function(){return k.CampaignContentGroup}}),Object.defineProperty(t,"CAMPAIGN_DOC_GROUPS",{enumerable:!0,get:function(){return k.CAMPAIGN_DOC_GROUPS}});var K=n(16145);Object.defineProperty(t,"LlmCallSurface",{enumerable:!0,get:function(){return K.LlmCallSurface}}),Object.defineProperty(t,"LlmFeature",{enumerable:!0,get:function(){return K.LlmFeature}}),Object.defineProperty(t,"LlmPageLocation",{enumerable:!0,get:function(){return K.LlmPageLocation}}),Object.defineProperty(t,"CostEstimationMethod",{enumerable:!0,get:function(){return K.CostEstimationMethod}}),Object.defineProperty(t,"CostConfidence",{enumerable:!0,get:function(){return K.CostConfidence}}),Object.defineProperty(t,"BATCH_JOB_ID_METADATA_KEY",{enumerable:!0,get:function(){return K.BATCH_JOB_ID_METADATA_KEY}}),Object.defineProperty(t,"X_STORIKA_ROOT_REQUEST_ID",{enumerable:!0,get:function(){return K.X_STORIKA_ROOT_REQUEST_ID}}),Object.defineProperty(t,"X_STORIKA_PARENT_CALL_ID",{enumerable:!0,get:function(){return K.X_STORIKA_PARENT_CALL_ID}}),Object.defineProperty(t,"X_STORIKA_PAGE_LOCATION",{enumerable:!0,get:function(){return K.X_STORIKA_PAGE_LOCATION}});var j=n(97359);Object.defineProperty(t,"GuidelineSource",{enumerable:!0,get:function(){return j.GuidelineSource}});var x=n(45543);Object.defineProperty(t,"CommunicationMode",{enumerable:!0,get:function(){return x.CommunicationMode}});var W=n(77799);Object.defineProperty(t,"FeedbackType",{enumerable:!0,get:function(){return W.FeedbackType}});var X=n(97341);Object.defineProperty(t,"CancelReason",{enumerable:!0,get:function(){return X.CancelReason}}),Object.defineProperty(t,"CANCEL_REASON_LABELS",{enumerable:!0,get:function(){return X.CANCEL_REASON_LABELS}});var q=n(40876);Object.defineProperty(t,"SalesInquiryTopic",{enumerable:!0,get:function(){return q.SalesInquiryTopic}});var Q=n(4070);Object.defineProperty(t,"NumberDisplayFormat",{enumerable:!0,get:function(){return Q.NumberDisplayFormat}});var z=n(97262);Object.defineProperty(t,"UserType",{enumerable:!0,get:function(){return z.UserType}});var Z=n(52773);Object.defineProperty(t,"Gender",{enumerable:!0,get:function(){return Z.Gender}}),Object.defineProperty(t,"AgeGroup",{enumerable:!0,get:function(){return Z.AgeGroup}}),Object.defineProperty(t,"Ethnicity",{enumerable:!0,get:function(){return Z.Ethnicity}}),Object.defineProperty(t,"AccountType",{enumerable:!0,get:function(){return Z.AccountType}}),Object.defineProperty(t,"GARMRiskLevel",{enumerable:!0,get:function(){return Z.GARMRiskLevel}}),Object.defineProperty(t,"GARMCategory",{enumerable:!0,get:function(){return Z.GARMCategory}}),Object.defineProperty(t,"CreatorArchetype",{enumerable:!0,get:function(){return Z.CreatorArchetype}}),Object.defineProperty(t,"Country",{enumerable:!0,get:function(){return Z.Country}}),Object.defineProperty(t,"Language",{enumerable:!0,get:function(){return Z.Language}});var $=n(94572);Object.defineProperty(t,"WorkflowSpotlightSection",{enumerable:!0,get:function(){return $.WorkflowSpotlightSection}});var J=n(60395);Object.defineProperty(t,"OrchestratorQuickAction",{enumerable:!0,get:function(){return J.OrchestratorQuickAction}});var ee=n(95190);Object.defineProperty(t,"CampaignFieldProvenance",{enumerable:!0,get:function(){return ee.CampaignFieldProvenance}});var et=n(66166);Object.defineProperty(t,"DiscoveryCriteriaProvenance",{enumerable:!0,get:function(){return et.DiscoveryCriteriaProvenance}}),Object.defineProperty(t,"DiscoveryEntryPoint",{enumerable:!0,get:function(){return et.DiscoveryEntryPoint}}),Object.defineProperty(t,"DiscoveryRunStatus",{enumerable:!0,get:function(){return et.DiscoveryRunStatus}}),Object.defineProperty(t,"DiscoveryRoundState",{enumerable:!0,get:function(){return et.DiscoveryRoundState}}),Object.defineProperty(t,"DiscoveryReviewState",{enumerable:!0,get:function(){return et.DiscoveryReviewState}}),Object.defineProperty(t,"DiscoveryHumanDecision",{enumerable:!0,get:function(){return et.DiscoveryHumanDecision}}),Object.defineProperty(t,"DiscoveryHumanAuthority",{enumerable:!0,get:function(){return et.DiscoveryHumanAuthority}}),Object.defineProperty(t,"DiscoveryRunNextAction",{enumerable:!0,get:function(){return et.DiscoveryRunNextAction}}),Object.defineProperty(t,"DiscoveryRunConflictCode",{enumerable:!0,get:function(){return et.DiscoveryRunConflictCode}}),Object.defineProperty(t,"DiscoveryFinalShortfallReason",{enumerable:!0,get:function(){return et.DiscoveryFinalShortfallReason}}),Object.defineProperty(t,"DISCOVERY_RUN_LEGAL_TRANSITIONS",{enumerable:!0,get:function(){return et.DISCOVERY_RUN_LEGAL_TRANSITIONS}}),Object.defineProperty(t,"DISCOVERY_ROUND_LEGAL_TRANSITIONS",{enumerable:!0,get:function(){return et.DISCOVERY_ROUND_LEGAL_TRANSITIONS}}),Object.defineProperty(t,"DISCOVERY_FOLLOWERS_BANDS",{enumerable:!0,get:function(){return et.DISCOVERY_FOLLOWERS_BANDS}}),Object.defineProperty(t,"DISCOVERY_ENGAGEMENT_BANDS",{enumerable:!0,get:function(){return et.DISCOVERY_ENGAGEMENT_BANDS}});var en=n(20299);Object.defineProperty(t,"DiscoveryExclusionReason",{enumerable:!0,get:function(){return en.DiscoveryExclusionReason}}),Object.defineProperty(t,"DISCOVERY_EXCLUSION_REASON_PRECEDENCE",{enumerable:!0,get:function(){return en.DISCOVERY_EXCLUSION_REASON_PRECEDENCE}});var er=n(12134);Object.defineProperty(t,"UNTITLED_CAMPAIGN_NAME",{enumerable:!0,get:function(){return er.UNTITLED_CAMPAIGN_NAME}}),Object.defineProperty(t,"PREFLIGHT_ORG_PLACEHOLDER_NAME",{enumerable:!0,get:function(){return er.PREFLIGHT_ORG_PLACEHOLDER_NAME}}),Object.defineProperty(t,"signupCardRequiredFor",{enumerable:!0,get:function(){return er.signupCardRequiredFor}})},50336:(e,t)=>
1{Object.defineProperty(t,"__esModule",{value:!0}),t.TRIGGER_BRAND_ENRICHMENT_TOOL_NAME=void 0,t.TRIGGER_BRAND_ENRICHMENT_TOOL_NAME="trigger_brand_enrichment"},50794:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DISCOVERY_GUIDE_FIELD_META=t.DiscoveryGuideEditError=void 0,t.createEmptyDiscoveryGuideStructure=_,t.matchDiscoveryGuideFieldLine=E,t.parseDiscoveryGuideStructure=c,t.getDiscoveryGuideField=function(e,t){return c(e)[t]},t.hasMarkdownStructuralRisk=T,t.extractGuideBodyFromSection=S,t.setDiscoveryGuideField=function(e,t,n,i){let o=u(e);R(o,i);let _=function(e,t,n){if(!a.has(t))return e;let i=(0,r.mergeCanonicalSections)((0,r.parseKnowledgeSections)(e),r.STRUCTURED_DISCOVERY_TITLES);return O(i,t,n),(0,r.serializeKnowledgeSections)((0,r.pruneEmptyCanonicalPlaceholdersFor)(i,r.STRUCTURED_DISCOVERY_TITLES))}(S(e),t,n);return I(e,o,_)},t.setDiscoveryGuideFields=function(e,t,n){if(0===t.length)return e;let i=u(e);R(i,n);let a=function(e,t){let n=(0,r.mergeCanonicalSections)((0,r.parseKnowledgeSections)(e),r.STRUCTURED_DISCOVERY_TITLES);for(let e of t)O(n,e.key,e.value);return(0,r.serializeKnowledgeSections)((0,r.pruneEmptyCanonicalPlaceholdersFor)(n,r.STRUCTURED_DISCOVERY_TITLES))}(S(e),t);return I(e,i,a)};let r=n(93902);class i extends Error{constructor(e){super(e),this.name="DiscoveryGuideEditError"}}t.DiscoveryGuideEditError=i,t.DISCOVERY_GUIDE_FIELD_META=[{key:"followersCount",label:"Followers count",phase:"quantitative",synonyms:["follower range","followers range","follower count","followers"]},{key:"averageEngagementRate",label:"Average engagement rate",phase:"quantitative",synonyms:["engagement rate","engagement target","engagement rate target"]},{key:"medianEngagementRate",label:"Median engagement rate",phase:"quantitative"},{key:"countriesAndMarkets",label:"Target countries",phase:"quantitative",synonyms:["target country","countries / markets","countries and markets","target countries / markets","countries/regions"]},{key:"creatorCategories",label:"Creator categories",phase:"quantitative",synonyms:["niche/category","niche / category","category","creator category","creator categories / archetypes","creator archetypes","niche"]},{key:"vibes",label:"Vibes / persona",phase:"qualitative",synonyms:["persona","vibe/persona","vibes/persona","aesthetic"]},{key:"feedMood",label:"Feed mood / visual style",phase:"qualitative",synonyms:["content style","feed mood","visual style","content mood","visual direction"]},{key:"representation",label:"Representation / age context",phase:"qualitative",synonyms:["age context","representation","target audience","targeting"]},{key:"brandFitNotes",label:"Brand-fit notes",phase:"qualitative",synonyms:["brand fit","brand fit notes"]},{key:"quantitativeExclusions",label:"Hard exclusions",phase:"qualitative",synonyms:["hard exclusion","hard exclusions"]},{key:"qualitativeExclusions",label:"Soft exclusions",phase:"qualitative",synonyms:["soft exclusion","soft exclusions"]},{key:"additionalNotes",label:"Additional notes",phase:"additional"}];let a=new Map(t.DISCOVERY_GUIDE_FIELD_META.map(e=>[e.key,e])),o=new Map(t.DISCOVERY_GUIDE_FIELD_META.flatMap(e=>{var t;let n=[[e.label.toLowerCase(),e.key]];for(let r of null!=(t=e.synonyms)?t:[])n.push([r,e.key]);return n}));function _(){return{followersCount:"",averageEngagementRate:"",medianEngagementRate:"",countriesAndMarkets:"",creatorCategories:"",quantitativeExclusions:"",vibes:"",feedMood:"",representation:"",brandFitNotes:"",qualitativeExclusions:"",additionalNotes:""}}function l(e){return e.replace(/^(?:[ \t]*\n)+/,"")}function E(e){var t;return null!=(t=function(e){let t=e.match(/^\s*-\s+\*\*([^*]+?)\s*:?\*\*:?\s*(.*)$/);if(!t)return null;let n=t[1].trim().replace(/:$/,"").toLowerCase(),r=o.get(n);return r?{key:r,value:t[2]}:null}(e))?t:function(e){let t=e.trim().replace(/^\s*(?:[-*]|\d+[.)])\s+/,"").replace(/^\*\*([^*]+?)(?:[:ï¼]\*\*|\*\*\s*[:ï¼])\s*/,"$1: ").match(/^([^:ï¼]{2,80})\s*[:ï¼]\s*(.*)$/);if(!t)return null;let n=t[1].trim().replace(/:$/,"").toLowerCase(),r=o.get(n);return r?{key:r,value:t[2]}:null}(e)}function c(e){let t=_(),n=[],i=!1,a=null;
1if(e.split("\n").forEach(e=>{let o=E(e);if(o){i=!0,t[o.key]=o.value,a=o.key;return}if(a&&/^\s{2}/.test(e)){t[a]=[t[a],e.replace(/^\s{2}/,"")].join("\n");return}a=null,!function(e){let t=e.trim().match(/^##[ \t]+(.+?)(?:[ \t]+#+)?[ \t]*$/);return!!t&&(0,r.isCanonicalSection)(t[1],r.STRUCTURED_DISCOVERY_TITLES)}(e)&&n.push(e)}),!i)return t.additionalNotes=l(n.join("\n")),t;let o=l(n.join("\n"));return o.trim().length>0&&!t.additionalNotes&&(t.additionalNotes=o),t}let s=new Set(r.DISCOVERY_GUIDE_SUBSECTION_TITLE_LIST.map(r.normalizeSectionTitle));function u(e){let t,n=/^[ \t]{0,3}(#{1,6})[ \t]+(.+?)(?:[ \t]+#+)?[ \t]*$/gm,i=-1,a=e.length;for(;t=n.exec(e);){let n=t[1].length,o=t[2],_=t.index,l=t.index+t[0].length;if(-1===i){3===n&&s.has((0,r.normalizeSectionTitle)(o))&&(i=l+("\r"===e[l]&&"\n"===e[l+1]?2:+("\n"===e[l]||"\r"===e[l])));continue}if(!(2===n&&(0,r.isCanonicalSection)(o,r.STRUCTURED_DISCOVERY_TITLES))){a=_;break}}return -1===i?null:{bodyStart:i,end:a}}let d=new RegExp("[".concat("\\r\\n\\u2028\\u2029","]")),A=/^\s*[#\-*+]/;function T(e){return d.test(e)||A.test(e)}function O(e,t,n){let o=a.get(t);if(!o)return;let _="quantitative"===o.phase?r.STRUCTURED_DISCOVERY_TITLES[0]:"qualitative"===o.phase?r.STRUCTURED_DISCOVERY_TITLES[1]:r.STRUCTURED_DISCOVERY_TITLES[2],l=e.findIndex(e=>(0,r.normalizeSectionTitle)(e.title)===(0,r.normalizeSectionTitle)(_)),c=e[l];if("additionalNotes"!==t){var s=o.label;if(T(n))throw new i('"'.concat(s,'" cannot contain a line break or start with markdown ')+"heading/bullet syntax (#, -, *, +) - this would be spliced into the guide's own document structure.");var u=o.label;if(e.some((e,n)=>n!==l&&e.content.split("\n").some(e=>{var n;return(null==(n=E(e))?void 0:n.key)===t})))throw new i('Duplicate "'.concat(u,'" bullet found in the guide - cannot edit it ')+"unambiguously. Remove the duplicate bullet before editing this field.")}let d="additionalNotes"===t?n.trim():function(e,t,n,r){let a=e.length>0?e.split("\n"):[],o=""===r,[_="",...l]=r.split("\n"),c=["- **".concat(n,":** ").concat(_),...l.map(e=>" ".concat(e))],s=-1,u=-1;for(let e=0;e<a.length;e+=1){let n=E(a[e]);if(n&&n.key===t){for(s=e,u=e+1;u<a.length&&/^\s{2}/.test(a[u]);)u+=1;break}}if(-1===s)return o?e:0===a.length?c.join("\n"):[...a,...c].join("\n");for(let e=u;e<a.length;e+=1){let r=E(a[e]);if(r&&r.key===t)throw new i('Duplicate "'.concat(n,'" bullet found in the guide - cannot edit it ')+"unambiguously. Remove the duplicate bullet before editing this field.")}return o?[...a.slice(0,s),...a.slice(u)].join("\n"):[...a.slice(0,s),...c,...a.slice(u)].join("\n")}(c.content,t,o.label,n);e[l]={...c,content:d}}function I(e,t,n){if(null===t){if(!n)return e;let t=e.replace(/\s+$/,"");return"".concat(t).concat(t?"\n\n":"","### ").concat(r.CREATOR_DISCOVERY_GUIDE_TITLE,"\n").concat(n)}let i=t.end<e.length&&n?"\n\n":"";return e.slice(0,t.bodyStart)+n+i+e.slice(t.end)}function S(e){let t=u(e);return null===t?"":e.slice(t.bodyStart,t.end)}function R(e,t){if(null===e&&(null==t?void 0:t.hasAdjacentReservedSection))throw new i('Cannot create a new Creator Discovery Guide here: the document carries a standalone "Phase 1"/"Phase 2"/"Additional notes"-titled section immediately after Creator Discovery that is not part of any guide. Creating a guide here would misattribute that section as guide content on the next read. Remove or rename the standalone section first (STORIKA-7648).')}},51092:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.AVATAR_OBJECT_PATH_PATTERN=t.USER_AVATAR_ALLOWED_MIME_TYPES=t.USER_AVATAR_MAX_BYTES=t.ProfileConflictCode=void 0,(n||(t.ProfileConflictCode=n={})).PROFILE_STALE="profile_stale",t.USER_AVATAR_MAX_BYTES=5242880,t.USER_AVATAR_ALLOWED_MIME_TYPES=["image/png","image/jpeg","image/webp"],t.AVATAR_OBJECT_PATH_PATTERN=/^user_avatars\/org_(\d+)\/([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})\.(png|jpe?g|webp)$/i},52773:(e,t)=>{var n,r,i,a,o,_,l,E,c;Object.defineProperty(t,"__esModule",{value:!0}),t.Language=t.Country=t.CreatorArchetype=t.GARMCategory=t.GARMRiskLevel=t.AccountType=t.Ethnicity=t.AgeGroup=t.Gender=void 0,function(e){e.MALE="male",e.FEMALE="female",e.UNKNOWN="unknown"}(n||(t.Gender=n={})),function(e){e.UNDER_18="under_18",e.AGE_18_24="18-24",e.AGE_25_34="25-34",e.AGE_35_44="35-44",e.AGE_45_54="45-54",e.AGE_55_64="55-64",e.AGE_65_PLUS="65+",e.NOT_AVAILABLE="N/A"}(r||(t.AgeGroup=r={})),function(e){e.EAST_ASIAN="east_asian",e.SOUTHEAST_ASIAN="southeast_asian",e.SOUTH_ASIAN="south_asian",e.CENTRAL_ASIAN="central_asian",e.BLACK="black",e.HISPANIC_LATINO="hispanic_latino",e.NATIVE_INDIGENOUS="native_indigenous",e.PACIFIC_ISLANDER="pacific_islander",e.MIDDLE_EASTERN="middle_eastern",e.MIXED_MULTIRACIAL="mixed_multiracial",e.WHITE="white",e.OTHER="other",e.NOT_AVAILABLE="N/A"}(i||(t.Ethnicity=i={})),function(e){e.PERSONAL="personal",e.CREATOR="creator",e.PUBLIC_FIGURE="public_figure",e.BUSINESS="business",e.ORGANIZATION="organization",e.MEDIA="media",e.COMMUNITY="community",e.AI_ACCOUNT="ai_account",e.BOT_SPAM="bot/spam",e.OTHER="other"}(a||(t.AccountType=a={})),function(e){e.NO_RISK="no_risk",e.LOW="low",e.MEDIUM="medium",e.HIGH="high",e.FLOOR="floor"}(o||(t.GARMRiskLevel=o={})),function(e){e.NO_RISK="No Risk",e.ADULT_EXPLICIT_SEXUAL_CONTENT="Adult & Explicit Sexual Content",e.ARMS_AMMUNITION="Arms & Ammunition",e.CRIME_HARMFUL_ACTS="Crime & Harmful Acts / Human Rights Violations",e.DEATH_INJURY_MILITARY_CONFLICT="Death, Injury & Military Conflict",e.ONLINE_PIRACY="Online Piracy",e.HATE_SPEECH_AGGRESSION="Hate Speech & Acts of Aggression",e.OBSCENITY_PROFANITY="Obscenity and Profanity (Excessive/Shocking)",e.ILLEGAL_DRUGS_TOBACCO_ALCOHOL="Illegal Drugs/Tobacco/eCigarettes/Vaping/Alcohol (Illegal Promotion)",e.SPAM_HARMFUL_CONTENT="Spam or Harmful Content",e.TERRORISM="Terrorism",e.DEBATED_SENSITIVE_SOCIAL_ISSUES="Debated Sensitive Social Issues (Harmful Treatment)",e.MISINFORMATION_HARMFUL="Misinformation (Harmful)"}(_||(t.GARMCategory=_={})),function(e){e.BEAUTY_EDUCATOR="beauty_educator",e.BEAUTY_REVIEWER="beauty_reviewer",e.BEAUTY_ARTIST="beauty_artist",e.SKINCARE_SPECIALIST="skincare_specialist",e.FASHION_CURATOR="fashion_curator",e.FASHION_REVIEWER="fashion_reviewer",e.LUXURY_FASHION="luxury_fashion",e.STREETWEAR_HYPEBEAST="streetwear_hypebeast",e.FOOD_REVIEWER="food_reviewer",e.RECIPE_CREATOR="recipe_creator",e.MUKBANG_ASMR="mukbang_asmr",e.CAFE_FOOD_AESTHETIC="cafe_food_aesthetic",e.FITNESS_COACH="fitness_coach",e.YOGA_WELLNESS="yoga_wellness",e.FITNESS_TRANSFORMATION="fitness_transformation",e.TECH_REVIEWER="tech_reviewer",e.TECH_EDUCATOR="tech_educator",e.GAMING_C
1REATOR="gaming_creator",e.LIFESTYLE_VLOGGER="lifestyle_vlogger",e.MINIMALIST_AESTHETIC="minimalist_aesthetic",e.LUXURY_LIFESTYLE="luxury_lifestyle",e.COMEDY_CREATOR="comedy_creator",e.DANCE_PERFORMER="dance_performer",e.MUSIC_ARTIST="music_artist",e.VARIETY_ENTERTAINER="variety_entertainer",e.BUSINESS_EDUCATOR="business_educator",e.FINANCE_CREATOR="finance_creator",e.CAREER_COACH="career_coach",e.PARENT_FAMILY="parent_family",e.PET_CREATOR="pet_creator",e.TRAVEL_VLOGGER="travel_vlogger",e.TRAVEL_PHOTOGRAPHER="travel_photographer",e.ARTIST_ILLUSTRATOR="artist_illustrator",e.PHOTOGRAPHER="photographer",e.DESIGNER_CREATIVE="designer_creative",e.HOME_DECOR="home_decor",e.DIY_CRAFTER="diy_crafter",e.AUTOMOTIVE_ENTHUSIAST="automotive_enthusiast",e.BOOK_CREATOR="book_creator",e.KPOP_FANDOM="kpop_fandom",e.BRAND_ACCOUNT="brand_account",e.MULTI_NICHE="multi_niche",e.UNKNOWN="unknown"}(l||(t.CreatorArchetype=l={})),function(e){e.CN="CN",e.IN="IN",e.US="US",e.ID="ID",e.PK="PK",e.NG="NG",e.BR="BR",e.BD="BD",e.RU="RU",e.MX="MX",e.ET="ET",e.JP="JP",e.PH="PH",e.EG="EG",e.CD="CD",e.VN="VN",e.IR="IR",e.TR="TR",e.DE="DE",e.TH="TH",e.GB="GB",e.FR="FR",e.TZ="TZ",e.ZA="ZA",e.IT="IT",e.KE="KE",e.MM="MM",e.CO="CO",e.KR="KR",e.ES="ES",e.UG="UG",e.AR="AR",e.DZ="DZ",e.SD="SD",e.IQ="IQ",e.UA="UA",e.CA="CA",e.PL="PL",e.MA="MA",e.SA="SA",e.UZ="UZ",e.PE="PE",e.MY="MY",e.AO="AO",e.GH="GH",e.MZ="MZ",e.NP="NP",e.YE="YE",e.VE="VE",e.AU="AU",e.SE="SE",e.OTHER="other",e.NOT_AVAILABLE="N/A"}(E||(t.Country=E={})),function(e){e.EN="en",e.ZH="zh",e.HI="hi",e.ES="es",e.FR="fr",e.AR="ar",e.BN="bn",e.PT="pt",e.RU="ru",e.JA="ja",e.DE="de",e.KO="ko",e.VI="vi",e.TR="tr",e.IT="it",e.TH="th",e.ID="id",e.PL="pl",e.UK="uk",e.UR="ur",e.FA="fa",e.SW="sw",e.AM="am",e.MY="my",e.MS="ms",e.TL="tl",e.NE="ne",e.NL="nl",e.HA="ha",e.YO="yo",e.SV="sv",e.OTHER="other",e.NA="N/A"}(c||(t.Language=c={}))},53016:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ORGANIZATION_LOGO_MAX_BYTES=t.ORGANIZATION_LOGO_ALLOWED_MIME_TYPES=void 0,t.ORGANIZATION_LOGO_ALLOWED_MIME_TYPES=["image/png","image/jpeg","image/webp"],t.ORGANIZATION_LOGO_MAX_BYTES=2097152},54024:(e,t)=>{var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.PostType=t.MediaType=void 0,function(e){e.IMAGE="image",e.VIDEO="video"}(n||(t.MediaType=n={})),function(e){e.IMAGE="image",e.VIDEO="video",e.REELS="reels",e.CAROUSEL="carousel"}(r||(t.PostType=r={}))},54576:(e,t)=>{var n,r,i,a;Object.defineProperty(t,"__esModule",{value:!0}),t.ResponseSentiment=t.FunnelPhase=t.DeclinedBy=t.FUNNEL_STATUS_RANK=t.FunnelStatus=void 0,function(e){e.OUTREACH_SENT="outreach_sent",e.RESPONDED="responded",e.INFO_COLLECTED="info_collected",e.CEA_RECEIVED="cea_received",e.CEA_SIGNED="cea_signed",e.ITEM_SENT="item_sent",e.DELIVERED="delivered",e.COMPLETED="completed",e.UPLOADED="uploaded",e.MODERATED="moderated",e.OUTBOUND_FAILED="outbound_failed",e.DECLINED="declined"}(n||(t.FunnelStatus=n={})),t.FUNNEL_STATUS_RANK={[n.OUTREACH_SENT]:0,[n.OUTBOUND_FAILED]:0,[n.RESPONDED]:1,[n.INFO_COLLECTED]:2,[n.CEA_RECEIVED]:3,[n.CEA_SIGNED]:4,[n.ITEM_SENT]:5,[n.DELIVERED]:6,[n.COMPLETED]:6,[n.UPLOADED]:7,[n.MODERATED]:8,[n.DECLINED]:-1},function(e){e.CREATOR="creator",e.BRAND="brand",e.SYSTEM="system",e.OPERATOR="operator"}(r||(t.DeclinedBy=r={})),function(e){e.OUTREACH="outreach",e.COLLECTED="collected",e.DELIVERABLES="deliverables"}(i||(t.FunnelPhase=i={})),function(e){e.ACCEPTED="accepted",e.INTERESTED="interested",e.REJECTED="rejected",e.UNDECIDED="undecided",e.PAYMENT_ASKED="payment_asked"}(a||(t.ResponseSentiment=a={}))},54671:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ResourceErrorCode=void 0,function(e){e.CAMPAIGN_NOT_FOUND="CAMPAIGN_NOT_FOUND",e.BRAND_NOT_FOUND="BRAND_NOT_FOUND",e.CAMPAIGN_RESULT_NOT_FOUND="CAMPAIGN_RESULT_NOT_FOUND",e.ORGANIZATION_NOT_FOUND="ORGANIZATION_NOT_FOUND",e.MEMBER_NOT_FOUND="MEMBER_NOT_FOUND",e.USER_NOT_FOUND="USER_NOT_FOUND",e.GMAIL_SETTINGS_NOT_FOUND="GMAIL_SETTINGS_NOT_FOUND",e.PRODUCT_INFO_NOT_FOUND="PRODUCT_INFO_NOT_FOUND",e.POST_NOT_FOUND="POST_NOT_FOUND",e.TEMPLATE_NOT_FOUND="TEMPLATE_NOT_FOUND",e.PROPOSAL_NOT_FOUND="PROPOSAL_NOT_FOUND",e.AGENT_JOB_NOT_FOUND="AGENT_JOB_NOT_FOUND",e.DISCOVERY_CONFIRMATION_NOT_FOUND="DISCOVERY_CONFIRMATION_NOT_FOUND",e.DISCOVERY_RUN_NOT_FOUND="DISCOVERY_RUN_NOT_FOUND",e.DISCOVERY_ROUND_NOT_FOUND="DISCOVERY_ROUND_NOT_FOUND",e.DISCOVERY_REVIEW_NOT_FOUND="DISCOVERY_REVIEW_NOT_FOUND",e.DISCOVERY_EXCLUSION_NOT_FOUND="DISCOVERY_EXCLUSION_NOT_FOUND",e.EMAIL_MESSAGE_NOT_FOUND="EMAIL_MESSAGE_NOT_FOUND",e.ATTACHMENT_NOT_FOUND="ATTACHMENT_NOT_FOUND",e.SENDER_ACCOUNT_NOT_FOUND="SENDER_ACCOUNT_NOT_FOUND",e.SENDING_DOMAIN_NOT_FOUND="SENDING_DOMAIN_NOT_FOUND",e.ROUTING_RULE_NOT_FOUND="ROUTING_RULE_NOT_FOUND",e.SHIPPING_INFO_NOT_FOUND="SHIPPING_INFO_NOT_FOUND",e.INVITATION_NOT_FOUND="INVITATION_NOT_FOUND",e.SUPPRESSION_NOT_FOUND="SUPPRESSION_NOT_FOUND",e.CREATOR_PROFILE_NOT_FOUND="CREATOR_PROFILE_NOT_FOUND",e.APPROVAL_REQUEST_NOT_FOUND="APPROVAL_REQUEST_NOT_FOUND",e.BRAND_EXTRACTION_JOB_NOT_FOUND="BRAND_EXTRACTION_JOB_NOT_FOUND",e.DRAFT_NOT_FOUND="DRAFT_NOT_FOUND",e.RESOURCE_NOT_FOUND="RESOURCE_NOT_FOUND",e.NO_ORGANIZATION_MEMBERSHIP="NO_ORGANIZATION_MEMBERSHIP",e.ORG_INACTIVE="ORG_INACTIVE",e.ORG_NOT_A_MEMBER="ORG_NOT_A_MEMBER",e.RESOURCE_FORBIDDEN="RESOURCE_FORBIDDEN"}(n||(t.ResourceErrorCode=n={}))},55836:(e,t)=>{var n;
1Object.defineProperty(t,"__esModule",{value:!0}),t.CAMPAIGN_DOC_GROUPS=t.CampaignContentGroup=void 0,function(e){e.BRAND_PROFILE="brand_profile",e.CAMPAIGN_SETUP="campaign_setup",e.CREATOR_BRIEF="creator_brief",e.AGENT_PLAYBOOK="agent_playbook"}(n||(t.CampaignContentGroup=n={})),t.CAMPAIGN_DOC_GROUPS=[n.CAMPAIGN_SETUP,n.CREATOR_BRIEF,n.AGENT_PLAYBOOK]},58399:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ORG_ID_HEADER=void 0,t.ORG_ID_HEADER="x-org-id"},59251:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.BrandApprovalSource=void 0,function(e){e.VIA_REPLY="via_reply",e.MARKED_MANUALLY="marked_manually",e.VIA_CREATOR_CONFIRM="via_creator_confirm"}(n||(t.BrandApprovalSource=n={}))},59961:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.AddressValidationStatus=void 0,function(e){e.VALID="valid",e.INVALID="invalid",e.MANUALLY_CONFIRMED="manually_confirmed"}(n||(t.AddressValidationStatus=n={}))},60395:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.OrchestratorQuickAction=void 0,function(e){e.DISCOVERY_REVIEW_ONE_BY_ONE="discovery_review_one_by_one",e.DISCOVERY_APPROVE_ALL="discovery_approve_all",e.DISCOVERY_WIDEN_POOL="discovery_widen_pool",e.ENROLL_CREATORS="enroll_creators"}(n||(t.OrchestratorQuickAction=n={}))},60442:(e,t)=>{var n,r,i;Object.defineProperty(t,"__esModule",{value:!0}),t.COMPLIANCE_SIGNAL_EXAMPLE=t.ComplianceRubricStatus=t.ComplianceGuidelineClass=t.ComplianceVerdict=void 0,function(e){e.PASS="pass",e.FAIL="fail",e.UNCLEAR="unclear",e.NOT_APPLICABLE="not_applicable"}(n||(t.ComplianceVerdict=n={})),function(e){e.DISCLOSURE="disclosure",e.RISK_CLAIM="risk_claim",e.RESTRICTED_CONTENT="restricted_content"}(r||(t.ComplianceGuidelineClass=r={})),function(e){e.DRAFT="draft",e.FROZEN="frozen"}(i||(t.ComplianceRubricStatus=i={})),t.COMPLIANCE_SIGNAL_EXAMPLE={overallVerdict:n.FAIL,guidelineCount:3,failCount:1,unclearCount:1,checkedAt:"2026-05-30T12:00:00.000Z",status:"ok",model:"gemini-3.1-flash",rubricVersion:2,analysisId:1234,visualAdherenceVerdict:n.PASS}},60591:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DraftConflictCode=t.DRAFT_EXPECTED_UPDATED_AT_HEADER=void 0,t.DRAFT_EXPECTED_UPDATED_AT_HEADER="x-draft-expected-updated-at",function(e){e.DRAFT_STALE="draft_stale",e.DRAFT_ORG_MISMATCH="draft_org_mismatch"}(n||(t.DraftConflictCode=n={}))},61708:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DISCOVERY_REVIEW_FIXED_CATEGORY_SIGNALS=t.DISCOVERY_REVIEW_FIXED_CATEGORIES=void 0,t.DISCOVERY_REVIEW_FIXED_CATEGORIES=[{label:"Engagement Rate",feature:"engagementBand"},{label:"Category Fit",feature:"targetCategories"},{label:"Follower Count",feature:"followersBand"},{label:"Content Fit",feature:"targetAesthetic"},{label:"Location",feature:"countries"},{label:"Brand Safety",feature:null},{label:"Past Collaboration",feature:null}],t.DISCOVERY_REVIEW_FIXED_CATEGORY_SIGNALS=t.DISCOVERY_REVIEW_FIXED_CATEGORIES.map(e=>{let{label:t,feature:n}=e;return{label:t,...n?{canonicalKey:n}:{}}})},61762:(e,t)=>{var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.FulfillmentShipmentType=t.TrackEventStatusCode=void 0,function(e){e.UNKNOWN="UNKNOWN",e.INFORMATION_RECEIVED="INFORMATION_RECEIVED",e.AT_PICKUP="AT_PICKUP",e.IN_TRANSIT="IN_TRANSIT",e.OUT_FOR_DELIVERY="OUT_FOR_DELIVERY",e.ATTEMPT_FAIL="ATTEMPT_FAIL",e.DELIVERED="DELIVERED",e.AVAILABLE_FOR_PICKUP="AVAILABLE_FOR_PICKUP",e.EXCEPTION="EXCEPTION",e.SENT="SENT",e.RETURNED="RETURNED"}(n||(t.TrackEventStatusCode=n={})),function(e){e.STANDARD="STANDARD",e.RE_SEND="RE_SEND",e.REPLACEMENT="REPLACEMENT",e.VOUCHER="VOUCHER",e.MANUAL="MANUAL"}(r||(t.FulfillmentShipmentType=r={}))},64713:(e,t)=>{function n(e){switch(e){case"ok":case"capped":return"completed";case"refused":return"refused";case"failed":return"failed"}}function r(e){return"Not done: ".concat(e.not_done,". Why: ").concat(e.why,". To unblock: ").concat(e.unblock,".")}function i(e,t){if("failed"===e.status)return"".concat(t," Nothing further happened.");let n=t;return"converged"===e.recommendation?n+=" Ready to present.":"continue"===e.recommendation&&(n+=" Keep looking."),e.feedback&&e.feedback.length>0&&(n+=" Suggested changes: ".concat(e.feedback.join("; "))),n}
1Object.defineProperty(t,"__esModule",{value:!0}),t.OPERATION_RECEIPT_FORMATTED_FIELDS=t.ZERO_OPERATION_RECEIPT_COUNTS=void 0,t.dispositionForReceiptStatus=n,t.buildOperationReceipt=function(e){var r,i,a,o,_;let l={status:e.status,verdict:e.verdict,counts:null!=(r=e.counts)?r:{...t.ZERO_OPERATION_RECEIPT_COUNTS},ledger_ref:null!=(i=e.ledger_ref)?i:null,read_trigger:null!=(a=e.read_trigger)?a:"",next_action:null!=(o=e.next_action)?o:null,disposition:null!=(_=e.disposition)?_:n(e.status)};return e.refusal&&(l.refusal=e.refusal),void 0!==e.file_ref&&(l.file_ref=e.file_ref),e.feedback&&e.feedback.length>0&&(l.feedback=e.feedback),e.recommendation&&(l.recommendation=e.recommendation),e.changed_fields&&e.changed_fields.length>0&&(l.changed_fields=e.changed_fields),l},t.formatOperationReceiptLine=function(e){if("refused"===e.status&&e.refusal)return r(e.refusal);let t=e.counts,n="(candidates ".concat(t.candidates,", kept ").concat(t.kept,", dropped ").concat(t.dropped,", reviewers ").concat(t.reviewers,", pass ").concat(t.iteration,")");return i(e,"".concat(e.verdict," ").concat(n))},t.formatOperationReceiptOutcome=function(e){return"refused"===e.status&&e.refusal?r(e.refusal):i(e,l(e.verdict))},t.humanGateReceiptVerdict=o,t.plainReceiptVerdict=l,t.stripLegacyReceiptTally=function(e){let t=E.exec(e);if(!t)return e;let n=e.slice(0,t.index).trimEnd();if(!n)return e;let r=e.slice(t.index+t[0].length).trimStart(),i=l(n);return r?"".concat(i," ").concat(r):i},t.ZERO_OPERATION_RECEIPT_COUNTS={candidates:0,kept:0,dropped:0,reviewers:0,iteration:0};let a={outreach:"first outreach",contract:"agreement",payout:"payment"};function o(e,t){var n;let r=null!=(n=a[e])?n:e;switch(t){case"pending":return"Review the ".concat(r," before it can go ahead.");case"approved":return"We saved your approval. We haven't confirmed the ".concat(r," went through yet.");case"declined":return"We saved your decision, so no action was taken on the ".concat(r,".");case"unconfirmed":return"We saved your approval, but could not confirm the ".concat(r,".")}}let _=[[/^(\w+) declined; no execution authorized\.$/,"declined"],[/^Review (\w+) before execution\.$/,"pending"],[/^(\w+) approval recorded; execution is not confirmed\.$/,"approved"],[RegExp("^(\\w+) approval recorded; execution is not confirmed\\. (.+)$","s"),"unconfirmed"]];function l(e){for(let[t,n]of _){let r=t.exec(e);if(!r)continue;let i=o(r[1],n);return r[2]?"".concat(i," ").concat(r[2]):i}return e.charAt(0).toUpperCase()+e.slice(1)}let E=/\s*\(candidates \d+, kept \d+, dropped \d+, reviewers \d+, pass \d+\)\s*/;t.OPERATION_RECEIPT_FORMATTED_FIELDS=["status","verdict","counts","disposition"]},65054:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.asRecord=function(e){return"object"!=typeof e||null===e||Array.isArray(e)?null:e}},65545:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ShippingInfoSource=void 0,function(e){e.MANUAL="manual",e.AGENT="agent",e.CREATOR_PORTAL="creator_portal",e.SHEETS="sheets"}(n||(t.ShippingInfoSource=n={}))},65963:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DISCOVERY_UNNAMED_VALUE=t.DISCOVERY_BIO_KEYWORD_MAX_LEN=t.DISCOVERY_BIO_KEYWORD_MIN_LEN=t.DISCOVERY_BIO_KEYWORD_MAX_COUNT=t.DISCOVERY_INTENT_MAX_LEN=t.DISCOVERY_CONFIRMATION_MISS_REASONS=t.DISCOVERY_CRITERIA_SCHEMA_VERSION=void 0,t.withDiscoveryCriteriaProvenance=function(e,t){return Object.fromEntries(Object.entries(e).map(e=>{let[n,r]=e;return[n,{value:r,provenance:t}]}))},t.hasDiscoveryCategoryShape=function(e){return e.length>0&&e.length<=80&&/^[A-Za-z0-9 &/+.'-]+$/.test(e)},t.isCriteriaMap=l,t.malformedCriteriaKeys=function(e){return _(e).filter(e=>{let[,t]=e;return!o(t)}).map(e=>{let[t]=e;return t})},t.nonExplicitHardCriteriaKeys=E,t.nonHumanHardCriteriaKeys=function(e){return _(e).filter(e=>{let[,t]=e;if(!o(t))return!0;let n=t.provenance;return n!==r.DiscoveryCriteriaProvenance.USER_EXPLICIT&&n!==r.DiscoveryCriteriaProvenance.USER_CONFIRMED}).map(e=>{let[t]=e;return t})},t.missingDiscoveryColdStartCriteria=function(e){return null===(0,i.asRecord)(e)?[...c]:c.filter(t=>!s(e[t]))},t.missingUserExplicitDiscoveryColdStartCriteria=u,t.isUserExplicitDiscoveryColdStartCriteria=function(e){return 0===u(e).length&&0===E(e).length},t.isDiscoveryColdStartPlan=function(e){return null===e.seedSourceRunId||null===(0,i.asRecord)(e.seedHardCriteria)||0===Object.keys(e.seedHardCriteria).length},t.safeDiscoveryValueEcho=O,t.hasDiscoveryWordCharacter=I,t.safeDiscoveryValueName=function(e){let n=O(e,80);return I(n)?n:t.DISCOVERY_UNNAMED_VALUE},t.safeDiscoveryKeyName=function(e){let t=O(e,40);return I(t)?t:"another filter"},t.normalizeDiscoveryBioKeywords=function(e){let n=[],r=[],i=new Set;for(let[a,o]of e.entries()){let e=o.trim().toLowerCase();if(e.length<t.DISCOVERY_BIO_KEYWORD_MIN_LEN||e.length>t.DISCOVERY_BIO_KEYWORD_MAX_LEN||!d.test(e)){r.push(S(e,a));continue}
1if(!i.has(e)){if(n.length>=t.DISCOVERY_BIO_KEYWORD_MAX_COUNT){r.push(S(e,a));continue}i.add(e),n.push(e)}}return{keywords:n,rejected:r}};let r=n(66166),i=n(65054);t.DISCOVERY_CRITERIA_SCHEMA_VERSION=2,t.DISCOVERY_CONFIRMATION_MISS_REASONS=["spent","superseded","unknown"];let a=Object.values(r.DiscoveryCriteriaProvenance);function o(e){if(null===(0,i.asRecord)(e)||!Object.prototype.hasOwnProperty.call(e,"value"))return!1;let t=e.provenance;return"string"==typeof t&&a.includes(t)}function _(e){return l(e)?Object.entries(e):[]}function l(e){return null!==(0,i.asRecord)(e)}function E(e){return _(e).filter(e=>{let[,t]=e;return!o(t)||t.provenance!==r.DiscoveryCriteriaProvenance.USER_EXPLICIT}).map(e=>{let[t]=e;return t})}let c=["targetCategories","countries"];function s(e){let t=null!==(0,i.asRecord)(e)&&Object.prototype.hasOwnProperty.call(e,"value")?e.value:e;return Array.isArray(t)&&t.some(e=>"string"==typeof e&&e.trim().length>0)}function u(e){return null===(0,i.asRecord)(e)?[...c]:c.filter(t=>{let n=e[t];return!o(n)||n.provenance!==r.DiscoveryCriteriaProvenance.USER_EXPLICIT||!s(n)})}t.DISCOVERY_INTENT_MAX_LEN=500,t.DISCOVERY_BIO_KEYWORD_MAX_COUNT=10,t.DISCOVERY_BIO_KEYWORD_MIN_LEN=2,t.DISCOVERY_BIO_KEYWORD_MAX_LEN=40;let d=RegExp("[\\p{L}\\p{N}]","u"),A=RegExp("(?:[^\\p{L}\\p{N}\\p{M} &'-]|\\p{Default_Ignorable_Code_Point})+","gu"),T=RegExp("^[^\\p{L}\\p{N}]+","u");function O(e,t){let n="";for(let r of e.replace(A," ").replace(/ +/gu," ").replace(T,"")){if(n.length+r.length>t)break;n+=r}return n.trim().replace(/\s+/gu," ")}function I(e){return d.test(e)}function S(e,n){let r=O(e,t.DISCOVERY_BIO_KEYWORD_MAX_LEN),i="entry ".concat(n+1);return r.length>0?"".concat(i," (").concat(r,")"):i}t.DISCOVERY_UNNAMED_VALUE="a value with no letters or digits"},66166:(e,t)=>{var n,r,i,a,o,_,l,E,c,s;Object.defineProperty(t,"__esModule",{value:!0}),t.DISCOVERY_ENGAGEMENT_BANDS=t.DISCOVERY_FOLLOWERS_BANDS=t.DISCOVERY_ROUND_LEGAL_TRANSITIONS=t.DISCOVERY_RUN_LEGAL_TRANSITIONS=t.DiscoveryRunConflictCode=t.DiscoveryFinalShortfallReason=t.DiscoveryRunNextAction=t.DiscoveryHumanAuthority=t.DiscoveryHumanDecision=t.DiscoveryReviewState=t.DiscoveryRoundState=t.DiscoveryRunStatus=t.DiscoveryCriteriaProvenance=t.DiscoveryEntryPoint=void 0,function(e){e.DISCOVERY_TAB="discovery_tab",e.ORCHESTRATOR_CHAT="orchestrator_chat",e.LEGACY_MIGRATION="legacy_migration",e.MCP="mcp"}(n||(t.DiscoveryEntryPoint=n={})),function(e){e.USER_EXPLICIT="user_explicit",e.USER_CONFIRMED="user_confirmed",e.AI_INFERRED="ai_inferred"}(r||(t.DiscoveryCriteriaProvenance=r={})),function(e){e.SEARCHING="searching",e.AWAITING_FEEDBACK="awaiting_feedback",e.RESULTS_SHOWN="results_shown",e.AWAITING_FINAL_APPROVAL="awaiting_final_approval",e.APPROVED="approved",e.CANCELED="canceled",e.FAILED="failed"}(i||(t.DiscoveryRunStatus=i={})),function(e){e.SEARCHING="searching",e.AWAITING_REVIEW="awaiting_review",e.FEEDBACK_APPLIED="feedback_applied",e.FAILED="failed"}(a||(t.DiscoveryRoundState=a={})),function(e){e.DRAFT="draft",e.SUBMITTED="submitted"}(o||(t.DiscoveryReviewState=o={})),function(e){e.UNDECIDED="undecided",e.GO="go",e.NO_GO="no_go",e.SKIPPED="skipped"}(_||(t.DiscoveryHumanDecision=_={})),function(e){e.CAMPAIGN_USER="campaign_user",e.STAFF_OPERATOR="staff_operator"}(l||(t.DiscoveryHumanAuthority=l={})),function(e){e.CREATE_ROUND="create_round",e.RETRY_ROUND="retry_round",e.APPLY_FEEDBACK="apply_feedback",e.FINISH_RUN="finish_run",e.FINAL_APPROVE="final_approve",e.ADD_CREATORS_FROM_RESULTS="add_creators_from_results",e.REFINE_RESULTS="refine_results"}(E||(t.DiscoveryRunNextAction=E={})),function(e){e.ELIGIBLE_POOL_EXHAUSTED="eligible_pool_exhausted",e.LEARNED_GATE_FILTERED="learned_gate_filtered"}(c||(t.DiscoveryFinalShortfallReason=c={})),function(e){e.ILLEGAL_TRANSITION="illegal_discovery_transition",e.RUN_TERMINAL="discovery_run_terminal",e.ROUND_NOT_SEARCHING="discovery_round_not_searching",e.ROUND_NOT_FAILED="discovery_round_not_failed",e.ROUND_ACTIVE="discovery_round_active",e.RETRY_REQUIRED="discovery_retry_required",e.MAX_SUCCESSFUL_ROUNDS="discovery_max_successful_rounds_reached",e.STALE_EDITOR_VERSION="stale_discovery_editor_version",e.STALE_EDITOR_LEASE="stale_discovery_editor_lease",e.STALE_REVIEW_REVISION="stale_discovery_review_revision",e.REVIEW_IMMUTABLE="discovery_review_immutable",e.REVIEW_NOT_FOUND="discovery_review_not_found",e.CROSS_RUN_REVIEW="cross_run_discovery_review",e.INCOMPLETE_FEEDBACK="incomplete_discovery_feedback",e.SAMPLE_DRIFT="discovery_sample_drift",e.APPLY_REPLAY_MISMATCH="discovery_apply_replay_mismatch",e.STALE_SEARCH_CALLBACK="stale_discovery_search_callback",e.FINAL_RESULT_NOT_FROZEN="discovery_final_result_not_frozen",e.FINAL_RESULT_ALREADY_FROZEN="discovery_final_result_already_frozen",e.FINAL_SELECTION_UNKNOWN_CANDIDATE="discovery_final_selection_unknown_candidate",e.RUN_NOT_AWAITING_FINAL_APPROVAL="discovery_run_not_awaiting_final_approval",e.RUN_NOT_RESULTS_SHOWN="discovery_run_not_results_shown",e.ROUND_ALL_SKIPPED="discovery_round_all_skipped",e.ROUND_DECISION_FLOOR="discovery_round_decision_floor",e.NO_APPLIED_ROUNDS="discovery_no_applied_rounds"}(s||(t.DiscoveryRunConflictCode=s={})),t.DISCOVERY_RUN_LEGAL_TRANSITIONS={[i.SEARCHING]:[i.AWAITING_FEEDBACK,i.RESULTS_SHOWN,i.AWAITING_FINAL_APPROVAL,i.FAILED,i.CANCELED],[i.RESULTS_SHOWN]:[i.AWAITING_FEEDBACK,i.AWAITING_FINAL_APPROVAL,i.CANCELED],[i.AWAITING_FEEDBACK]:[i.SEARCHING,i.RESULTS_SHOWN,i.AWAITING_FINAL_APPROVAL,i.CANCELED],[i.AWAITING_FINAL_APPROVAL]:[i.APPROVED,i.CANCELED],[i.APPROVED]:[],[i.CANCELED]:[],[i.FAILED]:[i.SEARCHING,i.AWAITING_FINAL_APPROVAL,i.CANCELED]},t.DISCOVERY_ROUND_LEGAL_TRANSITIONS={[a.SEARCHING]:[a.AWAITING_REVIEW,a.FAILED],[a.AWAITING_REVIEW]:[a.FEEDBACK_APPLIED],[a.FEEDBACK_APPLIED]:[],[a.FAILED]:[a.SEARCHING]},t.DISCOVERY_FOLLOWERS_BANDS=[["nano",1e4],["micro",1e5],["mid",5e5],["macro",1e6],["mega",1/0]],t.DISCOVERY_ENGAGEMENT_BANDS=[["low",.01],["average",.05],["high",1]]},66733:(e,t)=>
1{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceSection=void 0,function(e){e.CREATORS="creators",e.SETUP="setup",e.DISCOVERY="discovery",e.COMMUNICATION="communication",e.SHIPPING="shipping",e.CONTENT="content",e.PAYMENT="payment"}(n||(t.WorkspaceSection=n={}))},69072:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AUTOPILOT_ONBOARDING_MAX_ATTEMPT_COUNT=t.AUTOPILOT_ONBOARDING_MAX_ELAPSED_MS=void 0,n(73590),t.AUTOPILOT_ONBOARDING_MAX_ELAPSED_MS=36e5,t.AUTOPILOT_ONBOARDING_MAX_ATTEMPT_COUNT=10},70319:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AUTOPILOT_READINESS_CHECK_TIMEOUT_CODE=t.AUTOPILOT_NOT_READY_CODE=t.AUTOPILOT_READINESS_KEYS=void 0;let r=n(99905),i=n(50116);t.AUTOPILOT_READINESS_KEYS=[...Object.values(r.OntologyStage),...Object.values(i.AutopilotOperationalReadinessKey)],t.AUTOPILOT_NOT_READY_CODE="AUTOPILOT_NOT_READY",t.AUTOPILOT_READINESS_CHECK_TIMEOUT_CODE="AUTOPILOT_READINESS_CHECK_TIMEOUT"},73590:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.AnalyticsEventName=void 0,function(e){e.AUTH_LOGIN_STARTED="auth.login_started",e.AUTH_LOGIN_SUCCEEDED="auth.login_succeeded",e.AUTH_LOGIN_FAILED="auth.login_failed",e.AUTH_SIGNUP_STARTED="auth.signup_started",e.AUTH_SIGNUP_ATTRIBUTED="auth.signup_attributed",e.AUTH_SIGNUP_SUCCEEDED="auth.signup_succeeded",e.AUTH_EMAIL_VERIFIED="auth.email_verified",e.AUTH_SIGNUP_BLOCKED="auth.signup_blocked",e.AUTH_PASSWORD_RESET_REQUESTED="auth.password_reset_requested",e.AUTH_PASSWORD_RESET_COMPLETED="auth.password_reset_completed",e.AUTH_INVITE_VIEWED="auth.invite_viewed",e.ONBOARDING_LANDING_RESOLVED="onboarding.landing_resolved",e.ONBOARDING_ORG_PICKED="onboarding.org_picked",e.ONBOARDING_BRAND_ONBOARDING_SUBMITTED="onboarding.brand_onboarding_submitted",e.ONBOARDING_BRAND_ANALYSIS_COMPLETED="onboarding.brand_analysis_completed",e.ONBOARDING_BRAND_ANALYSIS_FAILED="onboarding.brand_analysis_failed",e.ONBOARDING_TOUR_STEP_VIEWED="onboarding.tour_step_viewed",e.ONBOARDING_TOUR_COMPLETED="onboarding.tour_completed",e.ONBOARDING_TOUR_SKIPPED="onboarding.tour_skipped",e.ONBOARDING_TOUR_REPLAY_REQUESTED="onboarding.tour_replay_requested",e.ORG_ORGANIZATION_CREATED="org.organization_created",e.BRAND_GALLERY_VIEWED="brand.gallery_viewed",e.BRAND_CARD_CLICKED="brand.card_clicked",e.BRAND_CREATED="brand.created",e.BRAND_UPDATED="brand.updated",e.BRAND_DELETED="brand.deleted",e.BRAND_SETTINGS_SAVED="brand.settings_saved",e.BRAND_PRODUCT_ADDED="brand.product_added",e.BRAND_PRODUCT_EDITED="brand.product_edited",e.BRAND_PRODUCT_DELETED="brand.product_deleted",e.BRAND_INTEGRATION_CONNECTED="brand.integration_connected",e.BRAND_INTEGRATION_DISCONNECTED="brand.integration_disconnected",e.BRAND_REVIEW_CONFIRMED="brand.review_confirmed",e.MEDIA_ASSETS_UPLOADED="media.assets_uploaded",e.CAMPAIGN_LIST_FILTERED="campaign.list_filtered",e.CAMPAIGN_CREATE_CTA_CLICKED="campaign.create_cta_clicked",e.CAMPAIGN_CAMPAIGN_CREATED="campaign.campaign_created",e.CAMPAIGN_DUPLICATED="campaign.duplicated",e.CAMPAIGN_DELETED="campaign.deleted",e.CAMPAIGN_ARCHIVED="campaign.archived",e.CAMPAIGN_UNARCHIVED="campaign.unarchived",e.CAMPAIGN_ACTION_REQUESTED="campaign.action_requested",e.CAMPAIGN_ACTION_FAILED="campaign.action_failed",e.CAMPAIGN_BULK_ACTION_COMPLETED="campaign.bulk_action_completed",e.CAMPAIGN_STATUS_CHANGED="campaign.status_changed",e.CAMPAIGN_SELECTED="campaign.selected",e.CAMPAIGN_PINNED="campaign.pinned",e.CAMPAIGN_UNPINNED="campaign.unpinned",e.CAMPAIGN_SETUP_BOARD_OPENED="campaign.setup_board_opened",e.CAMPAIGN_BRIEF_FIELD_EDITED="campaign.brief_field_edited",e.CAMPAIGN_SETUP_SAVED="campaign.setup_saved",e.CAMPAIGN_SETUP_DISCARDED="campaign.setup_discarded",e.CAMPAIGN_KNOWLEDGE_SECTION_EDITED="campaign.knowledge_section_edited",e.CAMPAIGN_KNOWLEDGE_HISTORY_OPENED="campaign.knowledge_history_opened",e.CAMPAIGN_FORM_PREVIEW_OPENED="campaign.form_preview_opened",e.CAMPAIGN_REPORT_VIEWED="campaign.report_viewed",e.CAMPAIGN_REPORT_WINDOW_CHANGED="campaign.report_window_changed",e.CAMPAIGN_REPORT_SHARE_DIALOG_OPENED="campaign.report_share_dialog_opened",e.CAMPAIGN_REPORT_SHARE_ACTIONED="campaign.report_share_actioned",e.CAMPAIGN_PUBLIC_REPORT_VIEWED="campaign.public_report_viewed",e.CAMPAIGN_RECRUIT_WINDOW_AUTO_WRAPPED="campaign.recruit_window_auto_wrapped",e.DISCOVERY_RUN_DIALOG_OPENED="discovery.run_dialog_opened",e.DISCOVERY_RUN_CREATED="discovery.run_created",e.DISCOVERY_RUN_COMPLETED="discovery.run_completed",e.DISCOVERY_RESULTS_FILTERED="discovery.results_filtered",e.DISCOVERY_RESULTS_SORTED="discovery.results_sorted",e.DISCOVERY_RESULTS_SEARCHED="discovery.results_searched",e.DISCOVERY_CREATOR_PROFILE_OPENED="discovery.creator_profile_opened",e.DISCOVERY_CREATORS_IMPORTED="discovery.creators_imported",e.DISCOVERY_TIKTOK_SHOP_TAB_VIEWED="discovery.tiktok_shop_tab_viewed",e.DISCOVERY_TIKTOK_PROMOTION_OPENED="discovery.tiktok_promotion_opened",e.CHAT_MESSAGE_SENT="chat.message_sent",e.CHAT_FIRST_TOKEN_RECEIVED="chat.first_token_received",e.CHAT_PROACTIVE_KICKOFF_SHOWN="chat.proactive_kickoff_shown",e.CHAT_NAV_CHIP_CLICKED="chat.nav_chip_clicked",e.CHAT_NEW_CHAT_STARTED="chat.new_chat_started",e.CHAT_SESSION_SWITCHED="chat.session_switched",e.CHAT_AUTOPILOT_MESSAGE_SENT="chat.auto
1pilot_message_sent",e.CHAT_STREAM_OPENED="chat.stream_opened",e.CHAT_STREAM_CLOSED="chat.stream_closed",e.CHAT_STREAM_ERRORED="chat.stream_errored",e.CHAT_RESPONSE_COMPLETED="chat.response_completed",e.CHAT_RESPONSE_FAILED="chat.response_failed",e.CHAT_RESPONSE_ACTIONED="chat.response_actioned",e.CHAT_RESPONSE_RETRIED="chat.response_retried",e.AUTOPILOT_ENABLED="autopilot.enabled",e.AUTOPILOT_DISABLED="autopilot.disabled",e.AUTOPILOT_STEERED="autopilot.steered",e.AUTOPILOT_ONBOARDING_PROMPT_VIEWED="autopilot.onboarding_prompt_viewed",e.AUTOPILOT_ONBOARDING_CHOICE_SELECTED="autopilot.onboarding_choice_selected",e.AUTOPILOT_ONBOARDING_ATTEMPT_FAILED="autopilot.onboarding_attempt_failed",e.AUTOPILOT_ONBOARDING_RETRY_CLICKED="autopilot.onboarding_retry_clicked",e.AUTOPILOT_ONBOARDING_FIRST_RUN_SUCCEEDED="autopilot.onboarding_first_run_succeeded",e.AGENT_JOB_STARTED="agent.job_started",e.AGENT_JOB_FINISHED="agent.job_finished",e.AGENT_JOB_FAILED="agent.job_failed",e.AGENT_CYCLE_RUN="agent.cycle_run",e.AGENT_ACTION_GATED="agent.action_gated",e.GATE_APPROVAL_CONSUMED="gate.approval_consumed",e.GATE_BYPASS_REFUSED="gate.bypass_refused",e.AGENT_PERMISSION_MODE_CHANGE_REQUESTED="agent.permission_mode_change_requested",e.AGENT_PERMISSION_MODE_CHANGED="agent.permission_mode_changed",e.AGENT_PERMISSION_MODE_CHANGE_FAILED="agent.permission_mode_change_failed",e.STUDIO_TODO_ACTIONED="studio.todo_actioned",e.STUDIO_STATCARD_CLICKED="studio.statcard_clicked",e.STUDIO_LEARNED_FACT_EDITED="studio.learned_fact_edited",e.OUTREACH_PREFLIGHT_RUN="outreach.preflight_run",e.OUTREACH_PREFLIGHT_APPROVED="outreach.preflight_approved",e.OUTREACH_EMAIL_SENT="outreach.email_sent",e.OUTREACH_EMAIL_DELIVERED="outreach.email_delivered",e.OUTREACH_BATCH_SEND_COMPLETED="outreach.batch_send_completed",e.OUTREACH_EMAIL_BOUNCED="outreach.email_bounced",e.OUTREACH_EMAIL_COMPLAINED="outreach.email_complained",e.OUTREACH_EMAIL_OPENED="outreach.email_opened",e.OUTREACH_EMAIL_CLICKED="outreach.email_clicked",e.OUTREACH_REPLY_RECEIVED="outreach.reply_received",e.OUTREACH_AUTO_REPLY_DECISION="outreach.auto_reply_decision",e.OUTREACH_SEND_SUPPRESSED="outreach.send_suppressed",e.OUTREACH_GMAIL_ACCOUNT_CONNECTED="outreach.gmail_account_connected",e.OUTREACH_SENDER_PROMPT_DISMISSED="outreach.sender_prompt_dismissed",e.OUTREACH_COMMUNICATION_MODE_CHANGE_REQUESTED="outreach.communication_mode_change_requested",e.OUTREACH_COMMUNICATION_MODE_CHANGED="outreach.communication_mode_changed",e.OUTREACH_COMMUNICATION_MODE_CHANGE_FAILED="outreach.communication_mode_change_failed",e.CONVERSATION_SELECTED="conversation.selected",e.CONVERSATION_STATUS_FILTERED="conversation.status_filtered",e.CONVERSATION_DRAFT_APPROVED="conversation.draft_approved",e.CONVERSATION_DRAFT_SENT="conversation.draft_sent",e.CONVERSATION_REPLY_SENT="conversation.reply_sent",e.CONVERSATION_AUTO_RESPONSE_TOGGLED="conversation.auto_response_toggled",e.FUNNEL_STATUS_TRANSITIONED="funnel.status_transitioned",e.FUNNEL_CREATOR_DECLINED="funnel.creator_declined",e.FUNNEL_CREATOR_UNDECLINED="funnel.creator_undeclined",e.FUNNEL_PROPOSAL_GENERATED="funnel.proposal_generated",e.FUNNEL_PROPOSAL_ACCEPTED="funnel.proposal_accepted",e.SHIPPING_CREATOR_EDITED="shipping.creator_edited",e.SHIPPING_BULK_UPLOAD_OPENED="shipping.bulk_upload_opened",e.SHIPPING_BULK_UPLOADED="shipping.bulk_uploaded",e.SHIPPING_DOWNLOAD_OPENED="shipping.download_opened",e.SHIPPING_TIMELINE_OPENED="shipping.timeline_opened",e.SHIPPING_ADDRESS_COLLECTED="shipping.address_collected",e.SHIPPING_PACKAGE_DELIVERED="shipping.package_delivered",e.CONTENT_SUBMISSION_OPENED="content.submission_opened",e.CONTENT_LINK_SUBMITTED="content.link_submitted",e.CONTENT_MODERATION_VERDICT="content.moderation_verdict",e.PAYMENT_TAB_TOGGLED="payment.tab_toggled",e.PAYMENT_ROWS_SELECTED="payment.rows_selected",e.PAYMENT_CARD_ON_FILE_OPENED="payment.card_on_file_opened",e.PAYMENT_CONFIRM_OPENED="payment.confirm_opened",e.PAYMENT_FORCE_PAY_OPENED="payment.force_pay_opened",e.CEA_ISSUED="cea.issued",e.CEA_SENT_TO_CREATOR="cea.sent_to_creator",e.CEA_ACCEPTED="cea.accepted",e.CEA_DOCUSIGN_COMPLETED="cea.docusign_completed",e.PAYOUT_STRIPE_CONNECT_ONBOARDING_STARTED="payout.stripe_connect_onboarding_started",e.PAYOUT_PAYOUTS_ENABLED="payout.payouts_enabled",e.PAYOUT_INITIATED="payout.initiated",e.PAYOUT_PAID="payout.paid",e.PAYOUT_FAILED="payout.failed",e.BILLING_PLAN_VIEWED="billing.plan_viewed",e.BILLING_PLAN_CARD_SELECTED="billing.plan_card_selected",e.BILLING_CHECKOUT_STARTED="billing.checkout_started",e.BILLING_CHECKOUT_SUCCEEDED="billing.checkout_succeeded",e.BILLING_CHECKOUT_FAILED="billing.checkout_failed",e.BILLING_PAYWALL_HIT="billing.paywall_hit",e.BILLING_PAYWALL_ASK_ADMIN_CLICKED="billing.paywall_ask_admin_clicked",e.BILLING_CARD_ADDED="billing.card_added",e.BILLING_SUBSCRIPTION_STARTED="billing.subscription_started",e.BILLING_SUBSCRIPTION_CHANGED="billing.subscription_changed",e.BILLING_SUBSCRIPTION_CANCELED="billing.subscription_canceled",e.BILLING_INVOICE_PAYMENT_FAILED="billing.invoice_payment_failed",e.BILLING_INVOICE_UNCOLLECTIBLE="billing.invoice_uncollectible",e.BILLING_TOKEN_THRESHOLD_REACHED="billing.token_threshold_reached",e.BILLING_CARD_MANAGED="billing.card_managed",e.BILLING_INVOICE_LIST_VIEWED="billing.invoice_list_viewed",e.BILLING_BOOK_CALL_CLICKED="billing.book_call_clicked",e.BILLING_CANCELLATION_FLOW_STARTED="billing.cancellation_flow_started",e.BILLING_CANCELLATION_STEP_VIEWED="billing.cancellation_step_viewed",e.BILLING_CANCELLATION_REASON_SUBMITTED="billing.cancellation_reason_submitted",e.BILLING_CANCELLATION_OFFER_DECIDED="billing.cancellation_offer_decided",e.BILLING_CANCELLATION_DOWNGRADE_DECIDED="billing.cancellation_downgrade_decided",e.BILLING_CANCELLATION_EXITED="billing.cancellation_exited",e.BILLING_CARD_REMOVED="billing.card_removed",e.BILLING_SUBSCRIPTION_ACTION_REQUESTED="billing.subscription_action_requested",e.BILLING_SUBSCRIPTION_ACTION_SUCCEEDED="billing.subscription_action_succeeded",e.BILLING_SUBSCRIPTION_ACTION_FAILED="billing.subscription_action_failed",e.SETTINGS_PROFILE_SAVED="settings.profile_saved",e.SETTINGS_NOTIFICATION_TOGGLED="settings.notification_toggled",e.SETTINGS_SIGNATURE_SAVED="settings.signature_saved",e.SETTINGS_MEMBERSHIP_LEFT="settings.membership_left",e.SETTINGS_ACCOUNT_DELETED="settings.account_deleted",e.ACCOUNT_EXPORT_DOW
1NLOADED="account.export_downloaded",e.SETTINGS_EMAIL_DOMAIN_ADDED="settings.email_domain_added",e.SETTINGS_EMAIL_DOMAIN_VERIFIED="settings.email_domain_verified",e.SETTINGS_SUPPRESSION_ADDED="settings.suppression_added",e.SETTINGS_SUPPRESSION_REMOVED="settings.suppression_removed",e.TEAM_MEMBER_INVITED="team.member_invited",e.TEAM_ROLE_CHANGED="team.role_changed",e.TEAM_MEMBER_REMOVED="team.member_removed",e.TEAM_ORG_GENERAL_SAVED="team.org_general_saved",e.TEAM_ORG_CLOSE_STARTED="team.org_close_started",e.TEAM_ORG_CLOSE_REQUESTED="team.org_close_requested",e.TEAM_ORG_CLOSE_BLOCKED="team.org_close_blocked",e.TEAM_ORG_CLOSE_FAILED="team.org_close_failed",e.CREATOR_BRIEF_OPENED="creator.brief_opened",e.CREATOR_BRIEF_READ="creator.brief_read",e.CREATOR_PORTAL_OPENED="creator.portal_opened",e.CREATOR_ONBOARDING_STEP_SUBMITTED="creator.onboarding_step_submitted",e.CREATOR_ONBOARDING_STEP_BACK="creator.onboarding_step_back",e.CREATOR_CONTENT_LINK_ADDED="creator.content_link_added",e.CREATOR_CONTENT_LINK_REMOVED="creator.content_link_removed",e.CREATOR_CONTENT_SUBMITTED="creator.content_submitted",e.CREATOR_CONTENT_REVIEW_CONFIRMED="creator.content_review_confirmed",e.CREATOR_CONTENT_SUCCESS_VIEWED="creator.content_success_viewed",e.CREATOR_CEA_VIEWED="creator.cea_viewed",e.CREATOR_CEA_SCROLLED_TO_END="creator.cea_scrolled_to_end",e.CREATOR_CEA_CONSENT_TOGGLED="creator.cea_consent_toggled",e.CREATOR_CEA_SIGNED="creator.cea_signed",e.CREATOR_STRIPE_KYC_RETURNED="creator.stripe_kyc_returned",e.CREATOR_STRIPE_KYC_REFRESH_LANDED="creator.stripe_kyc_refresh_landed",e.CREATOR_UNSUBSCRIBED="creator.unsubscribed",e.CREATOR_LOGIN_SUBMITTED="creator.login_submitted",e.CREATOR_SIGNUP_ATTEMPTED="creator.signup_attempted",e.CREATOR_SOCIAL_VERIFICATION_STARTED="creator.social_verification_started",e.CREATOR_SOCIAL_VERIFICATION_COMPLETED="creator.social_verification_completed",e.CREATOR_SOCIAL_VERIFICATION_PENDING="creator.social_verification_pending",e.CREATOR_SOCIAL_VERIFICATION_FAILED="creator.social_verification_failed",e.CREATOR_SOCIAL_DISCONNECT_DIALOG_OPENED="creator.social_disconnect_dialog_opened",e.CREATOR_SOCIAL_DISCONNECT_STARTED="creator.social_disconnect_started",e.CREATOR_SOCIAL_DISCONNECTED="creator.social_disconnected",e.CREATOR_SOCIAL_DISCONNECT_FAILED="creator.social_disconnect_failed",e.CREATOR_POST_PERFORMANCE_VIEWED="creator.post_performance_viewed",e.ADMIN_DASHBOARD_VIEWED="admin.dashboard_viewed",e.ADMIN_EVAL_RUN_VIEWED="admin.eval_run_viewed",e.ADMIN_KILL_SWITCH_FLIPPED="admin.kill_switch_flipped",e.SALES_CALL_BOOKED="sales.call_booked",e.SALES_CALL_RESCHEDULED="sales.call_rescheduled",e.SALES_CALL_CANCELLED="sales.call_cancelled",e.SALES_CALL_COMPLETED="sales.call_completed",e.SALES_CALL_NO_SHOW="sales.call_no_show",e.SYSTEM_EMAIL_SENT="system_email.sent",e.SYSTEM_EMAIL_SUPPRESSED="system_email.suppressed",e.SYSTEM_EMAIL_FAILED="system_email.failed",e.SYSTEM_EMAIL_DELIVERED="system_email.delivered",e.SYSTEM_EMAIL_OPENED="system_email.opened",e.SYSTEM_EMAIL_CLICKED="system_email.clicked",e.SYSTEM_EMAIL_BOUNCED="system_email.bounced",e.SYSTEM_EMAIL_COMPLAINED="system_email.complained",e.WEBHOOK_RECEIVED="webhook.received",e.COMPLIANCE_DATA_DELETION_REQUESTED="compliance.data_deletion_requested"}(n||(t.AnalyticsEventName=n={}))},75147:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.GEO_ENVELOPE_REASONS=t.GeoEnvelopeStatus=void 0,function(e){e.OK="ok",e.STALE="stale",e.UNAVAILABLE="unavailable"}(n||(t.GeoEnvelopeStatus=n={})),t.GEO_ENVELOPE_REASONS=["not_configured","upstream_error"]},75258:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},76473:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReferencesRefusedError=t.SOCIAL_LISTENING_FINDINGS_HEADING=t.WINNER_CREATOR_MAX_CHARS=t.WINNER_CREATORS_MAX=t.PER_BRAND_NOTE_MAX_CHARS=t.PER_BRAND_NOTES_MAX=t.WINNING_PATTERN_MAX_CHARS=t.WINNING_PATTERNS_MAX=t.REFERENCE_ROSTER_MAX_ROWS=void 0,t.canonicalReferenceHandle=function(e,t){let n=(0,i.normalizeSocialHandle)(null!=t?t:"");return l[T[e]].test(n)?n:null},t.marketerCompetitorRow=S,t.parseReferences=function(e){let n=(null!=e?e:"").split("\n").map(e=>e.replace(/\r$/,"")),r=n.map((e,n)=>e.trim()===t.SOCIAL_LISTENING_FINDINGS_HEADING?n:-1).filter(e=>e>=0),i=[];if(r.length>1)throw i.push("line ".concat(r[1]+1,": second findings block")),new s(i);let l=1===r.length?r[0]:n.length,T=function(e,t){let n=e.map((e,t)=>({line:e,lineNumber:t+1})).filter(e=>{let{line:t}=e;return t.trim().length>0});if(0===n.length)return[];if(null===A(n[0].line))return n.map(e=>{let{line:t}=e;return S(t.trim())});let[r,i,...o]=n,_=function(e,t){var n,r;if((null==(n=A(e.line))?void 0:n.join("|"))!==a.join("|"))return"line ".concat(e.lineNumber,": header must be | ").concat(a.join(" | ")," |");let i=t?A(t.line):null;return i&&i.length===a.length&&i.every(e=>/^:?-{3,}:?$/.test(e))?null:"line ".concat(null!=(r=null==t?void 0:t.lineNumber)?r:e.lineNumber+1,": table separator row is missing or malformed")}(r,i);if(_)return t.push(_),[];let l=[];for(let{line:e,lineNumber:n}of o){let r=A(e);if(null===r){t.push("line ".concat(n,": not a table row"));continue}let i=function(e,t,n){if(e.length!==a.length)return n.push("line ".concat(t,": expected ").concat(a.length," cells, found ").concat(e.length)),null;let[r,i,o,_,l,c,s]=e,A=n.length;u.has(r)||n.push("line ".concat(t,": unknown role")),i||n.push("line ".concat(t,": name is blank")),o&&!E.test(o)&&n.push("line ".concat(t,": URL must start with http(s)://")),d.has(s)||n.push("line ".concat(t,": unknown source"));
1let T={role:r,name:i,url:o||null,instagram:O(_,"Instagram",t,n),tiktok:O(l,"TikTok",t,n),youtube:O(c,"YouTube",t,n),source:s};return n.length===A?T:null}(r,n,t);i&&l.push(i)}let c=I(o.length);return c&&t.push(c),l}(n.slice(0,l),i),N=l<n.length?function(e,t,n){var r;let i=[...e];for(;i.length>0&&!i[i.length-1].trim();)i.pop();let a=e=>t+e+1,l=c.exec(null!=(r=i[1])?r:"");if(!l)return n.push("line ".concat(a(1),': expected "Run: <date> | Platforms: <list> | Top N: <n> | Window: <n> days | Report: <id>"')),null;let E={run:{date:l[1],platforms:l[2].split(", "),topN:Number(l[3]),windowDays:Number(l[4]),reportId:l[5]},winningPatterns:[],perBrand:[],creators:[]},s=null,u=0;for(let e=2;e<i.length;e+=1){let t=i[e];if(t===_[o[u]]){s=o[u],u+=1;continue}if(s&&t.startsWith("- ")){E[s].push(t.slice(2));continue}return n.push("line ".concat(a(e),": unexpected line in the findings block")),null}return u!==o.length?(n.push("findings block is missing ".concat(_[o[u]])),null):(C(E.run,n),R(E,n),E)}(n.slice(l),l,i):null;if(i.length>0)throw new s(i);return{roster:T,findings:N}},t.renderReferences=function(e){let n=[],r=[],i=I(e.roster.length);if(i&&n.push(i),e.roster.length>0&&r.push(["| ".concat(a.join(" | ")," |"),"|".concat(a.map(()=>"---").join("|"),"|"),...e.roster.map((e,t)=>(function(e,t,n){var r;let i="row ".concat(t+1);u.has(e.role)||n.push("".concat(i,": unknown role")),d.has(e.source)||n.push("".concat(i,": unknown source")),e.name.trim()||n.push("".concat(i,": name is blank")),null===e.url||E.test(e.url)||n.push("".concat(i,": URL must start with http(s)://"));let a=(e,t)=>null===e?"":(l[t].test(e)||n.push("".concat(i,": ").concat(t," is not a lowercase handle")),"@".concat(e)),o=[e.role,N(e.name,"".concat(i," name"),n),N(null!=(r=e.url)?r:"","".concat(i," URL"),n),a(e.instagram,"Instagram"),a(e.tiktok,"TikTok"),a(e.youtube,"YouTube"),e.source];return"| ".concat(o.join(" | ")," |")})(e,t,n))].join("\n")),e.findings&&r.push(function(e,n){R(e,n);let{run:r}=e;C(r,n);let i="Run: ".concat(r.date," | Platforms: ").concat(r.platforms.join(", ")," | Top N: ").concat(r.topN," | Window: ").concat(r.windowDays," days | Report: ").concat(r.reportId);return c.test(i)||n.push("findings run line is malformed"),[t.SOCIAL_LISTENING_FINDINGS_HEADING,i,_.winningPatterns,...e.winningPatterns.map(e=>"- ".concat(e)),_.perBrand,...e.perBrand.map(e=>"- ".concat(e)),_.creators,...e.creators.map(e=>"- ".concat(e))].join("\n")}(e.findings,n)),n.length>0)throw new s(n);return r.join("\n\n")};let r=n(43466),i=n(47933);t.REFERENCE_ROSTER_MAX_ROWS=20,t.WINNING_PATTERNS_MAX=8,t.WINNING_PATTERN_MAX_CHARS=300,t.PER_BRAND_NOTES_MAX=20,t.PER_BRAND_NOTE_MAX_CHARS=300,t.WINNER_CREATORS_MAX=20,t.WINNER_CREATOR_MAX_CHARS=400,t.SOCIAL_LISTENING_FINDINGS_HEADING="### Social listening, latest";let a=["Role","Name","URL","Instagram","TikTok","YouTube","Source"],o=["winningPatterns","perBrand","creators"],_={winningPatterns:"**Winning patterns**",perBrand:"**Per brand**",creators:"**Creators behind the winners**"},l={Instagram:i.INSTAGRAM_HANDLE_PATTERN,TikTok:i.TIKTOK_HANDLE_PATTERN,YouTube:i.YOUTUBE_HANDLE_PATTERN},E=/^https?:\/\/\S+$/,c=/^Run: (\d{4}-\d{2}-\d{2}) \| Platforms: ([a-z]+(?:, [a-z]+)*) \| Top N: (\d+) \| Window: (\d+) days \| Report: (\S+)$/;class s extends Error{constructor(e){super("References refused: ".concat(e.join("; "))),this.refusals=e,this.name="ReferencesRefusedError"}}t.ReferencesRefusedError=s;let u=new Set(Object.values(r.ReferenceRole)),d=new Set(Object.values(r.ReferenceSource));function A(e){let t=e.trim();return t.startsWith("|")&&t.endsWith("|")&&"|"!==t?t.slice(1,-1).split("|").map(e=>e.trim()):null}let T={instagram:"Instagram",tiktok:"TikTok",youtube:"YouTube"};function O(e,t,n,r){if(!e)return null;let i=e.slice(1);return e.startsWith("@")&&i===i.toLowerCase()&&l[t].test(i)?i:(r.push("line ".concat(n,": ").concat(t," must be a lowercase @handle or blank")),null)}function I(e){return e>t.REFERENCE_ROSTER_MAX_ROWS?"roster has ".concat(e," rows, over the ").concat(t.REFERENCE_ROSTER_MAX_ROWS,"-row budget"):null}function S(e){return{role:r.ReferenceRole.COMPETITOR,name:e,url:null,instagram:e,tiktok:null,youtube:null,source:r.ReferenceSource.MARKETER}}function R(e,n){for(let[r,i,a,o]of[["winning patterns",e.winningPatterns,t.WINNING_PATTERNS_MAX,t.WINNING_PATTERN_MAX_CHARS],["per brand",e.perBrand,t.PER_BRAND_NOTES_MAX,t.PER_BRAND_NOTE_MAX_CHARS],["creators",e.creators,t.WINNER_CREATORS_MAX,t.WINNER_CREATOR_MAX_CHARS]])i.length>a&&n.push("".concat(r," has ").concat(i.length," entries, over the ").concat(a,"-entry budget")),i.forEac
1h((e,t)=>{!e.trim()||e!==e.trim()||/[\r\n]/.test(e)?n.push("".concat(r," entry ").concat(t+1," must be one trimmed non-blank line")):e.length>o&&n.push("".concat(r," entry ").concat(t+1," is over ").concat(o," characters"))})}function C(e,t){Number.isSafeInteger(e.topN)&&Number.isSafeInteger(e.windowDays)||t.push("findings run Top N and Window must be whole numbers"),0!==e.platforms.length&&e.platforms.every(e=>/^[a-z]+$/.test(e))||t.push("findings run platforms must be lowercase single words")}function N(e,t,n){return(e!==e.trim()||e.includes("|")||/[\r\n]/.test(e))&&n.push("".concat(t,' must be trimmed with no "|" or line break')),e}},76600:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.BillingPaywallCode=void 0,function(e){e.TOKEN_DEPLETED="TOKEN_DEPLETED",e.PAYMENT_PAST_DUE="PAYMENT_PAST_DUE",e.ORG_SPEND_LIMIT_REACHED="ORG_SPEND_LIMIT_REACHED",e.MEMBER_SPEND_LIMIT_REACHED="MEMBER_SPEND_LIMIT_REACHED",e.OVERAGE_CAP_REACHED="OVERAGE_CAP_REACHED"}(n||(t.BillingPaywallCode=n={}))},77799:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.FeedbackType=void 0,function(e){e.BUG="bug",e.ERROR="error",e.PAYMENT="payment",e.IDEA="idea",e.FEEDBACK="feedback",e.OTHER="other"}(n||(t.FeedbackType=n={}))},78126:(e,t)=>{var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.OrganizationLifecycleStatus=t.UserLifecycleStatus=void 0,function(e){e.ACTIVE="active",e.SUSPENDED="suspended",e.DELETED="deleted"}(n||(t.UserLifecycleStatus=n={})),function(e){e.ACTIVE="active",e.SUSPENDED="suspended",e.CLOSED="closed"}(r||(t.OrganizationLifecycleStatus=r={}))},78796:(e,t)=>{var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.EmailStatus=t.EmailDirection=void 0,function(e){e.INCOMING="incoming",e.OUTGOING="outgoing"}(n||(t.EmailDirection=n={})),function(e){e.DRAFT="draft",e.SUCCESS="success",e.FAILURE="failure"}(r||(t.EmailStatus=r={}))},80904:(e,t)=>{var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.InstagramTrackingTargetType=t.InstagramDmAccountStatus=void 0,function(e){e.NORMAL="normal",e.UNDER_REVIEW="under_review",e.ACTION_NEEDED="action_needed",e.PERMANENTLY_BANNED="permanently_banned"}(n||(t.InstagramDmAccountStatus=n={})),function(e){e.HANDLE="handle",e.HASHTAG="hashtag"}(r||(t.InstagramTrackingTargetType=r={}))},80939:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CHAT_RESPONSE_ID_HEADER=void 0,t.CHAT_RESPONSE_ID_HEADER="x-storika-chat-response-id"},84181:(e,t,n)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.DISCOVERY_REVIEW_SIGNAL_KEY_MAX=t.DISCOVERY_REVIEW_SIGNAL_LABEL_MAX=t.DISCOVERY_REVIEW_SIGNALS_MAX=t.DiscoveryReviewSignalSource=void 0,t.isDecidedDiscoveryReviewDecision=function(e){return e===i.DiscoveryHumanDecision.GO||e===i.DiscoveryHumanDecision.NO_GO},t.normalizeDiscoveryReviewSignal=E,t.readDiscoveryReviewSignals=function(e){let n=(0,a.asRecord)(e);if(!n||!Array.isArray(n.signals))return[];let r=[],i=new Set;for(let e of n.signals){var o;let n=E(e);if(null===n)continue;let a=null!=(o=n.canonicalKey)?o:"label:".concat(n.label.toLowerCase());if(!i.has(a)&&(i.add(a),r.push(n),r.length>=t.DISCOVERY_REVIEW_SIGNALS_MAX))break}return r},t.normalizeDiscoveryReviewSignalSuggestion=c,t.readDiscoveryReviewSignalSuggestions=function(e){if(!Array.isArray(e))return[];let n=[],r=new Set;for(let a of e){var i;let e=c(a);if(null===e)continue;let o=null!=(i=e.canonicalKey)?i:"label:".concat(e.label.toLowerCase());if(!r.has(o)&&(r.add(o),n.push(e),n.length>=t.DISCOVERY_REVIEW_SIGNALS_MAX))break}return n},t.buildDiscoveryReviewReason=function(e,t){let n=(null!=e?e:"").trim(),r={};return n.length>0&&(r.note=n),t.length>0&&(r.signals=t),0===n.length&&0===t.length?void 0:r};let i=n(66166),a=n(65054);!function(e){e.SUGGESTED="suggested",e.CUSTOM="custom"}(r||(t.DiscoveryReviewSignalSource=r={})),t.DISCOVERY_REVIEW_SIGNALS_MAX=24,t.DISCOVERY_REVIEW_SIGNAL_LABEL_MAX=60,t.DISCOVERY_REVIEW_SIGNAL_KEY_MAX=80;let o=new Set(Object.values(r));function _(e){if("string"!=typeof e)return null;let n=e.trim();return 0===n.length?null:n.slice(0,t.DISCOVERY_REVIEW_SIGNAL_LABEL_MAX)}function l(e){if("string"!=typeof e)return;let n=e.trim();if(0!==n.length&&!(n.length>t.DISCOVERY_REVIEW_SIGNAL_KEY_MAX))return n}function E(e){let t=(0,a.asRecord)(e);if(!t)return null;let n=_(t.label);if(null===n)return null;let i="string"==typeof t.source&&o.has(t.source)?t.source:null;if(null===i)return null;let E=i===r.SUGGESTED?l(t.canonicalKey):void 0;return void 0===E?{label:n,source:i}:{label:n,source:i,canonicalKey:E}}function c(e){let t=(0,a.asRecord)(e);if(!t)return null;let n=_(t.label);if(null===n)return null;let r=l(t.canonicalKey);return void 0===r?{label:n}:{label:n,canonicalKey:r}}},84526:(e,t,n)=>
1{Object.defineProperty(t,"__esModule",{value:!0}),t.DISCOVERY_RUN_DEFAULT_REQUEST=t.DISCOVERY_RUN_REQUEST_MAX=t.DISCOVERY_RUN_REQUEST_MIN=t.DISCOVERY_FUNNEL_MULTIPLIERS=void 0,t.recommendedDiscoveryTarget=function(e,n){return Math.min(1e3,Math.max(10,Math.ceil(e*t.DISCOVERY_FUNNEL_MULTIPLIERS[n])))},t.recommendedDiscoveryPoolTotal=function(e,n){return Math.ceil(e*t.DISCOVERY_FUNNEL_MULTIPLIERS[n])},t.remainingDiscoveryRecommendation=function(e,t){return Math.max(e-t,0)},t.discoveryRequestOverage=function(e,t){let n=Math.max(e-t,0);return{aboveRecommendation:n>0,overage:n}};let r=n(43754);t.DISCOVERY_FUNNEL_MULTIPLIERS={[r.CampaignType.SEEDING]:50,[r.CampaignType.PAID_COLLABORATION]:10,[r.CampaignType.AFFILIATE_MARKETING]:8},t.DISCOVERY_RUN_REQUEST_MIN=1,t.DISCOVERY_RUN_REQUEST_MAX=2e4,t.DISCOVERY_RUN_DEFAULT_REQUEST=1e3},84876:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.IS_REAL_CUSTOM_FLOW_TREE_FIXTURES=void 0,t.IS_REAL_CUSTOM_FLOW_TREE_FIXTURES=[{name:"real custom array (multi-node), default rule -> true",flowTree:[{id:"1",kind:"send",variant:"proposal"},{id:"2",kind:"branch",variant:"replied"}],isDefault:!0,expected:!0},{name:"real custom array (single non-proposal send), default rule -> true",flowTree:[{id:"1",kind:"send",variant:"reminder"}],isDefault:!0,expected:!0},{name:"legacy default proposal-only on a DEFAULT rule -> false (falls through to preset)",flowTree:[{id:"1",kind:"send",variant:"proposal"}],isDefault:!0,expected:!1},{name:"same proposal-only shape on a NON-default rule -> true (carve-out is default-qualified)",flowTree:[{id:"1",kind:"send",variant:"proposal"}],isDefault:!1,expected:!0},{name:"empty array (default) -> false",flowTree:[],isDefault:!0,expected:!1},{name:"empty array (non-default) -> false",flowTree:[],isDefault:!1,expected:!1},{name:"array with a non-object element -> false",flowTree:[1,2,3],isDefault:!1,expected:!1},{name:"array with a null element -> false",flowTree:[null],isDefault:!1,expected:!1},{name:"non-array object -> false",flowTree:{id:"1",kind:"send"},isDefault:!1,expected:!1},{name:"null -> false",flowTree:null,isDefault:!1,expected:!1},{name:"undefined -> false",flowTree:void 0,isDefault:!1,expected:!1}]},86049:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},86606:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.PRODUCT_CATEGORY_LABELS=t.PRODUCT_CATEGORY_VALUES=t.ProductCategory=void 0,t.normalizeProductCategory=function(e){if(null==e)return null;let t=e.trim();return r.has(t)?t:null},function(e){e.COSMETICS_SKINCARE="cosmetics_skincare",e.MAKEUP="makeup",e.HAIR="hair",e.APPAREL="apparel",e.FOOTWEAR="footwear",e.ACCESSORIES_JEWELRY="accessories_jewelry",e.FOOD_BEVERAGE="food_beverage",e.HEALTH_SUPPLEMENTS="health_supplements",e.TECH_DIGITAL_SERVICES="tech_digital_services",e.OTHER="other"}(n||(t.ProductCategory=n={})),t.PRODUCT_CATEGORY_VALUES=Object.values(n),t.PRODUCT_CATEGORY_LABELS={[n.COSMETICS_SKINCARE]:"Cosmetics / Skincare",[n.MAKEUP]:"Makeup",[n.HAIR]:"Hair",[n.APPAREL]:"Apparel",[n.FOOTWEAR]:"Footwear",[n.ACCESSORIES_JEWELRY]:"Accessories / Jewelry",[n.FOOD_BEVERAGE]:"Food & Beverage",[n.HEALTH_SUPPLEMENTS]:"Health / Supplements",[n.TECH_DIGITAL_SERVICES]:"Tech / Digital / Services / App",[n.OTHER]:"Other"};let r=new Set(t.PRODUCT_CATEGORY_VALUES)},86678:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MAX_PAGE_SIZE=void 0,t.MAX_PAGE_SIZE=200},87695:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CANONICAL_SECTIONS_BY_GROUP=t.AGENT_PLAYBOOK_TYPED_SECTION_TITLES=t.CAMPAIGN_SETUP_TYPED_SECTION_TITLES=t.AGENT_PLAYBOOK_SECTIONS=t.CREATOR_BRIEF_OVERRIDABLE_SECTIONS=t.CREATOR_BRIEF_SECTIONS=t.CAMPAIGN_SETUP_SECTIONS=t.BRAND_PROFILE_SECTIONS=t.CAMPAIGN_KNOWLEDGE_SECTIONS=t.BRAND_KNOWLEDGE_SECTIONS=void 0;let r=n(55836);t.BRAND_KNOWLEDGE_SECTIONS=["Brand Overview","Brand Story & Philosophy","Brand History","Products & Services","Visual Identity","Target Audience","Tone & Voice","Positioning & Differentiators"],t.CAMPAIGN_KNOWLEDGE_SECTIONS=["Campaign Objective","Target Audience","Key Messages","Product/Offer Focus","Do's & Don'ts (Brand Safety)","Deliverables","Tone & Voice","Scenario Guidelines"],t.BRAND_PROFILE_SECTIONS=["Brand Overview","Products & Services","Positioning","Brand Story","Target Audience"],t.CAMPAIGN_SETUP_SECTIONS=["Objectives & KPIs","Product & Offer","Recruitment Timeline","Creator Discovery","Compensation & Deal Terms","Approval & Onboarding"],t.CREATOR_BRIEF_SECTIONS=["What Creators Receive","Deliverables","Posting Instructions","Content Guidelines","Content Review & Approval","FAQ"],t.CREATOR_BRIEF_OVERRIDABLE_SECTIONS=["What Creators Receive","Deliverables","Content Guidelines","Content Review & Approval","FAQ"],t.AGENT_PLAYBOOK_SECTIONS=["Voice & Tone","Claims & Brand Safety","Scenario Handling"],t.CAMPAIGN_SETUP_TYPED_SECTION_TIT
1LES=["Campaign Type & Platforms","Campaign Products"],t.AGENT_PLAYBOOK_TYPED_SECTION_TITLES=["Guardrails","Outreach & Follow-Up Cadence","Escalation Rules"],t.CANONICAL_SECTIONS_BY_GROUP={[r.CampaignContentGroup.BRAND_PROFILE]:t.BRAND_PROFILE_SECTIONS,[r.CampaignContentGroup.CAMPAIGN_SETUP]:t.CAMPAIGN_SETUP_SECTIONS,[r.CampaignContentGroup.CREATOR_BRIEF]:t.CREATOR_BRIEF_SECTIONS,[r.CampaignContentGroup.AGENT_PLAYBOOK]:t.AGENT_PLAYBOOK_SECTIONS}},88713:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.BRAND_CATEGORY_VALUES=t.BrandCategory=void 0,function(e){e.BEAUTY_PERSONAL_CARE="Beauty & Personal Care",e.FASHION_APPAREL="Fashion & Apparel",e.FOOD_BEVERAGE="Food & Beverage",e.HEALTH_WELLNESS="Health & Wellness",e.HOME_LIFESTYLE="Home & Lifestyle",e.CONSUMER_ELECTRONICS="Consumer Electronics",e.CONSUMER_GOODS="Consumer Goods",e.SPORTS_FITNESS="Sports & Fitness",e.TRAVEL_HOSPITALITY="Travel & Hospitality",e.ARTS_ENTERTAINMENT="Arts & Entertainment",e.AUTOMOTIVE="Automotive",e.BABY_KIDS="Baby & Kids",e.PETS="Pets",e.JEWELRY_ACCESSORIES="Jewelry & Accessories",e.TOYS_GAMES="Toys & Games",e.FINANCIAL_SERVICES="Financial Services",e.SOFTWARE_APPS="Software & Apps",e.EDUCATION="Education",e.OTHER="Other"}(n||(t.BrandCategory=n={})),t.BRAND_CATEGORY_VALUES=Object.values(n)},90386:(e,t)=>{var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.CampaignRunOutcomeValue=t.CampaignRunPhaseValue=void 0,function(e){e.QUEUED="queued",e.RUNNING="running",e.STOPPING="stopping",e.COMPLETED="completed",e.FAILED="failed",e.STOPPED="stopped"}(n||(t.CampaignRunPhaseValue=n={})),function(e){e.COMPLETED="completed",e.FAILED="failed",e.STOPPED="stopped"}(r||(t.CampaignRunOutcomeValue=r={}))},92599:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ACQUISITION_FIRST_SEEN_MAX_BACKDATE_DAYS=t.ACQUISITION_FIRST_TOUCH_MAX_ACCOUNT_AGE_HOURS=t.ACQUISITION_SELF_REPORTED_DETAIL_MAX_LENGTH=t.SIGNUP_ATTRIBUTION_MAX_URL_LENGTH=t.SIGNUP_ATTRIBUTION_MAX_VALUE_LENGTH=t.SIGNUP_CONTEXT_KEYS=t.SIGNUP_ATTRIBUTION_KEYS=void 0,t.SIGNUP_ATTRIBUTION_KEYS=["utm_source","utm_medium","utm_campaign","utm_term","utm_content","src"],t.SIGNUP_CONTEXT_KEYS=["referrer","landing_url","first_seen_at"],t.SIGNUP_ATTRIBUTION_MAX_VALUE_LENGTH=255,t.SIGNUP_ATTRIBUTION_MAX_URL_LENGTH=2048,t.ACQUISITION_SELF_REPORTED_DETAIL_MAX_LENGTH=255,t.ACQUISITION_FIRST_TOUCH_MAX_ACCOUNT_AGE_HOURS=48,t.ACQUISITION_FIRST_SEEN_MAX_BACKDATE_DAYS=7},93025:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},93570:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ROSTER_REASON_UNAVAILABLE=t.DISCOVERY_ROSTER_CHANGED_CODE=void 0,t.rosterReason=function(e){return(null==e?void 0:e.trim())||t.ROSTER_REASON_UNAVAILABLE},t.rosterDecisionFromServer=i,t.keepSkipLabel=function(e){let t=i(e);return"keep"===t?"Keep":"skip"===t?"Skip":null};let r=n(66166);function i(e){return e===r.DiscoveryHumanDecision.GO?"keep":e===r.DiscoveryHumanDecision.NO_GO?"skip":null}t.DISCOVERY_ROSTER_CHANGED_CODE="DISCOVERY_ROSTER_CHANGED",t.ROSTER_REASON_UNAVAILABLE="No information"},93902:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NON_AUTHORABLE_CREATOR_BRIEF_SECTION=t.KNOWLEDGE_SECTION_TITLE_BY_GUIDE_CONCEPT=t.RETIRED_CREATIVE_GUIDE_KEYS=t.CANONICAL_TITLE_ALIASES=t.DISCOVERY_GUIDE_SUBSECTION_TITLE_LIST=t.LEGACY_DISCOVERY_GUIDE_TITLE=t.CREATOR_DISCOVERY_GUIDE_TITLE=t.STRUCTURED_DISCOVERY_TITLES=t.RETIRED_CREATOR_DISCOVERY_SECTION_TITLES=t.CONTENT_GUIDELINES_SECTION_TITLE=t.CREATOR_DISCOVERY_SECTION_TITLE=void 0,t.slugify=a,t.createKnowledgeSection=o,t.parseKnowledgeSections=_,t.serializeKnowledgeSections=l,t.normalizeSectionTitle=E,t.isCanonicalSection=c,t.sectionTitleMatchesCanonical=s,t.lastH3HeadingTitle=T,t.isGuideH3Title=O,t.mergeCanonicalCampaignSetupSections=I,t.mergeCanonicalSections=S,t.pruneEmptyCanonicalPlaceholdersFor=R,t.isCanonicalBrandSection=function(e){return c(e,r.BRAND_KNOWLEDGE_SECTIONS)},t.mergeCanonicalBrandSections=function(e){return S(e,r.BRAND_KNOWLEDGE_SECTIONS)},t.pruneEmptyCanonicalPlaceholders=function(e){return R(e,r.BRAND_KNOWLEDGE_SECTIONS)},t.isCanonicalCampaignSection=function(e){return c(e,r.CAMPAIGN_KNOWLEDGE_SECTIONS)},t.mergeCanonicalCampaignSections=C,t.pruneEmptyCanonicalCampaignPlaceholders=N,t.getSectionContent=p,t.getSectionSubsectionContent=function(e,t,n){let r=p(e,t);return null===r?null:d(r,n)},t.formatGuideRowAsSectionBody=function(e,t){return D(t)},t.composeCampaignKnowledgeDoc=function(e,n,r){var i;let a=null!=(i=null==r?void 0:r.onlyIfEmpty)&&i,o=C(_(null!=e?e:"")),c=[],s=[];for(let e of t.RETIRED_CREATIVE_GUIDE_KEYS){let r=n[e];if(void 0===r)continue;
1let i=t.KNOWLEDGE_SECTION_TITLE_BY_GUIDE_CONCEPT[e],_=o.findIndex(e=>E(e.title)===E(i)),l=o[_];if(a&&l.content.trim().length>0){s.push(e);continue}let u=D(r);o[_]={...l,content:u},c.push(e)}return{doc:l(N(o)),changed:c,keptExisting:s}},t.canonicalSectionsForGroup=f,t.isCanonicalGroupSection=function(e,t){return c(t,f(e))},t.mergeCanonicalGroupSections=function(e,t){return S(t,f(e))},t.pruneEmptyCanonicalGroupPlaceholders=function(e,t){return R(t,f(e))},t.composeGroupDoc=function(e,n,r,a){var o;let c,s=null!=(o=null==a?void 0:a.onlyIfEmpty)&&o,u=f(e),d=e===i.CampaignContentGroup.CREATOR_BRIEF?E(t.NON_AUTHORABLE_CREATOR_BRIEF_SECTION):null,A=S(_(null!=n?n:""),u);null!==d&&(A=A.filter(e=>E(e.title)!==d));let T=[],O=[],I=new Map,C=E(t.CREATOR_DISCOVERY_SECTION_TITLE);for(let[e,t]of Object.entries(r))E(e)===C&&(c=t);for(let[n,a]of Object.entries(r)){let r=E(n);if(e===i.CampaignContentGroup.CAMPAIGN_SETUP&&t.RETIRED_CREATOR_DISCOVERY_SECTION_TITLES.some(e=>E(e)===r))throw Error("Retired campaign setup subsections are read-only; update Creator Discovery instead.");let o=t.CANONICAL_TITLE_ALIASES.get(r),_=o?E(o):r;_===C?(null!=c||(c=a),I.set(_,c)):I.set(_,a)}for(let e of u){let t=E(e);if(null!==d&&t===d)continue;let n=I.get(t);if(void 0===n)continue;let r=A.findIndex(e=>E(e.title)===t),i=A[r];if(s&&i.content.trim().length>0){O.includes(e)||O.push(e);continue}A[r]={...i,content:D(n)},T.push(e)}return{doc:l(R(A,u)),changedSections:T,keptExisting:O}};let r=n(87695),i=n(55836);function a(e){return e.toLowerCase().replace(RegExp("[^\\p{L}\\p{N}\\s-]","gu"),"").trim().replace(/[\s-]+/g,"-")}function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return{id:a(e),title:e,content:t}}function _(e){if(!e||!e.trim())return[{id:"overview",title:"Overview",content:""}];let t=e.replace(/\r\n?/g,"\n").split("\n"),n=[],i=null,o=[],_=null,l=r.CREATOR_BRIEF_SECTIONS[5];for(let e=0;e<t.length;e+=1){var c;let r=t[e];if(_){o.push(r);let e=r.match(/^ {0,3}(`{3,}|~{3,})[\t ]*$/);e&&e[1][0]===_.marker&&e[1].length>=_.length&&(_=null);continue}let s=r.match(/^ {0,3}(`{3,}|~{3,})(.*)$/);if(s&&("~"===s[1][0]||!s[2].includes("`"))){_={marker:s[1][0],length:s[1].length},o.push(r);continue}let u=r.match(/^ {0,3}##[ \t]+(.+?)(?:[ \t]+#+)?[ \t]*$/),d=E(r)===E(l)&&/^ {0,3}-+[ \t]*$/.test(null!=(c=t[e+1])?c:"");if(!u&&!d){o.push(r);continue}if(null===i){let e=o.join("\n").trimEnd();e&&n.push({id:"overview",title:"Overview",content:e})}else n.push({id:a(i),title:i,content:o.join("\n").trimEnd()});i=u?u[1].trim():l,o=[],d&&(e+=1)}if(null===i){let e=o.join("\n").trimEnd();n.push({id:"overview",title:"Overview",content:e})}else n.push({id:a(i),title:i,content:o.join("\n").trimEnd()});return n}function l(e){let t=[];for(let n of e)if("overview"===n.id&&"Overview"===n.title)n.content&&t.push(n.content);else{let e="## ".concat(n.title);n.content?t.push("".concat(e,"\n").concat(n.content)):t.push(e)}return t.join("\n\n")}function E(e){return e.trim().toLowerCase().replace(/\s+/g," ")}function c(e,t){let n=E(e);return t.some(e=>E(e)===n)}function s(e,n){let r=E(e),i=E(n);if(r===i)return!0;let a=t.CANONICAL_TITLE_ALIASES.get(r);return void 0!==a&&E(a)===i}function u(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Set,r=[],i=new Set,_=e.find(e=>"overview"===e.id&&"Overview"===e.title);for(let c of(_&&(i.add(_),_.content.trim()&&r.push(_)),t)){var l;let t=e.filter(e=>!i.has(e)&&!n.has(E(e.title))&&s(e.title,c));if(0===t.length){r.push(o(c));continue}let _=t.find(e=>E(e.title)===E(c)),u=t.find(e=>e.content.trim()),d=null!=(l=null!=_?_:u)?l:t[0];for(let e of(i.add(d),r.push(_?d:{...d,id:a(c),title:c}),t)){let t=E(e.title)!==E(c);e!==d&&t&&!e.content.trim()&&i.add(e)}}for(let t of e)i.has(t)||r.push(t);return r}function d(e,t){let n=E(t),r=e.split("\n"),i=[],a=new Map,o=null;for(let e=0;e<r.length;e+=1){let t=r[e],n=t.match(/^ {0,3}(`{3,}|~{3,})(.*)$/);if(n){let e=n[1][0],t=n[1].length;null!==o?e===o.marker&&t>=o.length&&""===n[2].trim()&&(o=null):"~"!==e&&n[2].includes("`")||(o={marker:e,length:t});continue}if(null!==o)continue;let i=t.match(/^ {0,3}(#{1,6})[ \t]+(.+?)(?:[ \t]+#+)?[ \t]*$/);i&&a.set(e,{level:i[1].length,title:i[2]})}for(let e=0;e<r.length;e+=1){let t=a.get(e);if(!t||3!==t.level||E(t.title)!==n)continue;let o=e+1,_=r.length;for(let e=o;e<r.length;e+=1){let n=a.get(e);if(n&&n.level<=t.level){_=e;break}}let l=r.slice(o,_).join("\n").trim();l&&i.push(l),e=_-1}return i.length>0?i.join("\n\n"):null}
1t.CREATOR_DISCOVERY_SECTION_TITLE=r.CAMPAIGN_SETUP_SECTIONS[3],t.CONTENT_GUIDELINES_SECTION_TITLE=r.CREATOR_BRIEF_SECTIONS[3],t.RETIRED_CREATOR_DISCOVERY_SECTION_TITLES=["Creator Criteria","Creative Direction"],t.STRUCTURED_DISCOVERY_TITLES=["Phase 1 - Quantitative recall criteria","Phase 2 - Qualitative fit context","Additional notes"],t.CREATOR_DISCOVERY_GUIDE_TITLE="Creator Discovery Guide",t.LEGACY_DISCOVERY_GUIDE_TITLE="Discovery Guide",t.DISCOVERY_GUIDE_SUBSECTION_TITLE_LIST=[t.LEGACY_DISCOVERY_GUIDE_TITLE,t.CREATOR_DISCOVERY_GUIDE_TITLE],t.CANONICAL_TITLE_ALIASES=new Map([[E("Timeline & Key Dates"),r.CAMPAIGN_SETUP_SECTIONS[2]],...t.RETIRED_CREATOR_DISCOVERY_SECTION_TITLES.map(e=>[E(e),t.CREATOR_DISCOVERY_SECTION_TITLE])]);let A=new Set(t.DISCOVERY_GUIDE_SUBSECTION_TITLE_LIST.map(E));function T(e){let t=e.split("\n"),n=null,r=null;for(let e of t){let t=e.match(/^ {0,3}(`{3,}|~{3,})(.*)$/);if(t){let e=t[1][0],r=t[1].length;null!==n?e===n.marker&&r>=n.length&&""===t[2].trim()&&(n=null):"~"!==e&&t[2].includes("`")||(n={marker:e,length:r});continue}if(null!==n)continue;let i=e.match(/^ {0,3}###[ \t]+(.+?)(?:[ \t]+#+)?[ \t]*$/);i&&(r=i[1])}return r}function O(e){return null!==e&&A.has(E(e))}function I(e){let n=function(e){let n=[],r=0;for(;r<e.length;){let i=e[r];if(!s(i.title,t.CREATOR_DISCOVERY_SECTION_TITLE)){n.push(i),r+=1;continue}let a=O(T(i.content)),o=r+1,_=[];for(;a&&o<e.length&&c(e[o].title,t.STRUCTURED_DISCOVERY_TITLES);){_.push(e[o].content?"## ".concat(e[o].title,"\n").concat(e[o].content):"## ".concat(e[o].title));let t=T(e[o].content);null!==t&&(a=O(t)),o+=1}n.push(0===_.length?i:{...i,content:[i.content,..._].filter(e=>""!==e).join("\n\n")}),r=o}return n}(e),i=E(t.CREATOR_DISCOVERY_SECTION_TITLE),a=new Set([t.CREATOR_DISCOVERY_SECTION_TITLE,...t.RETIRED_CREATOR_DISCOVERY_SECTION_TITLES].map(E)),_=n.filter(e=>a.has(E(e.title)));if(0===_.length)return u(n,r.CAMPAIGN_SETUP_SECTIONS);let l=_.filter(e=>E(e.title)===i).map(e=>e.content.trim()).filter(Boolean),[A,...I]=l,S=A?[A]:[];for(let e of t.RETIRED_CREATOR_DISCOVERY_SECTION_TITLES){let t=E(e),n=_.filter(e=>E(e.title)===t).map(e=>e.content.trim()).filter(Boolean);0!==n.length&&(l.some(t=>d(t,e)===n.join("\n\n"))||S.push("### ".concat(e,"\n").concat(n.join("\n\n"))))}I.length>0&&S.push("### ".concat("Additional Creator Discovery","\n").concat(I.join("\n\n")));let R=new Set(_),C=n.filter(e=>!R.has(e));return C.push(o(t.CREATOR_DISCOVERY_SECTION_TITLE,S.join("\n\n"))),u(C,r.CAMPAIGN_SETUP_SECTIONS)}function S(e,n){return n.length===r.CAMPAIGN_SETUP_SECTIONS.length&&n.every((e,t)=>E(e)===E(r.CAMPAIGN_SETUP_SECTIONS[t]))?u(e,n,new Set(t.RETIRED_CREATOR_DISCOVERY_SECTION_TITLES.map(E))):u(e,n)}function R(e,t){return e.filter(e=>e.content.trim().length>0||!c(e.title,t)||"overview"===e.id&&"Overview"===e.title)}function C(e){return S(e,r.CAMPAIGN_KNOWLEDGE_SECTIONS)}function N(e){return R(e,r.CAMPAIGN_KNOWLEDGE_SECTIONS)}function p(e,n){var r;if(!e||!e.trim())return null;let i=E(n);if(t.RETIRED_CREATOR_DISCOVERY_SECTION_TITLES.some(e=>E(e)===i)){let r=I(_(e)).find(e=>E(e.title)===E(t.CREATOR_DISCOVERY_SECTION_TITLE));return r?d(r.content,n):null}let a=i===E(t.CREATOR_DISCOVERY_SECTION_TITLE)?I(_(e)):_(e),o=a.find(e=>E(e.title)===i),l=null!=(r=null!=o?o:a.find(e=>s(e.title,n)&&e.content.trim()))?r:a.find(e=>s(e.title,n));return l?l.content:null}function D(e){return e.replace(/\r\n?/g,"\n").split("\n").map(e=>e.replace(/[ \t]+$/g,"")).join("\n").replace(/\n{3,}/g,"\n\n").trim()}function f(e){return r.CANONICAL_SECTIONS_BY_GROUP[e]}t.RETIRED_CREATIVE_GUIDE_KEYS=["keyMessages","toneOfVoice","dosAndDonts"],t.KNOWLEDGE_SECTION_TITLE_BY_GUIDE_CONCEPT={keyMessages:"Key Messages",toneOfVoice:"Tone & Voice",dosAndDonts:"Do's & Don'ts (Brand Safety)"},t.NON_AUTHORABLE_CREATOR_BRIEF_SECTION="Posting Instructions"},94572:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.WorkflowSpotlightSection=void 0,function(e){e.SETUP="setup",e.DISCOVERY="discovery",e.COMMUNICATION="communication",e.SHIPPING="shipping",e.CONTENT="content",e.PAYMENT="payment"}(n||(t.WorkflowSpotlightSection=n={}))},94699:(e,t)=>
1{var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.AgentNotificationActionStatus=t.AgentNotificationType=void 0,function(e){e.APPROVAL_REQUEST="approval_request",e.EXPERIMENT_CONCLUSION="experiment_conclusion",e.BATCH_FAILURE="batch_failure",e.STRATEGY_CHANGE="strategy_change"}(n||(t.AgentNotificationType=n={})),function(e){e.PENDING="pending",e.APPROVED="approved",e.REJECTED="rejected"}(r||(t.AgentNotificationActionStatus=r={}))},94826:(e,t)=>{var n,r,i,a;Object.defineProperty(t,"__esModule",{value:!0}),t.GmailAuthType=t.GmailMessageStatus=t.GmailMessageDirection=t.GmailAccountType=void 0,function(e){e.PERSONAL="personal",e.WORKSPACE="workspace"}(n||(t.GmailAccountType=n={})),function(e){e.INBOUND="inbound",e.OUTBOUND="outbound"}(r||(t.GmailMessageDirection=r={})),function(e){e.DRAFT="draft",e.SENT="sent",e.RECEIVED="received"}(i||(t.GmailMessageStatus=i={})),function(e){e.OAUTH="oauth",e.DWD="dwd"}(a||(t.GmailAuthType=a={}))},95190:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.CampaignFieldProvenance=void 0,function(e){e.USER_EDITED="user-edited",e.OPERATOR_CONFIRMED="operator-confirmed",e.AI_INFERRED="ai-inferred"}(n||(t.CampaignFieldProvenance=n={}))},96268:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.AutomationLevel=void 0,function(e){e.OFF="off",e.REQUIRE_APPROVAL="require_approval",e.NOTIFY_ON_ACTION="notify_on_action",e.AUTO_EXECUTE="auto_execute"}(n||(t.AutomationLevel=n={}))},96446:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FUNNEL_AGGREGATE_MAX_CAMPAIGN_IDS=void 0,t.FUNNEL_AGGREGATE_MAX_CAMPAIGN_IDS=500},97262:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.UserType=void 0,function(e){e.BRAND_USER="brand_user",e.CREATOR="creator"}(n||(t.UserType=n={}))},97341:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.CANCEL_REASON_LABELS=t.CancelReason=void 0,function(e){e.TOO_EXPENSIVE="too_expensive",e.NOT_ENOUGH_VALUE="not_enough_value",e.SWITCHING_TOOL="switching_tool",e.TECHNICAL_PROBLEMS="technical_problems",e.TOO_HARD_TO_USE="too_hard_to_use",e.NO_LONGER_RUNNING_CAMPAIGNS="no_longer_running_campaigns",e.NO_TIME="no_time",e.OTHER="other"}(n||(t.CancelReason=n={})),t.CANCEL_REASON_LABELS={[n.TOO_EXPENSIVE]:"Too expensive",[n.NOT_ENOUGH_VALUE]:"Not enough value",[n.SWITCHING_TOOL]:"Switching to another tool",[n.TECHNICAL_PROBLEMS]:"Technical problems",[n.TOO_HARD_TO_USE]:"Too hard to use",[n.NO_LONGER_RUNNING_CAMPAIGNS]:"No longer running campaigns",[n.NO_TIME]:"No time to manage it",[n.OTHER]:"Other"}},97359:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.GuidelineSource=void 0,(n||(t.GuidelineSource=n={})).COMM_DRAFT_EDIT="comm_draft_edit"},97728:(e,t)=>{var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionType=t.CollectionStatus=void 0,function(e){e.COLLECTING="collecting",e.ANALYZING="analyzing",e.COMPLETED="completed"}(n||(t.CollectionStatus=n={})),function(e){e.DEFAULT="default",e.FIND_CREATOR="find-creator"}(r||(t.CollectionType=r={}))},99051:(e,t)=>{var n,r,i;function a(e){return e===n.OWNER||e===t.LEGACY_ORGANIZATION_OWNER_ROLE}function o(e){return e===n.ADMIN}Object.defineProperty(t,"__esModule",{value:!0}),t.OrganizationMemberStatus=t.BrandRole=t.LEGACY_ORGANIZATION_OWNER_ROLE=t.OrganizationRole=void 0,t.isOrganizationOwnerRole=a,t.isOrganizationAdminRole=o,t.isOwnerOrAdminRole=function(e){return a(e)||o(e)},function(e){e.OWNER="Owner",e.MEMBER="Member",e.ADMIN="OrgAdmin",e.EDITOR="Editor",e.VIEWER="Viewer"}(n||(t.OrganizationRole=n={})),t.LEGACY_ORGANIZATION_OWNER_ROLE="Admin",!function(e){e.MANAGER="Manager",e.EDITOR="Editor",e.VIEWER="Viewer"}(r||(t.BrandRole=r={})),function(e){e.ACTIVE="active",e.INVITED="invited",e.PENDING_APPROVAL="pending_approval"}(i||(t.OrganizationMemberStatus=i={}))},99905:(e,t)=>{var n,r,i,a,o,_;Object.defineProperty(t,"__esModule",{value:!0}),t.CANONICAL_FIELD_KEY_TO_BRIEF_FORM_FIELDS=t.CAMPAIGN_ONTOLOGY=t.OntologyFamily=t.OntologyRequiredWhen=t.OntologyStage=t.DEFAULT_SHIPPING_CONFIG=t.DEFAULT_COMMUNICATION_TERMS=t.DEFAULT_DISCOVERY_CRITERIA=t.DISCOVERY_FOLLOWER_SAFETY_BAND_MAX=t.DISCOVERY_FOLLOWER_SAFETY_BAND_MIN=t.DEFAULT_PRODUCT_INFO=t.DeliverableFormat=t.AudienceAgeGroup=t.ProductType=void 0,function(e){e.PHYSICAL="physical",e.VIRTUAL="virtual"}(n||(t.ProductType=n={})),function(e){e.AGE_18_24="18-24",e.AGE_25_34="25-34",e.AGE_35_44="35-44",e.AGE_45_64="45-64",e.AGE_65_PLUS="65+"}(r||(t.AudienceAgeGroup=r={}
1)),function(e){e.IMAGE="image",e.CAROUSEL="carousel",e.VIDEO="video"}(i||(t.DeliverableFormat=i={})),t.DEFAULT_PRODUCT_INFO={schemaVersion:1,items:[]},t.DISCOVERY_FOLLOWER_SAFETY_BAND_MIN=1e3,t.DISCOVERY_FOLLOWER_SAFETY_BAND_MAX=1e7,t.DEFAULT_DISCOVERY_CRITERIA={schemaVersion:1,countries:[],followerMin:t.DISCOVERY_FOLLOWER_SAFETY_BAND_MIN,followerMax:t.DISCOVERY_FOLLOWER_SAFETY_BAND_MAX,avgEngagementRateMin:1,ageGroups:[r.AGE_18_24,r.AGE_25_34,r.AGE_35_44],categories:[],creatorVibes:"",referenceHandles:[]},t.DEFAULT_COMMUNICATION_TERMS={schemaVersion:1,brandMaterialUrls:[],deliverableFormats:[i.VIDEO],contentDeadlineDays:null,payoutDeadlineDays:null,brandRepostMonths:null,postLiveDurationMonths:null,exclusivityEnabled:!1,exclusivityMonths:null},t.DEFAULT_SHIPPING_CONFIG={schemaVersion:1,estimatedDeliveryDays:null,shippableDestinations:[]},function(e){e.SETUP="setup",e.DISCOVERY="discovery",e.COMMUNICATION="communication",e.SHIPPING="shipping"}(a||(t.OntologyStage=a={})),function(e){e.ALWAYS="always",e.PAID_ONLY="paid_only",e.PHYSICAL_ONLY="physical_only",e.NEVER="never",e.EXCLUSIVITY_ONLY="exclusivity_only"}(o||(t.OntologyRequiredWhen=o={})),function(e){e.SCALAR="scalar",e.CREATIVE_GUIDE="creativeGuide",e.DISCOVERY_CRITERIA="discoveryCriteria",e.DISCOVERY_RUN_CRITERIA="latestDiscoveryRunCriteria",e.COMMUNICATION_TERMS="communicationTerms",e.SHIPPING_CONFIG="shippingConfig",e.PRODUCT_INFO="productInfo"}(_||(t.OntologyFamily=_={})),t.CAMPAIGN_ONTOLOGY=[{fieldId:"name",wireKey:"name",dtoPath:"name",family:_.SCALAR,valueType:"string",stage:a.SETUP,requiredWhen:o.ALWAYS,defaultValue:null,label:"Campaign Name",chatLabel:"name",chatEditable:!0,detailUpdateEnabled:!0},{fieldId:"description",wireKey:"description",dtoPath:"description",family:_.SCALAR,valueType:"string",stage:a.SETUP,requiredWhen:o.NEVER,defaultValue:null,label:"Campaign Description",chatLabel:"description",chatEditable:!0,detailUpdateEnabled:!0},{fieldId:"started_at",wireKey:"started_at",dtoPath:"startedAt",family:_.SCALAR,valueType:"date",stage:a.SETUP,requiredWhen:o.ALWAYS,defaultValue:null,label:"Start Date",chatLabel:"start date",chatEditable:!0,detailUpdateEnabled:!0},{fieldId:"ended_at",wireKey:"ended_at",dtoPath:"endedAt",family:_.SCALAR,valueType:"date",stage:a.SETUP,requiredWhen:o.ALWAYS,defaultValue:null,label:"Recruitment Period End",chatLabel:"recruitment period end",chatEditable:!0,detailUpdateEnabled:!0},{fieldId:"campaign_type",wireKey:"campaign_type",dtoPath:"type",family:_.SCALAR,valueType:"enum",stage:a.SETUP,requiredWhen:o.ALWAYS,defaultValue:null,label:"Campaign Type",chatEditable:!1,detailUpdateEnabled:!1},{fieldId:"platforms",wireKey:"platforms",dtoPath:"platforms",family:_.SCALAR,valueType:"enumArray",stage:a.SETUP,requiredWhen:o.ALWAYS,defaultValue:null,label:"Platforms",chatEditable:!1,detailUpdateEnabled:!1},{fieldId:"product_type",wireKey:"product_type",dtoPath:"productType",family:_.SCALAR,valueType:"enum",stage:a.SETUP,requiredWhen:o.ALWAYS,defaultValue:null,label:"Product Type",chatEditable:!0,retiredStorageDtoPath:"needsShippingAddress",detailUpdateEnabled:!1},{fieldId:"product_info",wireKey:"product_info",dtoPath:"productInfo",family:_.PRODUCT_INFO,valueType:"object",stage:a.SETUP,requiredWhen:o.ALWAYS,defaultValue:null,label:"Products",chatEditable:!0,detailUpdateEnabled:!1},{fieldId:"cost_per_contract",wireKey:"cost_per_contract",dtoPath:"costPerContract",family:_.SCALAR,valueType:"number",stage:a.SETUP,requiredWhen:o.PAID_ONLY,defaultValue:null,label:"Cost per contract",chatEditable:!0,detailUpdateEnabled:!1},{fieldId:"product_urls",wireKey:"product_urls",dtoPath:"productUrls",family:_.SCALAR,valueType:"stringArray",stage:a.SETUP,requiredWhen:o.NEVER,defaultValue:null,label:"Product URLs",chatLabel:"product URLs",chatEditable:!0,detailUpdateEnabled:!0},{fieldId:"countries",wireKey:"countries",dtoPath:"latestDiscoveryRunCriteria.countries",family:_.DISCOVERY_RUN_CRITERIA,valueType:"stringArray",stage:a.DISCOVERY,requiredWhen:o.ALWAYS,defaultValue:null,label:"Target Countries",chatEditable:!0,detailUpdateEnabled:!1},{fieldId:"follower_min",wireKey:"follower_min",dtoPath:"latestDiscoveryRunCriteria.followersMin",family:_.DISCOVERY_RUN_CRITERIA,valueType:"number",stage:a.DISCOVERY,requiredWhen:o.ALWAYS,defaultValue:null,label:"Follower Count (min)",chatEditable:!0,detailUpdateEnabled:!1},{fieldId:"follower_max",wireKey:"follower_max",dtoPath:"latestDiscoveryRunCriteria.followersMax",family:_.DISCOVERY_RUN_CRITERIA,valueType:"number",stage:a.DISCOVERY,requiredWhen:o.ALWAYS,defaultValue:null,label:"Follower Count (max)",chatEditable:!0,detailUpdateEnabled:!1},{fieldId:"avg_engagement_rate_min",wireKey:"avg_engagement_rate_min",dtoPath:"latestDiscoveryRunCriteria.engagementMin",family:_.DISCOVERY_RUN_CRITERIA,valueType:"number",stage:a.DISCOVERY,requiredWhen:o.ALWAYS,defaultValue:null,label:"Average Engagement Rate (min %)",chatEditable:!0,detailUpdateEnabled:!1},{fieldId:"categories",wireKey:"categories",dtoPath:"latestDiscoveryRunCriteria.targetCategories",family:_.DISCOVERY_RUN_CRITERIA,valueType:"stringArray",stage:a.DISCOVERY,requiredWhen:o.ALWAYS,defaultValue:null,label:"Creator Categories",chatEditable:!0,detailUpdateEnabled:!1},{fieldId:"creator_vibes",wireKey:"creator_vibes",dtoPath:"latestDiscoveryRunCriteria.creatorVibes",family:_.DISCOVERY_RUN_CRITERIA,valueType:"string",stage:a.DISCOVERY,requiredWhen:o.NEVER,defaultValue:null,label:"Creator Vibes",chatEditable:!0,detailUpdateEnabled:!1},{fieldId:"reference_handles",wireKey:"reference_handles",dtoPath:"latestDiscoveryRunCriteria.referenceHandles",fam
1ily:_.DISCOVERY_RUN_CRITERIA,valueType:"stringArray",stage:a.DISCOVERY,requiredWhen:o.NEVER,defaultValue:null,label:"Reference Creators",chatEditable:!0,detailUpdateEnabled:!1},{fieldId:"brand_material_urls",wireKey:"brand_material_urls",dtoPath:"communicationTerms.brandMaterialUrls",family:_.COMMUNICATION_TERMS,valueType:"stringArray",stage:a.COMMUNICATION,requiredWhen:o.NEVER,defaultValue:null,label:"Brand Materials (PDF/Drive links)",chatEditable:!0,retiredStorageDtoPath:"brandMaterialUrls",detailUpdateEnabled:!1},{fieldId:"creator_acceptance_flow",wireKey:"creator_acceptance_flow",dtoPath:"creatorAcceptanceFlow",family:_.SCALAR,valueType:"enum",stage:a.COMMUNICATION,requiredWhen:o.NEVER,defaultValue:null,label:"After Creator Says Yes",chatEditable:!1,detailUpdateEnabled:!1},{fieldId:"deliverable_formats",wireKey:"deliverable_formats",dtoPath:"communicationTerms.deliverableFormats",family:_.COMMUNICATION_TERMS,valueType:"enumArray",stage:a.COMMUNICATION,requiredWhen:o.ALWAYS,defaultValue:t.DEFAULT_COMMUNICATION_TERMS.deliverableFormats,label:"Content Deliverables",chatEditable:!0,retiredStorageDtoPath:"deliverableFormats",detailUpdateEnabled:!1},{fieldId:"content_deadline_days",wireKey:"content_deadline_days",dtoPath:"communicationTerms.contentDeadlineDays",family:_.COMMUNICATION_TERMS,valueType:"number",stage:a.COMMUNICATION,requiredWhen:o.ALWAYS,defaultValue:null,label:"Content Deadline (days)",chatEditable:!0,retiredStorageDtoPath:"contentDeadlineDays",detailUpdateEnabled:!1},{fieldId:"payout_deadline_days",wireKey:"payout_deadline_days",dtoPath:"communicationTerms.payoutDeadlineDays",family:_.COMMUNICATION_TERMS,valueType:"number",stage:a.COMMUNICATION,requiredWhen:o.ALWAYS,defaultValue:null,label:"Payout Deadline (days)",chatEditable:!0,retiredStorageDtoPath:"payoutDeadlineDays",detailUpdateEnabled:!1},{fieldId:"brand_repost_months",wireKey:"brand_repost_months",dtoPath:"communicationTerms.brandRepostMonths",family:_.COMMUNICATION_TERMS,valueType:"number",stage:a.COMMUNICATION,requiredWhen:o.NEVER,defaultValue:null,label:"Brand Repost Rights (months)",chatEditable:!0,retiredStorageDtoPath:"brandRepostMonths",detailUpdateEnabled:!1},{fieldId:"post_live_duration_months",wireKey:"post_live_duration_months",dtoPath:"communicationTerms.postLiveDurationMonths",family:_.COMMUNICATION_TERMS,valueType:"number",stage:a.COMMUNICATION,requiredWhen:o.ALWAYS,defaultValue:null,label:"Post Live Duration (months)",chatEditable:!0,retiredStorageDtoPath:"postLiveDurationMonths",detailUpdateEnabled:!1},{fieldId:"exclusivity_enabled",wireKey:"exclusivity_enabled",dtoPath:"communicationTerms.exclusivityEnabled",family:_.COMMUNICATION_TERMS,valueType:"boolean",stage:a.COMMUNICATION,requiredWhen:o.NEVER,defaultValue:t.DEFAULT_COMMUNICATION_TERMS.exclusivityEnabled,label:"Exclusivity",chatEditable:!0,retiredStorageDtoPath:"exclusivityEnabled",detailUpdateEnabled:!1},{fieldId:"exclusivity_months",wireKey:"exclusivity_months",dtoPath:"communicationTerms.exclusivityMonths",family:_.COMMUNICATION_TERMS,valueType:"number",stage:a.COMMUNICATION,requiredWhen:o.EXCLUSIVITY_ONLY,defaultValue:null,label:"Exclusivity Period (months)",chatEditable:!0,retiredStorageDtoPath:"exclusivityMonths",detailUpdateEnabled:!1},{fieldId:"key_messages",wireKey:"keyMessages",dtoPath:"creativeGuide.keyMessages",family:_.CREATIVE_GUIDE,valueType:"string",stage:a.COMMUNICATION,requiredWhen:o.ALWAYS,defaultValue:null,label:"Key Messages (USP)",chatLabel:"key messages",chatEditable:!0,detailUpdateEnabled:!0},{fieldId:"dos_and_donts",wireKey:"dosAndDonts",dtoPath:"creativeGuide.dosAndDonts",family:_.CREATIVE_GUIDE,valueType:"string",stage:a.COMMUNICATION,requiredWhen:o.ALWAYS,defaultValue:null,label:"Dos and Don'ts",chatEditable:!0,detailUpdateEnabled:!1},{fieldId:"hashtags_and_mentions",wireKey:"hashtagsAndMentions",dtoPath:"creativeGuide.hashtagsAndMentions",family:_.CREATIVE_GUIDE,valueType:"string",stage:a.COMMUNICATION,requiredWhen:o.ALWAYS,defaultValue:null,label:"Hashtags and Mentions",chatLabel:"hashtags and mentions",chatEditable:!0,detailUpdateEnabled:!0},{fieldId:"brand_information",wireKey:"brandInformation",dtoPath:"creativeGuide.brandInformation",family:_.CREATIVE_GUIDE,valueType:"string",stage:a.COMMUNICATION,requiredWhen:o.NEVER,defaultValue:null,label:"Brand Information",chatLabel:"brand information",chatEditable:!0,detailUpdateEnabled:!0},{fieldId:"unique_selling_points",wireKey:"uniqueSellingPoints",dtoPath:"creativeGuide.uniqueSellingPoints",family:_.CREATIVE_GUIDE,valueType:"string",stage:a.COMMUNICATION,requiredWhen:o.NEVER,defaultValue:null,label:"Unique Selling Points",chatLabel:"unique selling points",chatEditable:!0,detailUpdateEnabled:!0},{fieldId:"tone_of_voice",wireKey:"toneOfVoice",dtoPath:"creativeGuide.toneOfVoice",family:_.CREATIVE_GUIDE,valueType:"string",stage:a.COMMUNICATION,requiredWhen:o.NEVER,defaultValue:null,label:"Tone of Voice",chatLabel:"tone of voice",chatEditable:!0,detailUpdateEnabled:!0},{fieldId:"negotiation_language",wireKey:"negotiation_language",dtoPath:"negotiationLanguage",family:_.SCALAR,valueType:"enum",stage:a.COMMUNICATION,requiredWhen:o.NEVER,defaultValue:null,label:"Communication Language",chatEditable:!1,detailUpdateEnabled:!1},{fieldId:"estimated_delivery_days",wireKey:"estimated_delivery_days",dtoPath:"shippingConfig.estimatedDeliveryDays",family:_.SHIPPING_CONFIG,valueType:"number",stage:a.SHIPPING,requiredWhen:o.NEVER,defaultValue:null,label:"Estimated Delivery Time (days)",chatEditable:!0,detailUpdateEnabled:!1},{fieldId:"shippable_destinations",wireKey:"shippable_destinations",dtoPath:"shippingConfig.shippableDestinations",family:_.SHIPPING_CONFIG,valueType:"stringArray",stage:a.SHIPPING,requiredWhen:o.NEVER,defaultValue:null,label:"Shippable Destinations",chatEditable:!0,detailUpdateEnabled:!1}],t.CANONICAL_FIELD_KEY_TO_BRIEF_FORM_FIELDS={name:["name"],description:["description"],startedAt:["startedAt","startedAtTime"],endedAt:["endedAt"],type:["type"],platforms:["platforms","platform"],negotiationLanguage:["negotiationLanguage"],creatorAcceptanceFlow:["creatorAcceptanceFlow"],costPerUpload:["costPerUpload"],currency:["currency"],needsShippingAddress:["needsShippingAddress"],creativeGuide:["creativeGuide","targetCountries","exampleVideos","guide.uniqueSellingPoints","guide.keyMessages","guide.visualGuide","guide.dosAndDonts","guide.hashtagsAndMentions","guide.creatorEmailContentsGuideline","guide.outreachDraftPreview","guide.toneOfVoice"]}}}]);
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.